Class SchemaSoftwareApplication

java.lang.Object
com.oorian.schema.SchemaType
com.oorian.schema.SchemaSoftwareApplication
All Implemented Interfaces:
Jsonable

public class SchemaSoftwareApplication extends SchemaType
Represents a Schema.org SoftwareApplication.

A SoftwareApplication is a software program or app. This schema type helps search engines understand software products and can enable rich snippets showing ratings, pricing, and download information.

Usage:


 SchemaSoftwareApplication app = new SchemaSoftwareApplication()
     .setName("Oorian")
     .setDescription("A Java web framework for real-time applications")
     .setApplicationCategory("DeveloperApplication")
     .setOperatingSystem("Java")
     .setSoftwareVersion("2.0")
     .setOffer(new SchemaOffer()
         .setPrice(99)
         .setPriceCurrency("USD"));

 head.addElement(new JsonLdScript(app));
 
Since:
2025
Version:
1.0
Author:
Claude
  • Constructor Details

    • SchemaSoftwareApplication

      public SchemaSoftwareApplication()
  • Method Details

    • setName

      public SchemaSoftwareApplication setName(String name)
      Sets the name of the software application.
      Parameters:
      name - The application name
      Returns:
      This application for method chaining
    • setDescription

      public SchemaSoftwareApplication setDescription(String description)
      Sets a description of the software application.
      Parameters:
      description - The application description
      Returns:
      This application for method chaining
    • setApplicationCategory

      public SchemaSoftwareApplication setApplicationCategory(String applicationCategory)
      Sets the application category.
      Parameters:
      applicationCategory - The category (e.g., "DeveloperApplication", "GameApplication")
      Returns:
      This application for method chaining
    • setOperatingSystem

      public SchemaSoftwareApplication setOperatingSystem(String operatingSystem)
      Sets the operating system requirements.
      Parameters:
      operatingSystem - The OS requirement (e.g., "Windows", "macOS", "Java")
      Returns:
      This application for method chaining
    • setSoftwareVersion

      public SchemaSoftwareApplication setSoftwareVersion(String softwareVersion)
      Sets the software version.
      Parameters:
      softwareVersion - The version string (e.g., "2.0", "1.5.3")
      Returns:
      This application for method chaining
    • setDownloadUrl

      public SchemaSoftwareApplication setDownloadUrl(String downloadUrl)
      Sets the download URL for the software.
      Parameters:
      downloadUrl - The download URL
      Returns:
      This application for method chaining
    • setInstallUrl

      public SchemaSoftwareApplication setInstallUrl(String installUrl)
      Sets the installation URL for the software.
      Parameters:
      installUrl - The installation URL
      Returns:
      This application for method chaining
    • setScreenshot

      public SchemaSoftwareApplication setScreenshot(String screenshot)
      Sets the URL of a screenshot of the software.
      Parameters:
      screenshot - The screenshot URL
      Returns:
      This application for method chaining
    • setOffer

      public SchemaSoftwareApplication setOffer(SchemaOffer offer)
      Sets the pricing offer for the software.
      Parameters:
      offer - The pricing offer
      Returns:
      This application for method chaining
    • setAuthor

      public SchemaSoftwareApplication setAuthor(SchemaOrganization author)
      Sets the author/publisher of the software.
      Parameters:
      author - The organization that created the software
      Returns:
      This application for method chaining
    • setAggregateRating

      public SchemaSoftwareApplication setAggregateRating(Number ratingValue, Integer ratingCount)
      Sets the aggregate rating for the software.
      Parameters:
      ratingValue - The average rating value
      ratingCount - The number of ratings
      Returns:
      This application for method chaining
    • addFeature

      public SchemaSoftwareApplication addFeature(String feature)
      Adds a feature to the feature list.
      Parameters:
      feature - A feature description
      Returns:
      This application for method chaining
    • toJsonValue

      public JsonValue toJsonValue()
      Description copied from interface: Jsonable
      Serializes this object to a JsonValue.
      Specified by:
      toJsonValue in interface Jsonable
      Specified by:
      toJsonValue in class SchemaType
      Returns:
      the JSON representation of this object.