Package com.oorian.schema
Class SchemaOrganization
java.lang.Object
com.oorian.schema.SchemaType
com.oorian.schema.SchemaOrganization
- All Implemented Interfaces:
Jsonable
Represents a Schema.org Organization.
An Organization is a company, business, or other organized group of people. This schema type helps search engines display organization information in knowledge panels and search results.
Usage:
SchemaOrganization org = new SchemaOrganization()
.setName("Corvus Engineering, LLC")
.setUrl("https://corvusengineering.com")
.setLogo("https://corvusengineering.com/logo.png")
.addSameAs("https://github.com/corvusengineering");
head.addElement(new JsonLdScript(org));
- Since:
- 2025
- Version:
- 1.0
- Author:
- Claude
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds a social profile or related URL.setAddress(String address) Sets the address of the organization.setDescription(String description) Sets a description of the organization.Sets the contact email address.setFoundingDate(String foundingDate) Sets the founding date of the organization (ISO 8601 format).Sets the URL of the organization's logo.Sets the name of the organization.setTelephone(String telephone) Sets the contact telephone number.Sets the URL of the organization's website.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
-
SchemaOrganization
public SchemaOrganization()
-
-
Method Details
-
setName
Sets the name of the organization.- Parameters:
name- The organization name- Returns:
- This organization for method chaining
-
setUrl
Sets the URL of the organization's website.- Parameters:
url- The website URL- Returns:
- This organization for method chaining
-
setLogo
Sets the URL of the organization's logo.- Parameters:
logo- The logo URL- Returns:
- This organization for method chaining
-
setDescription
Sets a description of the organization.- Parameters:
description- The organization description- Returns:
- This organization for method chaining
-
setEmail
Sets the contact email address.- Parameters:
email- The email address- Returns:
- This organization for method chaining
-
setTelephone
Sets the contact telephone number.- Parameters:
telephone- The telephone number- Returns:
- This organization for method chaining
-
setFoundingDate
Sets the founding date of the organization (ISO 8601 format).- Parameters:
foundingDate- The founding date (e.g., "2014-01-01")- Returns:
- This organization for method chaining
-
setAddress
Sets the address of the organization.- Parameters:
address- The address string- Returns:
- This organization for method chaining
-
addSameAs
Adds a social profile or related URL.- Parameters:
url- The URL of a social profile or related page- Returns:
- This organization 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.
-