org.LexGrid.concepts
Class Instance
java.lang.Object
org.LexGrid.commonTypes.Versionable
org.LexGrid.commonTypes.VersionableAndDescribable
org.LexGrid.concepts.Entity
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
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.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 |
Instance
public Instance()
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