org.LexGrid.naming
Class URIMap

java.lang.Object
  extended by org.mayo.edu.lgModel.LexGridBase
      extended by org.LexGrid.naming.URIMap
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
SupportedAssociation, SupportedAssociationQualifier, SupportedCodingScheme, SupportedConceptDomain, SupportedContainerName, SupportedContext, SupportedDataType, SupportedDegreeOfFidelity, SupportedEntityType, SupportedHierarchy, SupportedLanguage, SupportedNamespace, SupportedProperty, SupportedPropertyLink, SupportedPropertyQualifier, SupportedPropertyQualifierType, SupportedPropertyType, SupportedRepresentationalForm, SupportedSortOrder, SupportedSource, SupportedSourceRole, SupportedStatus

public class URIMap
extends LexGridBase
implements java.io.Serializable

A local identifier that is used in a specific context (e.g. language, property name, data type, etc) and an optional URI that can be used to find the exact definition and meaning of the local id. Note: the string portion of this entry can be used to provide additional documentation or information, especially when a URI is not supplied.

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

Constructor Summary
URIMap()
           
URIMap(java.lang.String defaultValue)
           
 
Method Summary
 java.lang.String getContent()
          Returns the value of field 'content'.
 java.lang.String getLocalId()
          Returns the value of field 'localId'.
 java.lang.String getUri()
          Returns the value of field 'uri'.
 boolean isValid()
          Method isValid.
 void marshal(org.xml.sax.ContentHandler handler)
           
 void marshal(java.io.Writer out)
           
 void setContent(java.lang.String content)
          Sets the value of field 'content'.
 void setLocalId(java.lang.String localId)
          Sets the value of field 'localId'.
 void setUri(java.lang.String uri)
          Sets the value of field 'uri'.
static URIMap unmarshalURIMap(java.io.Reader reader)
          Method unmarshalURIMap.
 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

URIMap

public URIMap()

URIMap

public URIMap(java.lang.String defaultValue)
Method Detail

getContent

public java.lang.String getContent()
Returns the value of field 'content'. The field 'content' has the following description: internal content storage

Returns:
the value of field 'Content'.

getLocalId

public java.lang.String getLocalId()
Returns the value of field 'localId'. The field 'localId' has the following description: An identifier that, in the context of the particular URIMap type, assigns a meaning to how that property is used. As an example, "en" might be used to identify English in the context of language.

Returns:
the value of field 'LocalId'.

getUri

public java.lang.String getUri()
Returns the value of field 'uri'. The field 'uri' has the following description: A URI that identifies the intended meaning of the localId.

Returns:
the value of field 'Uri'.

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

setContent

public void setContent(java.lang.String content)
Sets the value of field 'content'. The field 'content' has the following description: internal content storage

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

setLocalId

public void setLocalId(java.lang.String localId)
Sets the value of field 'localId'. The field 'localId' has the following description: An identifier that, in the context of the particular URIMap type, assigns a meaning to how that property is used. As an example, "en" might be used to identify English in the context of language.

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

setUri

public void setUri(java.lang.String uri)
Sets the value of field 'uri'. The field 'uri' has the following description: A URI that identifies the intended meaning of the localId.

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

unmarshalURIMap

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

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