Package com.oorian.schema
Class SchemaSoftwareApplication
java.lang.Object
com.oorian.schema.SchemaType
com.oorian.schema.SchemaSoftwareApplication
- All Implemented Interfaces:
Jsonable
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddFeature(String feature) Adds a feature to the feature list.setAggregateRating(Number ratingValue, Integer ratingCount) Sets the aggregate rating for the software.setApplicationCategory(String applicationCategory) Sets the application category.setAuthor(SchemaOrganization author) Sets the author/publisher of the software.setDescription(String description) Sets a description of the software application.setDownloadUrl(String downloadUrl) Sets the download URL for the software.setInstallUrl(String installUrl) Sets the installation URL for the software.Sets the name of the software application.setOffer(SchemaOffer offer) Sets the pricing offer for the software.setOperatingSystem(String operatingSystem) Sets the operating system requirements.setScreenshot(String screenshot) Sets the URL of a screenshot of the software.setSoftwareVersion(String softwareVersion) Sets the software version.Serializes this object to aJsonValue.Methods inherited from class com.oorian.schema.SchemaType
createBaseJson, getType, initFromJsonMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.oorian.json.Jsonable
initFromJson, initFromJson, toJsonString
-
Constructor Details
-
SchemaSoftwareApplication
public SchemaSoftwareApplication()
-
-
Method Details
-
setName
Sets the name of the software application.- Parameters:
name- The application name- Returns:
- This application for method chaining
-
setDescription
Sets a description of the software application.- Parameters:
description- The application description- Returns:
- This application for method chaining
-
setApplicationCategory
Sets the application category.- Parameters:
applicationCategory- The category (e.g., "DeveloperApplication", "GameApplication")- Returns:
- This application for method chaining
-
setOperatingSystem
Sets the operating system requirements.- Parameters:
operatingSystem- The OS requirement (e.g., "Windows", "macOS", "Java")- Returns:
- This application for method chaining
-
setSoftwareVersion
Sets the software version.- Parameters:
softwareVersion- The version string (e.g., "2.0", "1.5.3")- Returns:
- This application for method chaining
-
setDownloadUrl
Sets the download URL for the software.- Parameters:
downloadUrl- The download URL- Returns:
- This application for method chaining
-
setInstallUrl
Sets the installation URL for the software.- Parameters:
installUrl- The installation URL- Returns:
- This application for method chaining
-
setScreenshot
Sets the URL of a screenshot of the software.- Parameters:
screenshot- The screenshot URL- Returns:
- This application for method chaining
-
setOffer
Sets the pricing offer for the software.- Parameters:
offer- The pricing offer- Returns:
- This application for method chaining
-
setAuthor
Sets the author/publisher of the software.- Parameters:
author- The organization that created the software- Returns:
- This application for method chaining
-
setAggregateRating
Sets the aggregate rating for the software.- Parameters:
ratingValue- The average rating valueratingCount- The number of ratings- Returns:
- This application for method chaining
-
addFeature
Adds a feature to the feature list.- Parameters:
feature- A feature description- Returns:
- This application for method chaining
-
toJsonValue
Description copied from interface:JsonableSerializes this object to aJsonValue.- Specified by:
toJsonValuein interfaceJsonable- Specified by:
toJsonValuein classSchemaType- Returns:
- the JSON representation of this object.
-