org.LexGrid.relations
Class AssociationTarget

java.lang.Object
  extended by org.LexGrid.commonTypes.Versionable
      extended by org.LexGrid.relations.AssociatableElement
          extended by org.LexGrid.relations.AssociationTarget
All Implemented Interfaces:
java.io.Serializable

public class AssociationTarget
extends AssociatableElement
implements java.io.Serializable

An entity on the "to" (or right hand) side of a relation.

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

Constructor Summary
AssociationTarget()
           
 
Method Summary
 java.lang.String getTargetEntityCode()
          Returns the value of field 'targetEntityCode'.
 java.lang.String getTargetEntityCodeNamespace()
          Returns the value of field 'targetEntityCodeNamespace'.
 boolean isValid()
          Method isValid.
 void marshal(org.xml.sax.ContentHandler handler)
           
 void marshal(java.io.Writer out)
           
 void setTargetEntityCode(java.lang.String targetEntityCode)
          Sets the value of field 'targetEntityCode'.
 void setTargetEntityCodeNamespace(java.lang.String targetEntityCodeNamespace)
          Sets the value of field 'targetEntityCodeNamespace'.
static AssociationTarget unmarshalAssociationTarget(java.io.Reader reader)
          Method unmarshalAssociationTarget.
 void validate()
           
 
Methods inherited from class org.LexGrid.relations.AssociatableElement
addAssociationQualification, addAssociationQualification, addUsageContext, addUsageContext, enumerateAssociationQualification, enumerateUsageContext, getAssociationInstanceId, getAssociationQualification, getAssociationQualification, getAssociationQualificationCount, getIsDefining, getIsInferred, getUsageContext, getUsageContext, getUsageContextCount, isIsDefining, isIsInferred, iterateAssociationQualification, iterateUsageContext, removeAllAssociationQualification, removeAllUsageContext, removeAssociationQualification, removeAssociationQualificationAt, removeUsageContext, removeUsageContextAt, setAssociationInstanceId, setAssociationQualification, setAssociationQualification, setIsDefining, setIsInferred, setUsageContext, setUsageContext, 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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssociationTarget

public AssociationTarget()
Method Detail

getTargetEntityCode

public java.lang.String getTargetEntityCode()
Returns the value of field 'targetEntityCode'. The field 'targetEntityCode' has the following description: The entity code of the target entity.

Returns:
the value of field 'TargetEntityCode'.

getTargetEntityCodeNamespace

public java.lang.String getTargetEntityCodeNamespace()
Returns the value of field 'targetEntityCodeNamespace'. The field 'targetEntityCodeNamespace' has the following description: Local name of the namespace of the targetEntityCode. targetEntityCodeNamespace must match a local id of a supportedNamespace in the corresponding mappings section. If omitted, the URI of targetEntityCode namespace is the codingSchemeURI of the containing coding scheme.

Returns:
the value of field 'TargetEntityCodeNamespace'.

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

setTargetEntityCode

public void setTargetEntityCode(java.lang.String targetEntityCode)
Sets the value of field 'targetEntityCode'. The field 'targetEntityCode' has the following description: The entity code of the target entity.

Parameters:
targetEntityCode - the value of field 'targetEntityCode'

setTargetEntityCodeNamespace

public void setTargetEntityCodeNamespace(java.lang.String targetEntityCodeNamespace)
Sets the value of field 'targetEntityCodeNamespace'. The field 'targetEntityCodeNamespace' has the following description: Local name of the namespace of the targetEntityCode. targetEntityCodeNamespace must match a local id of a supportedNamespace in the corresponding mappings section. If omitted, the URI of targetEntityCode namespace is the codingSchemeURI of the containing coding scheme.

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

unmarshalAssociationTarget

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

Parameters:
reader -
Returns:
the unmarshaled org.LexGrid.relations.AssociationTarget
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.