org.LexGrid.concepts
Class PropertyLink

java.lang.Object
  extended by org.LexGrid.concepts.PropertyLink
All Implemented Interfaces:
java.io.Serializable

public class PropertyLink
extends java.lang.Object
implements java.io.Serializable

A link between two properties for an entity.. Examples include acronymFor, abbreviationOf, spellingVariantOf, etc. Must be in supportedPropertyLink.

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

Constructor Summary
PropertyLink()
           
 
Method Summary
 java.lang.String getPropertyLink()
          Returns the value of field 'propertyLink'.
 java.lang.String getSourceProperty()
          Returns the value of field 'sourceProperty'.
 java.lang.String getTargetProperty()
          Returns the value of field 'targetProperty'.
 boolean isValid()
          Method isValid.
 void marshal(org.xml.sax.ContentHandler handler)
           
 void marshal(java.io.Writer out)
           
 void setPropertyLink(java.lang.String propertyLink)
          Sets the value of field 'propertyLink'.
 void setSourceProperty(java.lang.String sourceProperty)
          Sets the value of field 'sourceProperty'.
 void setTargetProperty(java.lang.String targetProperty)
          Sets the value of field 'targetProperty'.
static PropertyLink unmarshalPropertyLink(java.io.Reader reader)
          Method unmarshalPropertyLink.
 void validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyLink

public PropertyLink()
Method Detail

getPropertyLink

public java.lang.String getPropertyLink()
Returns the value of field 'propertyLink'. The field 'propertyLink' has the following description: The local name of the type of linke between properties. propertyLink must match a local id of a supportedPropertyLink in the corresponding mappings section

Returns:
the value of field 'PropertyLink'.

getSourceProperty

public java.lang.String getSourceProperty()
Returns the value of field 'sourceProperty'. The field 'sourceProperty' has the following description: The identifier of the first property in the link.

Returns:
the value of field 'SourceProperty'.

getTargetProperty

public java.lang.String getTargetProperty()
Returns the value of field 'targetProperty'. The field 'targetProperty' has the following description: The identifier of the second property in the link.

Returns:
the value of field 'TargetProperty'.

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

setPropertyLink

public void setPropertyLink(java.lang.String propertyLink)
Sets the value of field 'propertyLink'. The field 'propertyLink' has the following description: The local name of the type of linke between properties. propertyLink must match a local id of a supportedPropertyLink in the corresponding mappings section

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

setSourceProperty

public void setSourceProperty(java.lang.String sourceProperty)
Sets the value of field 'sourceProperty'. The field 'sourceProperty' has the following description: The identifier of the first property in the link.

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

setTargetProperty

public void setTargetProperty(java.lang.String targetProperty)
Sets the value of field 'targetProperty'. The field 'targetProperty' has the following description: The identifier of the second property in the link.

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

unmarshalPropertyLink

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

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