org.LexGrid.REST.concepts
Class EntityId

java.lang.Object
  extended by org.mayo.edu.lgModel.LexGridBase
      extended by org.LexGrid.REST.concepts.EntityId
All Implemented Interfaces:
java.io.Serializable

public class EntityId
extends LexGridBase
implements java.io.Serializable

A globally unique identtifier - a code + a namespace.

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

Constructor Summary
EntityId()
           
 
Method Summary
 java.lang.String getEntityCode()
          Returns the value of field 'entityCode'.
 java.lang.String getEntityNamespace()
          Returns the value of field 'entityNamespace'.
 java.lang.String getEntityURI()
          Returns the value of field 'entityURI'.
 boolean isValid()
          Method isValid.
 void marshal(org.xml.sax.ContentHandler handler)
           
 void marshal(java.io.Writer out)
           
 void setEntityCode(java.lang.String entityCode)
          Sets the value of field 'entityCode'.
 void setEntityNamespace(java.lang.String entityNamespace)
          Sets the value of field 'entityNamespace'.
 void setEntityURI(java.lang.String entityURI)
          Sets the value of field 'entityURI'.
static EntityId unmarshalEntityId(java.io.Reader reader)
          Method unmarshalEntityId.
 void validate()
           
 
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

EntityId

public EntityId()
Method Detail

getEntityCode

public java.lang.String getEntityCode()
Returns the value of field 'entityCode'.

Returns:
the value of field 'EntityCode'.

getEntityNamespace

public java.lang.String getEntityNamespace()
Returns the value of field 'entityNamespace'.

Returns:
the value of field 'EntityNamespace'.

getEntityURI

public java.lang.String getEntityURI()
Returns the value of field 'entityURI'.

Returns:
the value of field 'EntityURI'.

isValid

public boolean isValid()
Method isValid.

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
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
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

setEntityCode

public void setEntityCode(java.lang.String entityCode)
Sets the value of field 'entityCode'.

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

setEntityNamespace

public void setEntityNamespace(java.lang.String entityNamespace)
Sets the value of field 'entityNamespace'.

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

setEntityURI

public void setEntityURI(java.lang.String entityURI)
Sets the value of field 'entityURI'.

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

unmarshalEntityId

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

Parameters:
reader -
Returns:
the unmarshaled org.LexGrid.REST.concepts.EntityId
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
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.