org.openprovenance.model
Class Role

java.lang.Object
  extended by org.openprovenance.model.Role
All Implemented Interfaces:
org.jvnet.jaxb2_commons.lang.Equals, org.jvnet.jaxb2_commons.lang.HashCode, org.jvnet.jaxb2_commons.lang.ToString, Annotable, Identifiable
Direct Known Subclasses:
RdfRole

public class Role
extends Object
implements Annotable, org.jvnet.jaxb2_commons.lang.Equals, org.jvnet.jaxb2_commons.lang.HashCode, org.jvnet.jaxb2_commons.lang.ToString

Java class for Role complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="Role">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element ref="{http://openprovenance.org/model/opmx#}annotation" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
       <attribute name="value" type="{http://www.w3.org/2001/XMLSchema}string" />
       <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
     </restriction>
   </complexContent>
 </complexType>
 


Field Summary
protected  List<javax.xml.bind.JAXBElement<? extends EmbeddedAnnotation>> annotation
           
protected  String id
           
protected  String value
           
 
Constructor Summary
Role()
           
 
Method Summary
 boolean equals(Object object)
           
 void equals(Object object, EqualsBuilder equalsBuilder)
           
 List<javax.xml.bind.JAXBElement<? extends EmbeddedAnnotation>> getAnnotation()
          Gets the value of the annotation property.
 String getId()
          Gets the value of the id property.
 String getValue()
          Gets the value of the value property.
 int hashCode()
           
 void hashCode(HashCodeBuilder hashCodeBuilder)
           
 void setId(String value)
          Sets the value of the id property.
 void setValue(String value)
          Sets the value of the value property.
 String toString()
           
 void toString(ToStringBuilder toStringBuilder)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

annotation

protected List<javax.xml.bind.JAXBElement<? extends EmbeddedAnnotation>> annotation

value

protected String value

id

protected String id
Constructor Detail

Role

public Role()
Method Detail

getAnnotation

public List<javax.xml.bind.JAXBElement<? extends EmbeddedAnnotation>> getAnnotation()
Gets the value of the annotation 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 set method for the annotation property.

For example, to add a new item, do as follows:

    getAnnotation().add(newItem);
 

Objects of the following type(s) are allowed in the list JAXBElement<Value> JAXBElement<Type> JAXBElement<Label> JAXBElement<PName> JAXBElement<EmbeddedAnnotation> JAXBElement<Profile>

Specified by:
getAnnotation in interface Annotable

getValue

public String getValue()
Gets the value of the value property.

Returns:
possible object is String

setValue

public void setValue(String value)
Sets the value of the value property.

Parameters:
value - allowed object is String

getId

public String getId()
Gets the value of the id property.

Specified by:
getId in interface Identifiable
Returns:
possible object is String

setId

public void setId(String value)
Sets the value of the id property.

Specified by:
setId in interface Identifiable
Parameters:
value - allowed object is String

equals

public void equals(Object object,
                   EqualsBuilder equalsBuilder)
Specified by:
equals in interface org.jvnet.jaxb2_commons.lang.Equals

equals

public boolean equals(Object object)
Overrides:
equals in class Object

hashCode

public void hashCode(HashCodeBuilder hashCodeBuilder)
Specified by:
hashCode in interface org.jvnet.jaxb2_commons.lang.HashCode

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public void toString(ToStringBuilder toStringBuilder)
Specified by:
toString in interface org.jvnet.jaxb2_commons.lang.ToString

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.