org.LexGrid.concepts
Class Definition

java.lang.Object
  extended by org.LexGrid.commonTypes.Versionable
      extended by org.LexGrid.commonTypes.Property
          extended by org.LexGrid.concepts.Definition
All Implemented Interfaces:
java.io.Serializable

public class Definition
extends Property
implements java.io.Serializable

A property that defines the entity in a particular langage or context.. The propertyType of definition must be "definition"

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

Constructor Summary
Definition()
           
 
Method Summary
 java.lang.Boolean getIsPreferred()
          Returns the value of field 'isPreferred'.
 java.lang.Boolean isIsPreferred()
          Returns the value of field 'isPreferred'.
 boolean isValid()
          Method isValid.
 void marshal(org.xml.sax.ContentHandler handler)
           
 void marshal(java.io.Writer out)
           
 void setIsPreferred(java.lang.Boolean isPreferred)
          Sets the value of field 'isPreferred'.
static Definition unmarshalDefinition(java.io.Reader reader)
          Method unmarshalDefinition.
 void validate()
           
 
Methods inherited from class org.LexGrid.commonTypes.Property
addPropertyQualifier, addPropertyQualifier, addSource, addSource, addUsageContext, addUsageContext, enumeratePropertyQualifier, enumerateSource, enumerateUsageContext, getLanguage, getPropertyId, getPropertyName, getPropertyQualifier, getPropertyQualifier, getPropertyQualifierCount, getPropertyType, getSource, getSource, getSourceCount, getUsageContext, getUsageContext, getUsageContextCount, getValue, iteratePropertyQualifier, iterateSource, iterateUsageContext, removeAllPropertyQualifier, removeAllSource, removeAllUsageContext, removePropertyQualifier, removePropertyQualifierAt, removeSource, removeSourceAt, removeUsageContext, removeUsageContextAt, setLanguage, setPropertyId, setPropertyName, setPropertyQualifier, setPropertyQualifier, setPropertyType, setSource, setSource, setUsageContext, setUsageContext, setValue, unmarshalProperty
 
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

Definition

public Definition()
Method Detail

getIsPreferred

public java.lang.Boolean getIsPreferred()
Returns the value of field 'isPreferred'. The field 'isPreferred' has the following description: True means this is the preferred definition for the given language and context.

Returns:
the value of field 'IsPreferred'.

isIsPreferred

public java.lang.Boolean isIsPreferred()
Returns the value of field 'isPreferred'. The field 'isPreferred' has the following description: True means this is the preferred definition for the given language and context.

Returns:
the value of field 'IsPreferred'.

isValid

public boolean isValid()
Method isValid.

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

setIsPreferred

public void setIsPreferred(java.lang.Boolean isPreferred)
Sets the value of field 'isPreferred'. The field 'isPreferred' has the following description: True means this is the preferred definition for the given language and context.

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

unmarshalDefinition

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

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