org.openprovenance.model
Class Annotation

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

public class Annotation
extends EmbeddedAnnotation
implements org.jvnet.jaxb2_commons.lang.Equals, org.jvnet.jaxb2_commons.lang.HashCode, org.jvnet.jaxb2_commons.lang.ToString

Java class for Annotation complex type.

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

 <complexType name="Annotation">
   <complexContent>
     <extension base="{http://openprovenance.org/model/opmx#}EmbeddedAnnotation">
       <sequence>
         <choice minOccurs="0">
           <element name="externalSubject" type="{http://www.w3.org/2001/XMLSchema}anyURI"/>
           <element name="localSubject" type="{http://www.w3.org/2001/XMLSchema}IDREF"/>
         </choice>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 


Field Summary
protected  String externalSubject
           
protected  Object localSubject
           
 
Fields inherited from class org.openprovenance.model.EmbeddedAnnotation
account, annotation, id, property
 
Constructor Summary
Annotation()
           
 
Method Summary
 boolean equals(Object object)
           
 void equals(Object object, EqualsBuilder equalsBuilder)
           
 String getExternalSubject()
          Gets the value of the externalSubject property.
 Object getLocalSubject()
          Gets the value of the localSubject property.
 int hashCode()
           
 void hashCode(HashCodeBuilder hashCodeBuilder)
           
 void setExternalSubject(String value)
          Sets the value of the externalSubject property.
 void setLocalSubject(Object value)
          Sets the value of the localSubject property.
 String toString()
           
 void toString(ToStringBuilder toStringBuilder)
           
 
Methods inherited from class org.openprovenance.model.EmbeddedAnnotation
getAccount, getAnnotation, getId, getProperty, setId
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

externalSubject

protected String externalSubject

localSubject

protected Object localSubject
Constructor Detail

Annotation

public Annotation()
Method Detail

getExternalSubject

public String getExternalSubject()
Gets the value of the externalSubject property.

Returns:
possible object is String

setExternalSubject

public void setExternalSubject(String value)
Sets the value of the externalSubject property.

Parameters:
value - allowed object is String

getLocalSubject

public Object getLocalSubject()
Gets the value of the localSubject property.

Returns:
possible object is Object

setLocalSubject

public void setLocalSubject(Object value)
Sets the value of the localSubject property.

Parameters:
value - allowed object is Object

equals

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

equals

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

hashCode

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

hashCode

public int hashCode()
Overrides:
hashCode in class EmbeddedAnnotation

toString

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

toString

public String toString()
Overrides:
toString in class EmbeddedAnnotation


Copyright © 2011. All Rights Reserved.