public class Document extends Object implements Equals, HashCode, ToString, Document
Java class for Document complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Document"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <choice maxOccurs="unbounded"> <group ref="{http://www.w3.org/ns/prov#}documentElements"/> <element name="bundleContent" type="{http://www.w3.org/ns/prov#}NamedBundle"/> </choice> </sequence> </restriction> </complexContent> </complexType>
Modifier and Type | Field and Description |
---|---|
protected List<StatementOrBundle> |
statementOrBundle |
Constructor and Description |
---|
Document() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
void |
equals(Object object,
org.apache.commons.lang.builder.EqualsBuilder equalsBuilder) |
Namespace |
getNamespace()
Accessor for the
Namespace object containing registered prefix/namespaces for the current document.# |
List<StatementOrBundle> |
getStatementOrBundle()
Gets the value of the statementOrBundle property.
|
int |
hashCode() |
void |
hashCode(org.apache.commons.lang.builder.HashCodeBuilder hashCodeBuilder) |
void |
setNamespace(Namespace ns)
Sets the
Namespace of this document |
String |
toString() |
void |
toString(org.apache.commons.lang.builder.ToStringBuilder toStringBuilder) |
protected List<StatementOrBundle> statementOrBundle
public List<StatementOrBundle> getStatementOrBundle()
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 set
method 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
Entity
Activity
WasGeneratedBy
Used
WasInformedBy
WasStartedBy
WasEndedBy
WasInvalidatedBy
WasDerivedFrom
Agent
WasAttributedTo
WasAssociatedWith
ActedOnBehalfOf
WasInfluencedBy
SpecializationOf
AlternateOf
HadMember
MentionOf
Plan
Revision
Quotation
PrimarySource
Person
Organization
SoftwareAgent
BundleEntity
Collection
EmptyCollection
Dictionary
EmptyDictionary
DictionaryMembership
DerivedByInsertionFrom
DerivedByRemovalFrom
Others
Bundle
getStatementOrBundle
in interface Document
public void equals(Object object, org.apache.commons.lang.builder.EqualsBuilder equalsBuilder)
public void hashCode(org.apache.commons.lang.builder.HashCodeBuilder hashCodeBuilder)
public void toString(org.apache.commons.lang.builder.ToStringBuilder toStringBuilder)
public void setNamespace(Namespace ns)
Document
Namespace
of this documentsetNamespace
in interface Document
ns
- an instance Namespace
Copyright © 2016. All rights reserved.