public abstract class SchemaOrgTypeImpl extends java.lang.Object implements SchemaOrgType, JsonLdNode
SchemaOrgType and JsonLdNode. It is inherited by all
schema.org implementation classes.| Modifier and Type | Class and Description |
|---|---|
static class |
SchemaOrgTypeImpl.BuilderImpl<T extends SchemaOrgType.Builder & JsonLdNode.Builder> |
SchemaOrgType.BuilderJsonLdNode.Builder| Modifier and Type | Field and Description |
|---|---|
protected com.google.common.collect.ImmutableListMultimap<java.lang.String,ValueType> |
properties |
| Constructor and Description |
|---|
SchemaOrgTypeImpl(com.google.common.collect.Multimap<java.lang.String,ValueType> properties,
com.google.common.collect.Multimap<java.lang.String,Thing> reverseMap) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsJsonLdId()
Whether current JSON-LD node contains @id value.
|
protected boolean |
containsProperty(java.lang.String name) |
boolean |
contentEquals(ValueType o)
Compares this ValueType to the specified ValueType.
|
abstract java.lang.String |
getFullTypeName()
Returns the full name of this schema.org type.
|
com.google.common.collect.ImmutableList<ValueType> |
getJsonLdContextList()
Returns the list of JSON-LD context.
|
java.lang.String |
getJsonLdId()
Returns the value of @id.
|
com.google.common.collect.ImmutableMultimap<java.lang.String,Thing> |
getJsonLdReverseMap()
Returns the value of @reverse.
|
com.google.common.collect.ImmutableList<SchemaOrgType> |
getProperty(java.lang.String name)
Returns the list of values of a specified property.
|
protected com.google.common.collect.ImmutableList<ValueType> |
getPropertyList(java.lang.String property) |
protected ValueType |
getSingleValueProperty(java.lang.String name) |
abstract boolean |
includesProperty(java.lang.String property)
Whether the property can be set in this type.
|
protected final com.google.common.collect.ImmutableListMultimap<java.lang.String,ValueType> properties
public boolean containsJsonLdId()
JsonLdNodecontainsJsonLdId in interface JsonLdNodepublic com.google.common.collect.ImmutableList<ValueType> getJsonLdContextList()
JsonLdNodegetJsonLdContextList in interface JsonLdNode@Nullable
public java.lang.String getJsonLdId()
throws SchemaOrgException
JsonLdNodegetJsonLdId in interface JsonLdNodeSchemaOrgExceptionpublic com.google.common.collect.ImmutableMultimap<java.lang.String,Thing> getJsonLdReverseMap()
JsonLdNodegetJsonLdReverseMap in interface JsonLdNodepublic abstract java.lang.String getFullTypeName()
SchemaOrgTypegetFullTypeName in interface SchemaOrgTypepublic abstract boolean includesProperty(java.lang.String property)
SchemaOrgTypeincludesProperty in interface SchemaOrgTypeproperty - The name of property which can be short property name or full property name.public boolean contentEquals(ValueType o)
ValueTypecontentEquals in interface ValueTypepublic com.google.common.collect.ImmutableList<SchemaOrgType> getProperty(java.lang.String name)
SchemaOrgTypegetProperty in interface SchemaOrgTypename - The property name.protected boolean containsProperty(java.lang.String name)
@Nullable protected ValueType getSingleValueProperty(java.lang.String name) throws SchemaOrgException
SchemaOrgExceptionprotected com.google.common.collect.ImmutableList<ValueType> getPropertyList(java.lang.String property)