Package org.openprovenance.prov.vanilla
Class Document
- java.lang.Object
-
- org.openprovenance.prov.vanilla.Document
-
-
Constructor Summary
Constructors Constructor Description Document()Document(List<StatementOrBundle> statementsOrBundle)Document(Namespace namespace, Collection<Statement> statements, Collection<Bundle> bundles)Document(Namespace namespace, List<StatementOrBundle> statementsOrBundle)
-
Method Summary
Modifier and Type Method Description booleanequals(Object object)voidequals(Object object, EqualsBuilder equalsBuilder)NamespacegetNamespace()Accessor for theNamespaceobject containing registered prefix/namespaces for the current document.#List<StatementOrBundle>getStatementOrBundle()Gets the value of the statementOrBundle property.inthashCode()voidhashCode(HashCodeBuilder hashCodeBuilder)voidsetNamespace(Namespace namespace)Sets theNamespaceof this documentStringtoString()voidtoString(ToStringBuilder toStringBuilder)
-
-
-
Constructor Detail
-
Document
public Document(List<StatementOrBundle> statementsOrBundle)
-
Document
public Document(Namespace namespace, List<StatementOrBundle> statementsOrBundle)
-
Document
public Document(Namespace namespace, Collection<Statement> statements, Collection<Bundle> bundles)
-
Document
public Document()
-
-
Method Detail
-
getNamespace
public Namespace getNamespace()
Description copied from interface:DocumentAccessor for theNamespaceobject containing registered prefix/namespaces for the current document.#- Specified by:
getNamespacein interfaceDocument- Returns:
- an instance of
Namespace
-
getStatementOrBundle
public List<StatementOrBundle> getStatementOrBundle()
Description copied from interface:DocumentGets the value of the statementOrBundle property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the statementOrBundle property.For example, to add a new item, do as follows:
getStatementOrBundle().add(newItem);Objects of the following type(s) are allowed in the list
EntityActivityWasGeneratedByUsedWasInformedByWasStartedByWasEndedByWasInvalidatedByWasDerivedFromAgentWasAttributedToWasAssociatedWithActedOnBehalfOfWasInfluencedBySpecializationOfAlternateOfHadMemberMentionOfDictionaryMembershipDerivedByInsertionFromDerivedByRemovalFromBundle- Specified by:
getStatementOrBundlein interfaceDocument
-
setNamespace
public void setNamespace(Namespace namespace)
Description copied from interface:DocumentSets theNamespaceof this document- Specified by:
setNamespacein interfaceDocument- Parameters:
namespace- an instanceNamespace
-
equals
public void equals(Object object, EqualsBuilder equalsBuilder)
-
hashCode
public void hashCode(HashCodeBuilder hashCodeBuilder)
-
toString
public void toString(ToStringBuilder toStringBuilder)
-
-