org.LexGrid.LexOnt
Class CsmfSource

java.lang.Object
  extended by org.LexGrid.commonTypes.Source
      extended by org.LexGrid.LexOnt.CsmfSource
All Implemented Interfaces:
java.io.Serializable

public class CsmfSource
extends Source
implements java.io.Serializable

Based on lgCommon:source.

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

Constructor Summary
CsmfSource()
           
CsmfSource(java.lang.String defaultValue)
           
 
Method Summary
 java.lang.String getContent()
          Returns the value of field 'content'.
 java.lang.Boolean getToUpdate()
          Returns the value of field 'toUpdate'.
 java.lang.Boolean isToUpdate()
          Returns the value of field 'toUpdate'.
 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 setToUpdate(java.lang.Boolean toUpdate)
          Sets the value of field 'toUpdate'.
static CsmfSource unmarshalCsmfSource(java.io.Reader reader)
          Method unmarshalCsmfSource.
 void validate()
           
 
Methods inherited from class org.LexGrid.commonTypes.Source
getRole, getSubRef, setRole, setSubRef, unmarshalSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CsmfSource

public CsmfSource()

CsmfSource

public CsmfSource(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

Overrides:
getContent in class Source
Returns:
the value of field 'Content'.

getToUpdate

public java.lang.Boolean getToUpdate()
Returns the value of field 'toUpdate'. The field 'toUpdate' has the following description: If this flag is set to true, use the localId to check if the entry already exists. If it exists, update that entry with the manifest information. If the entry doesn't exist, add it. If the flag is false, use the localId to check it entry already exists. If it doesn't exist, add it. If it exists, do nothing.

Returns:
the value of field 'ToUpdate'.

isToUpdate

public java.lang.Boolean isToUpdate()
Returns the value of field 'toUpdate'. The field 'toUpdate' has the following description: If this flag is set to true, use the localId to check if the entry already exists. If it exists, update that entry with the manifest information. If the entry doesn't exist, add it. If the flag is false, use the localId to check it entry already exists. If it doesn't exist, add it. If it exists, do nothing.

Returns:
the value of field 'ToUpdate'.

isValid

public boolean isValid()
Method isValid.

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

Overrides:
setContent in class Source
Parameters:
content - the value of field 'content'.

setToUpdate

public void setToUpdate(java.lang.Boolean toUpdate)
Sets the value of field 'toUpdate'. The field 'toUpdate' has the following description: If this flag is set to true, use the localId to check if the entry already exists. If it exists, update that entry with the manifest information. If the entry doesn't exist, add it. If the flag is false, use the localId to check it entry already exists. If it doesn't exist, add it. If it exists, do nothing.

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

unmarshalCsmfSource

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

Parameters:
reader -
Returns:
the unmarshaled org.LexGrid.LexOnt.CsmfSource
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 Source
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.