org.LexGrid.concepts
Class Instance

java.lang.Object
  extended by org.LexGrid.commonTypes.Versionable
      extended by org.LexGrid.commonTypes.VersionableAndDescribable
          extended by org.LexGrid.concepts.Entity
              extended by org.LexGrid.concepts.Instance
All Implemented Interfaces:
java.io.Serializable

public class Instance
extends Entity
implements java.io.Serializable

An entity that represents an instance or an individual. The entityType for the class concept must be "instance".

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

Constructor Summary
Instance()
           
 
Method Summary
 boolean isValid()
          Method isValid.
 void marshal(org.xml.sax.ContentHandler handler)
           
 void marshal(java.io.Writer out)
           
static Instance unmarshalInstance(java.io.Reader reader)
          Method unmarshalInstance.
 void validate()
           
 
Methods inherited from class org.LexGrid.concepts.Entity
addAnyProperties, addAnyProperty, addComment, addComment, addDefinition, addDefinition, addEntityType, addEntityType, addPresentation, addPresentation, addProperty, addProperty, addPropertyLink, addPropertyLink, enumerateComment, enumerateDefinition, enumerateEntityType, enumeratePresentation, enumerateProperty, enumeratePropertyLink, getAllProperties, getComment, getComment, getCommentCount, getDefinition, getDefinition, getDefinitionCount, getEntityCode, getEntityCodeNamespace, getEntityType, getEntityType, getEntityTypeCount, getIsAnonymous, getIsDefined, getPresentation, getPresentation, getPresentationCount, getProperty, getProperty, getPropertyCount, getPropertyLink, getPropertyLink, getPropertyLinkCount, isIsAnonymous, isIsDefined, iterateComment, iterateDefinition, iterateEntityType, iteratePresentation, iterateProperty, iteratePropertyLink, removeAllComment, removeAllDefinition, removeAllEntityType, removeAllPresentation, removeAllProperty, removeAllPropertyLink, removeComment, removeCommentAt, removeDefinition, removeDefinitionAt, removeEntityType, removeEntityTypeAt, removePresentation, removePresentationAt, removeProperty, removePropertyAt, removePropertyLink, removePropertyLinkAt, setComment, setComment, setDefinition, setDefinition, setEntityCode, setEntityCodeNamespace, setEntityType, setEntityType, setIsAnonymous, setIsDefined, setPresentation, setPresentation, setProperty, setProperty, setPropertyLink, setPropertyLink, unmarshalEntity
 
Methods inherited from class org.LexGrid.commonTypes.VersionableAndDescribable
getEntityDescription, setEntityDescription, unmarshalVersionableAndDescribable
 
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

Instance

public Instance()
Method Detail

isValid

public boolean isValid()
Method isValid.

Overrides:
isValid in class Entity
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 Entity
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 Entity
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

unmarshalInstance

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

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