public abstract static class SchemaOrgTypeImpl.BuilderImpl<T extends SchemaOrgType.Builder & JsonLdNode.Builder> extends java.lang.Object implements SchemaOrgType.Builder, JsonLdNode.Builder
| Modifier and Type | Field and Description |
|---|---|
protected com.google.common.collect.Multimap<java.lang.String,ValueType> |
properties |
protected com.google.common.collect.Multimap<java.lang.String,Thing> |
reverseMap |
| Constructor and Description |
|---|
BuilderImpl() |
| Modifier and Type | Method and Description |
|---|---|
T |
addJsonLdContext(JsonLdContext.Builder builder)
Add a value to @context in current JSON-LD node.
|
T |
addJsonLdContext(JsonLdContext value)
Add a value to @context in current JSON-LD node.
|
T |
addProperty(java.lang.String name,
SchemaOrgType value) |
T |
addProperty(java.lang.String name,
java.lang.String value) |
T |
addProperty(java.lang.String name,
Thing.Builder builder) |
protected T |
addPropertyValue(java.lang.String name,
ValueType value) |
T |
setJsonLdId(java.lang.String value)
Set value to @id in current JSON-LD node.
|
T |
setJsonLdReverse(java.lang.String property,
Thing.Builder builder)
Add value to @reverse in current JSON-LD node.
|
T |
setJsonLdReverse(java.lang.String property,
Thing obj)
Add value to @reverse in current JSON-LD node.
|
protected T |
setSingleValueProperty(java.lang.String name,
ValueType value) |
protected final com.google.common.collect.Multimap<java.lang.String,Thing> reverseMap
protected final com.google.common.collect.Multimap<java.lang.String,ValueType> properties
public T addJsonLdContext(@Nullable JsonLdContext value)
JsonLdNode.BuilderaddJsonLdContext in interface JsonLdNode.Builderpublic T addJsonLdContext(@Nullable JsonLdContext.Builder builder)
JsonLdNode.BuilderaddJsonLdContext in interface JsonLdNode.Builderpublic T setJsonLdId(@Nullable java.lang.String value)
JsonLdNode.BuildersetJsonLdId in interface JsonLdNode.Builderpublic T setJsonLdReverse(java.lang.String property, Thing obj)
JsonLdNode.BuildersetJsonLdReverse in interface JsonLdNode.Builderproperty - The full or short name of the property.obj - The object that the property is set in.public T setJsonLdReverse(java.lang.String property, Thing.Builder builder)
JsonLdNode.BuildersetJsonLdReverse in interface JsonLdNode.Builderproperty - The full or short name of the property.builder - The object builder that the property is set in.public T addProperty(java.lang.String name, SchemaOrgType value)
public T addProperty(java.lang.String name, Thing.Builder builder)
public T addProperty(java.lang.String name, java.lang.String value)
protected T addPropertyValue(java.lang.String name,
@Nullable
ValueType value)
protected T setSingleValueProperty(java.lang.String name,
@Nullable
ValueType value)