public class Used extends Object implements org.jvnet.jaxb2_commons.lang.Equals, org.jvnet.jaxb2_commons.lang.HashCode, org.jvnet.jaxb2_commons.lang.ToString, Used, HasAllAttributes
Java class for Usage complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Usage"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="activity" type="{http://www.w3.org/ns/prov#}IDRef"/> <element name="entity" type="{http://www.w3.org/ns/prov#}IDRef"/> <element name="time" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/> <element ref="{http://www.w3.org/ns/prov#}label" maxOccurs="unbounded" minOccurs="0"/> <element ref="{http://www.w3.org/ns/prov#}location" maxOccurs="unbounded" minOccurs="0"/> <element ref="{http://www.w3.org/ns/prov#}role" maxOccurs="unbounded" minOccurs="0"/> <element ref="{http://www.w3.org/ns/prov#}type" maxOccurs="unbounded" minOccurs="0"/> <any namespace='##other' maxOccurs="unbounded" minOccurs="0"/> </sequence> <attribute ref="{http://www.w3.org/ns/prov#}id"/> </restriction> </complexContent> </complexType>
StatementOrBundle.Kind
Modifier and Type | Field and Description |
---|---|
protected QualifiedName |
activity |
protected List<Attribute> |
all |
protected QualifiedName |
entity |
protected QualifiedName |
id |
protected List<LangString> |
label |
protected List<Location> |
location |
protected List<Other> |
others |
protected List<Role> |
role |
protected XMLGregorianCalendar |
time |
protected List<Type> |
type |
Constructor and Description |
---|
Used() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
void |
equals(Object object,
org.apache.commons.lang.builder.EqualsBuilder equalsBuilder) |
QualifiedName |
getActivity()
Gets the value of the activity property.
|
List<Attribute> |
getAllAttributes()
Gets the List of all attributes
|
QualifiedName |
getEntity()
Gets the value of the entity property.
|
QualifiedName |
getId()
Gets the value of the id property.
|
StatementOrBundle.Kind |
getKind()
Gets the type of a provenance statement
|
List<LangString> |
getLabel()
Gets the value of the label property.
|
List<Location> |
getLocation()
Gets the value of the location property.
|
List<Other> |
getOther()
Gets the list of non-PROV attributes.
|
List<Role> |
getRole()
Gets the value of the role property.
|
XMLGregorianCalendar |
getTime()
Gets the value of the time property.
|
List<Type> |
getType()
Gets the value of the type property.
|
int |
hashCode() |
void |
hashCode(org.apache.commons.lang.builder.HashCodeBuilder hashCodeBuilder) |
void |
setActivity(QualifiedName value)
Sets the value of the activity property.
|
void |
setEntity(QualifiedName value)
Sets the value of the entity property.
|
void |
setId(QualifiedName value)
Sets the value of the id property.
|
void |
setTime(XMLGregorianCalendar value)
Sets the value of the time property.
|
String |
toString() |
void |
toString(org.apache.commons.lang.builder.ToStringBuilder toStringBuilder) |
protected QualifiedName activity
protected QualifiedName entity
protected XMLGregorianCalendar time
protected List<LangString> label
protected QualifiedName id
public QualifiedName getActivity()
getActivity
in interface Used
IDRef
public void setActivity(QualifiedName value)
setActivity
in interface Used
value
- allowed object is
IDRef
public QualifiedName getEntity()
public void setEntity(QualifiedName value)
public XMLGregorianCalendar getTime()
getTime
in interface HasTime
XMLGregorianCalendar
public void setTime(XMLGregorianCalendar value)
setTime
in interface HasTime
value
- allowed object is
XMLGregorianCalendar
public List<LangString> getLabel()
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 label property.
For example, to add a new item, do as follows:
getLabel().add(newItem);
Objects of the following type(s) are allowed in the list
InternationalizedString
public List<Location> getLocation()
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 location property.
For example, to add a new item, do as follows:
getLocation().add(newItem);
Objects of the following type(s) are allowed in the list
Location
getLocation
in interface HasLocation
Location
public List<Role> getRole()
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 role property.
For example, to add a new item, do as follows:
getRole().add(newItem);
Objects of the following type(s) are allowed in the list
Role
public List<Type> getType()
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 type property.
For example, to add a new item, do as follows:
getType().add(newItem);
Objects of the following type(s) are allowed in the list
Type
public List<Other> getOther()
HasOther
This accessor method returns a reference to the live list,
not a snapshot. Therefore, any modification made to the
returned list will be present inside the object.
This is why there is not a set
method for the role property.
For example, to add a new item, do as follows:
getOther().add(newItem);
public List<Attribute> getAllAttributes()
getAllAttributes
in interface HasAllAttributes
org.openprovenance.prov.xml.HasAllAttributes#getAll()
public QualifiedName getId()
getId
in interface Identifiable
QualifiedName
public void setId(QualifiedName value)
setId
in interface Identifiable
value
- allowed object is
QualifiedName
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)
toString
in interface org.jvnet.jaxb2_commons.lang.ToString
public StatementOrBundle.Kind getKind()
StatementOrBundle
getKind
in interface StatementOrBundle
StatementOrBundle.Kind
Copyright © 2013. All Rights Reserved.