/* * This class was automatically generated with * Castor 1.0.5, using an XML * Schema. * $Id$ */ package org.oagis.unqualifieddatatypes; //---------------------------------/ //- Imported classes and packages -/ //---------------------------------/ import org.exolab.castor.xml.Marshaller; import org.exolab.castor.xml.Unmarshaller; /** * UDT0000019 * UDT * Text. Type * 1.0 * A character string (i.e. a finite set of characters) generally * in the form of words of a language. * Text * string * string * * * @version $Revision$ $Date$ */ public class TextType implements java.io.Serializable { //--------------------------/ //- Class/Member Variables -/ //--------------------------/ /** * internal content storage */ private java.lang.String _content = ""; /** * UDT0000019-SC2 * SC * Language. Identifier * The identifier of the language used in the content * component. * Language * Identification * Identifier * string * language * */ private java.lang.String _languageID; //----------------/ //- Constructors -/ //----------------/ public TextType() { super(); setContent(""); } //-- org.oagis.unqualifieddatatypes.TextType() //-----------/ //- Methods -/ //-----------/ /** * Returns the value of field 'content'. The field 'content' * has the following description: internal content storage * * @return the value of field 'Content'. */ public java.lang.String getContent() { return this._content; } //-- java.lang.String getContent() /** * Returns the value of field 'languageID'. The field * 'languageID' has the following description: UDT0000019-SC2 * SC * Language. Identifier * The identifier of the language used in the content * component. * Language * Identification * Identifier * string * language * * * @return the value of field 'LanguageID'. */ public java.lang.String getLanguageID() { return this._languageID; } //-- java.lang.String getLanguageID() /** * Method isValid * * * * @return true if this object is valid according to the schema */ public boolean isValid() { try { validate(); } catch (org.exolab.castor.xml.ValidationException vex) { return false; } return true; } //-- boolean isValid() /** * * * @param out * @throws org.exolab.castor.xml.MarshalException if object is * null or if any SAXException is thrown during marshaling * @throws org.exolab.castor.xml.ValidationException if this * object is an invalid instance according to the schema */ public void marshal(java.io.Writer out) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException { Marshaller.marshal(this, out); } //-- void marshal(java.io.Writer) /** * * * @param handler * @throws java.io.IOException if an IOException occurs during * marshaling * @throws org.exolab.castor.xml.ValidationException if this * object is an invalid instance according to the schema * @throws org.exolab.castor.xml.MarshalException if object is * null or if any SAXException is thrown during marshaling */ public void marshal(org.xml.sax.ContentHandler handler) throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException { Marshaller.marshal(this, handler); } //-- void marshal(org.xml.sax.ContentHandler) /** * Sets the value of field 'content'. The field 'content' has * the following description: internal content storage * * @param content the value of field 'content'. */ public void setContent(java.lang.String content) { this._content = content; } //-- void setContent(java.lang.String) /** * Sets the value of field 'languageID'. The field 'languageID' * has the following description: UDT0000019-SC2 * SC * Language. Identifier * The identifier of the language used in the content * component. * Language * Identification * Identifier * string * language * * * @param languageID the value of field 'languageID'. */ public void setLanguageID(java.lang.String languageID) { this._languageID = languageID; } //-- void setLanguageID(java.lang.String) /** * Method unmarshal * * * * @param reader * @throws org.exolab.castor.xml.MarshalException if object is * null or if any SAXException is thrown during marshaling * @throws org.exolab.castor.xml.ValidationException if this * object is an invalid instance according to the schema * @return the unmarshaled * org.oagis.unqualifieddatatypes.TextType */ public static org.oagis.unqualifieddatatypes.TextType unmarshal(java.io.Reader reader) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException { return (org.oagis.unqualifieddatatypes.TextType) Unmarshaller.unmarshal(org.oagis.unqualifieddatatypes.TextType.class, reader); } //-- org.oagis.unqualifieddatatypes.TextType unmarshal(java.io.Reader) /** * * * @throws org.exolab.castor.xml.ValidationException if this * object is an invalid instance according to the schema */ public void validate() throws org.exolab.castor.xml.ValidationException { org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator(); validator.validate(this); } //-- void validate() }