java.lang.Object
org.openprovenance.prov.vanilla.Document
- All Implemented Interfaces:
org.openprovenance.apache.commons.lang.builder.Equals,org.openprovenance.apache.commons.lang.builder.HashCode,org.openprovenance.apache.commons.lang.builder.ToString,Document
-
Constructor Summary
ConstructorsConstructorDescriptionDocument()Document(List<StatementOrBundle> statementsOrBundle) Document(Namespace namespace, Collection<Statement> statements, Collection<Bundle> bundles) Document(Namespace namespace, List<StatementOrBundle> statementsOrBundle) -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidAccessor for theNamespaceobject containing registered prefix/namespaces for the current document.#Gets the value of the statementOrBundle property.inthashCode()voidhashCode(org.openprovenance.apache.commons.lang.builder.HashCodeBuilder hashCodeBuilder) voidsetNamespace(Namespace namespace) Sets theNamespaceof this documenttoString()voidtoString(org.openprovenance.apache.commons.lang.builder.ToStringBuilder toStringBuilder)
-
Constructor Details
-
Document
-
Document
-
Document
-
Document
public Document()
-
-
Method Details
-
getNamespace
-
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- Returns:
- a list of
StatementOrBundle
-
setNamespace
-
equals
public void equals(Object object, org.openprovenance.apache.commons.lang.builder.EqualsBuilder equalsBuilder) - Specified by:
equalsin interfaceorg.openprovenance.apache.commons.lang.builder.Equals
-
equals
-
hashCode
public void hashCode(org.openprovenance.apache.commons.lang.builder.HashCodeBuilder hashCodeBuilder) - Specified by:
hashCodein interfaceorg.openprovenance.apache.commons.lang.builder.HashCode
-
hashCode
-
toString
public void toString(org.openprovenance.apache.commons.lang.builder.ToStringBuilder toStringBuilder) - Specified by:
toStringin interfaceorg.openprovenance.apache.commons.lang.builder.ToString
-
toString
-