public class PropertyDocumentBuilder extends EntityDocumentBuilder<PropertyDocumentBuilder,PropertyDocument>
PropertyDocument objects.| Modifier | Constructor | Description |
|---|---|---|
protected |
PropertyDocumentBuilder(PropertyIdValue propertyIdValue,
DatatypeIdValue datatype) |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
PropertyDocument |
build() |
Returns the
ItemDocument that has been built. |
static PropertyDocumentBuilder |
forPropertyIdAndDatatype(PropertyIdValue propertyIdValue,
java.lang.String datatypeId) |
Starts the construction of an
PropertyDocument with the given id. |
static PropertyDocumentBuilder |
forPropertyIdAndDatatype(PropertyIdValue propertyIdValue,
DatatypeIdValue datatype) |
Starts the construction of an
PropertyDocument with the given id. |
protected PropertyDocumentBuilder |
getThis() |
Returns the current object with the correct builder type.
|
prepareBuildgetStatementGroups, withAlias, withAlias, withDescription, withDescription, withLabel, withLabel, withRevisionId, withStatementprotected PropertyDocumentBuilder(PropertyIdValue propertyIdValue, DatatypeIdValue datatype)
propertyIdValue - id of the newly constructed property documentdatatype - the datatype of the newly constructed property documentpublic static PropertyDocumentBuilder forPropertyIdAndDatatype(PropertyIdValue propertyIdValue, DatatypeIdValue datatype)
PropertyDocument with the given id.propertyIdValue - id of the newly constructed property documentdatatype - the datatype of the newly constructed property documentpublic static PropertyDocumentBuilder forPropertyIdAndDatatype(PropertyIdValue propertyIdValue, java.lang.String datatypeId)
PropertyDocument with the given id.propertyIdValue - id of the newly constructed property documentdatatypeId - the datatype id of the newly constructed property document,
e.g., DatatypeIdValue.DT_ITEM.public PropertyDocument build()
ItemDocument that has been built.build in class AbstractDataObjectBuilder<PropertyDocumentBuilder,PropertyDocument>java.lang.IllegalStateException - if the object was built alreadyprotected PropertyDocumentBuilder getThis()
AbstractDataObjectBuildergetThis in class AbstractDataObjectBuilder<PropertyDocumentBuilder,PropertyDocument>Copyright © 2014–2017 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage