org.LexGrid.REST.relations
Class AssociationEntry

java.lang.Object
  extended by org.mayo.edu.lgModel.LexGridBase
      extended by org.LexGrid.commonTypes.Versionable
          extended by org.LexGrid.REST.relations.AssociatableElement
              extended by org.LexGrid.REST.relations.AssociationEntry
All Implemented Interfaces:
java.io.Serializable

public class AssociationEntry
extends AssociatableElement
implements java.io.Serializable

Class AssociationEntry.

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
AssociationEntry()
           
 
Method Summary
 EntityDirectoryEntry getPredicate()
          Returns the value of field 'predicate'.
 ContainerName getRelationsContainer()
          Returns the value of field 'relationsContainer'.
 EntityDirectoryEntry getSubject()
          Returns the value of field 'subject'.
 AssociationTarget getTarget()
          Returns the value of field 'target'.
 boolean isValid()
          Method isValid.
 void marshal(org.xml.sax.ContentHandler handler)
           
 void marshal(java.io.Writer out)
           
 void setPredicate(EntityDirectoryEntry predicate)
          Sets the value of field 'predicate'.
 void setRelationsContainer(ContainerName relationsContainer)
          Sets the value of field 'relationsContainer'.
 void setSubject(EntityDirectoryEntry subject)
          Sets the value of field 'subject'.
 void setTarget(AssociationTarget target)
          Sets the value of field 'target'.
static AssociationEntry unmarshalAssociationEntry(java.io.Reader reader)
          Method unmarshalAssociationEntry.
 void validate()
           
 
Methods inherited from class org.LexGrid.REST.relations.AssociatableElement
addAssociationQualification, addAssociationQualification, addUsageContext, addUsageContext, enumerateAssociationQualification, enumerateUsageContext, getAssociationInstanceId, getAssociationQualification, getAssociationQualification, getAssociationQualificationAsReference, getAssociationQualificationCount, getIdIsPublic, getIsDefining, getIsInferred, getUsageContext, getUsageContext, getUsageContextAsReference, getUsageContextCount, isIdIsPublic, isIsDefining, isIsInferred, iterateAssociationQualification, iterateUsageContext, removeAllAssociationQualification, removeAllUsageContext, removeAssociationQualification, removeAssociationQualificationAt, removeUsageContext, removeUsageContextAt, setAssociationInstanceId, setAssociationQualification, setAssociationQualification, setAssociationQualification, setAssociationQualificationAsReference, setIdIsPublic, setIsDefining, setIsInferred, setUsageContext, setUsageContext, setUsageContext, setUsageContextAsReference, unmarshalAssociatableElement
 
Methods inherited from class org.LexGrid.commonTypes.Versionable
getEffectiveDate, getEntryState, getExpirationDate, getIsActive, getOwner, getStatus, isIsActive, setEffectiveDate, setEntryState, setExpirationDate, setIsActive, setOwner, setStatus, unmarshalVersionable
 
Methods inherited from class org.mayo.edu.lgModel.LexGridBase
getParent, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssociationEntry

public AssociationEntry()
Method Detail

getPredicate

public EntityDirectoryEntry getPredicate()
Returns the value of field 'predicate'.

Returns:
the value of field 'Predicate'.

getRelationsContainer

public ContainerName getRelationsContainer()
Returns the value of field 'relationsContainer'.

Returns:
the value of field 'RelationsContainer'.

getSubject

public EntityDirectoryEntry getSubject()
Returns the value of field 'subject'.

Returns:
the value of field 'Subject'.

getTarget

public AssociationTarget getTarget()
Returns the value of field 'target'.

Returns:
the value of field 'Target'.

isValid

public boolean isValid()
Method isValid.

Overrides:
isValid in class AssociatableElement
Returns:
true if this object is valid according to the schema

marshal

public void marshal(java.io.Writer out)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Overrides:
marshal in class AssociatableElement
Parameters:
out -
Throws:
org.exolab.castor.xml.MarshalException - if object is null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException - if this object is an invalid instance according to the schema

marshal

public void marshal(org.xml.sax.ContentHandler handler)
             throws java.io.IOException,
                    org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Overrides:
marshal in class AssociatableElement
Parameters:
handler -
Throws:
java.io.IOException - if an IOException occurs during marshaling
org.exolab.castor.xml.ValidationException - if this object is an invalid instance according to the schema
org.exolab.castor.xml.MarshalException - if object is null or if any SAXException is thrown during marshaling

setPredicate

public void setPredicate(EntityDirectoryEntry predicate)
Sets the value of field 'predicate'.

Parameters:
predicate - the value of field 'predicate'.

setRelationsContainer

public void setRelationsContainer(ContainerName relationsContainer)
Sets the value of field 'relationsContainer'.

Parameters:
relationsContainer - the value of field 'relationsContainer'.

setSubject

public void setSubject(EntityDirectoryEntry subject)
Sets the value of field 'subject'.

Parameters:
subject - the value of field 'subject'.

setTarget

public void setTarget(AssociationTarget target)
Sets the value of field 'target'.

Parameters:
target - the value of field 'target'.

unmarshalAssociationEntry

public static AssociationEntry unmarshalAssociationEntry(java.io.Reader reader)
                                                  throws org.exolab.castor.xml.MarshalException,
                                                         org.exolab.castor.xml.ValidationException
Method unmarshalAssociationEntry.

Parameters:
reader -
Returns:
the unmarshaled org.LexGrid.REST.relations.AssociationEntry
Throws:
org.exolab.castor.xml.MarshalException - if object is null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException - if this object is an invalid instance according to the schema

validate

public void validate()
              throws org.exolab.castor.xml.ValidationException
Overrides:
validate in class AssociatableElement
Throws:
org.exolab.castor.xml.ValidationException - if this object is an invalid instance according to the schema

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.