T - the type of the eventual concrete builder implementationO - the type of the object that is being builtItemDocumentBuilder, PropertyDocumentBuilderpublic abstract class EntityDocumentBuilder<T extends EntityDocumentBuilder<T,O>,O> extends AbstractDataObjectBuilder<T,O>
EntityDocument
objects.| Modifier | Constructor | Description |
|---|---|---|
protected |
EntityDocumentBuilder(EntityIdValue entityIdValue) |
| Modifier and Type | Method | Description |
|---|---|---|
protected java.util.List<StatementGroup> |
getStatementGroups() |
Returns a list of
StatementGroup objects for the currently stored
statements. |
T |
withAlias(java.lang.String text,
java.lang.String languageCode) |
Adds an additional alias to the constructed document.
|
T |
withAlias(MonolingualTextValue mtv) |
Adds an additional alias to the constructed document.
|
T |
withDescription(java.lang.String text,
java.lang.String languageCode) |
Adds an additional description to the constructed document.
|
T |
withDescription(MonolingualTextValue mtv) |
Adds an additional description to the constructed document.
|
T |
withLabel(java.lang.String text,
java.lang.String languageCode) |
Adds an additional label to the constructed document.
|
T |
withLabel(MonolingualTextValue mtv) |
Adds an additional label to the constructed document.
|
T |
withRevisionId(long revisionId) |
Sets the revision id for the constructed document.
|
T |
withStatement(Statement statement) |
Adds an additional statement to the constructed document.
|
build, getThis, prepareBuildprotected EntityDocumentBuilder(EntityIdValue entityIdValue)
public T withRevisionId(long revisionId)
EntityDocument.getRevisionId().revisionId - the revision idpublic T withLabel(MonolingualTextValue mtv)
mtv - the additional labelpublic T withLabel(java.lang.String text, java.lang.String languageCode)
text - the text of the labellanguageCode - the language code of the labelpublic T withDescription(MonolingualTextValue mtv)
mtv - the additional descriptionpublic T withDescription(java.lang.String text, java.lang.String languageCode)
text - the text of the descriptionlanguageCode - the language code of the descriptionpublic T withAlias(MonolingualTextValue mtv)
mtv - the additional aliaspublic T withAlias(java.lang.String text, java.lang.String languageCode)
text - the text of the aliaslanguageCode - the language code of the aliaspublic T withStatement(Statement statement)
statement - the additional statementprotected java.util.List<StatementGroup> getStatementGroups()
StatementGroup objects for the currently stored
statements.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