@Entity(name="Document") 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 | Class and Description |
---|---|
static class |
Document.Kind |
Modifier and Type | Field and Description |
---|---|
protected Long |
pk |
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) |
Document.Kind |
getKind() |
Namespace |
getNamespace()
Accessor for the
Namespace object containing registered prefix/namespaces for the current document.# |
Long |
getPk()
Gets the value of the pk property.
|
List<StatementOrBundle> |
getStatementOrBundle()
Gets the value of the statementOrBundle property.
|
int |
hashCode() |
void |
hashCode(org.apache.commons.lang.builder.HashCodeBuilder hashCodeBuilder) |
void |
setKind(Document.Kind kind) |
void |
setNamespace(Namespace ns)
Sets the
Namespace of this document |
void |
setPk(Long value)
Sets the value of the pk property.
|
void |
setStatementOrBundle(List<StatementOrBundle> statementOrBundle) |
String |
toString() |
void |
toString(org.apache.commons.lang.builder.ToStringBuilder toStringBuilder) |
protected List<StatementOrBundle> statementOrBundle
protected Long pk
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
Collection
EmptyCollection
HadMember
MentionOf
Bundle
getStatementOrBundle
in interface Document
public void setStatementOrBundle(List<StatementOrBundle> statementOrBundle)
public void setPk(Long value)
value
- allowed object is
Long
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 Namespace getNamespace()
Document
Namespace
object containing registered prefix/namespaces for the current document.#getNamespace
in interface Document
Namespace
public void setNamespace(Namespace ns)
Document
Namespace
of this documentsetNamespace
in interface Document
ns
- an instance Namespace
public Document.Kind getKind()
public void setKind(Document.Kind kind)
Copyright © 2016. All rights reserved.