/* * 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; /** * UDT000007 * UDT * Code. Type * 1.0 * A character string (letters, figures, or symbols) that for * brevity and/or languange independence may be used to represent * or replace a definitive value or text of an attribute together * with relevant supplementary information. * Code * string * normalizedString * Other supplementary components in the CCT are captured as part * of the token and name for the schema module containing the code * list and thus, are not declared as attributes. * * * @version $Revision$ $Date$ */ public class CodeType implements java.io.Serializable { //--------------------------/ //- Class/Member Variables -/ //--------------------------/ /** * internal content storage */ private java.lang.String _content = ""; /** * UNDT000007-SC2 * SC * Code List. Identifier * The identification of a list of codes. * Code List * Identification * Identifier * string * */ private java.lang.String _listID; /** * UNDT000007-SC3 * SC * Code List. Agency. Identifier * An agency that maintains one or more lists of codes. * Code List * Agency * Identifier * string * Defaults to the UN/EDIFACT data element 3055 code list. * */ private java.lang.String _listAgencyID; /** * UNDT000007-SC4 * SC * Code List. Agency Name. Text * The name of the agency that maintains the list of codes. * Code List * Agency Name * Text * string * */ private java.lang.String _listAgencyName; /** * UNDT000007-SC5 * SC * Code List. Name. Text * The name of a list of codes. * Code List * Name * Text * string * */ private java.lang.String _listName; /** * UNDT000007-SC6 * SC * Code List. Identifier * The identification of a list of codes. * Code List * Identification * Identifier * string * string * */ private java.lang.String _listVersionID; /** * UDT000007-SC7 * SC * Code. Name. Text * The textual equivalent of the code content component. * Code * Name * Text * string * string * */ private java.lang.String _name; /** * UDT000007-SC8 * SC * Language. Identifier * The identifier of the language used in the code name. * Language * Identification * Identifier * string * language * */ private java.lang.String _languageID; /** * UDT000007-SC9 * SC * Code List. Uniform Resource. Identifier * The Uniform Resource Identifier that identifies where the * code list is located. * Code List * Uniform Resource Identifier * Identifier * string * anyURI * */ private java.lang.String _listURI; /** * UDT000007-SC10 * SC * Code List Scheme. Uniform Resource. Identifier * The Uniform Resource Identifier that identifies where the * code list scheme is located. * Code List Scheme * Uniform Resource Identifier * Identifier * string * anyURI * */ private java.lang.String _listSchemeURI; //----------------/ //- Constructors -/ //----------------/ public CodeType() { super(); setContent(""); } //-- org.oagis.unqualifieddatatypes.CodeType() //-----------/ //- 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: UDT000007-SC8 * SC * Language. Identifier * The identifier of the language used in the code name. * Language * Identification * Identifier * string * language * * * @return the value of field 'LanguageID'. */ public java.lang.String getLanguageID() { return this._languageID; } //-- java.lang.String getLanguageID() /** * Returns the value of field 'listAgencyID'. The field * 'listAgencyID' has the following description: UNDT000007-SC3 * SC * Code List. Agency. Identifier * An agency that maintains one or more lists of codes. * Code List * Agency * Identifier * string * Defaults to the UN/EDIFACT data element 3055 code list. * * * @return the value of field 'ListAgencyID'. */ public java.lang.String getListAgencyID() { return this._listAgencyID; } //-- java.lang.String getListAgencyID() /** * Returns the value of field 'listAgencyName'. The field * 'listAgencyName' has the following description: * UNDT000007-SC4 * SC * Code List. Agency Name. Text * The name of the agency that maintains the list of codes. * Code List * Agency Name * Text * string * * * @return the value of field 'ListAgencyName'. */ public java.lang.String getListAgencyName() { return this._listAgencyName; } //-- java.lang.String getListAgencyName() /** * Returns the value of field 'listID'. The field 'listID' has * the following description: UNDT000007-SC2 * SC * Code List. Identifier * The identification of a list of codes. * Code List * Identification * Identifier * string * * * @return the value of field 'ListID'. */ public java.lang.String getListID() { return this._listID; } //-- java.lang.String getListID() /** * Returns the value of field 'listName'. The field 'listName' * has the following description: UNDT000007-SC5 * SC * Code List. Name. Text * The name of a list of codes. * Code List * Name * Text * string * * * @return the value of field 'ListName'. */ public java.lang.String getListName() { return this._listName; } //-- java.lang.String getListName() /** * Returns the value of field 'listSchemeURI'. The field * 'listSchemeURI' has the following description: * UDT000007-SC10 * SC * Code List Scheme. Uniform Resource. Identifier * The Uniform Resource Identifier that identifies where the * code list scheme is located. * Code List Scheme * Uniform Resource Identifier * Identifier * string * anyURI * * * @return the value of field 'ListSchemeURI'. */ public java.lang.String getListSchemeURI() { return this._listSchemeURI; } //-- java.lang.String getListSchemeURI() /** * Returns the value of field 'listURI'. The field 'listURI' * has the following description: UDT000007-SC9 * SC * Code List. Uniform Resource. Identifier * The Uniform Resource Identifier that identifies where the * code list is located. * Code List * Uniform Resource Identifier * Identifier * string * anyURI * * * @return the value of field 'ListURI'. */ public java.lang.String getListURI() { return this._listURI; } //-- java.lang.String getListURI() /** * Returns the value of field 'listVersionID'. The field * 'listVersionID' has the following description: * UNDT000007-SC6 * SC * Code List. Identifier * The identification of a list of codes. * Code List * Identification * Identifier * string * string * * * @return the value of field 'ListVersionID'. */ public java.lang.String getListVersionID() { return this._listVersionID; } //-- java.lang.String getListVersionID() /** * Returns the value of field 'name'. The field 'name' has the * following description: UDT000007-SC7 * SC * Code. Name. Text * The textual equivalent of the code content component. * Code * Name * Text * string * string * * * @return the value of field 'Name'. */ public java.lang.String getName() { return this._name; } //-- java.lang.String getName() /** * 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: UDT000007-SC8 * SC * Language. Identifier * The identifier of the language used in the code name. * 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) /** * Sets the value of field 'listAgencyID'. The field * 'listAgencyID' has the following description: UNDT000007-SC3 * SC * Code List. Agency. Identifier * An agency that maintains one or more lists of codes. * Code List * Agency * Identifier * string * Defaults to the UN/EDIFACT data element 3055 code list. * * * @param listAgencyID the value of field 'listAgencyID'. */ public void setListAgencyID(java.lang.String listAgencyID) { this._listAgencyID = listAgencyID; } //-- void setListAgencyID(java.lang.String) /** * Sets the value of field 'listAgencyName'. The field * 'listAgencyName' has the following description: * UNDT000007-SC4 * SC * Code List. Agency Name. Text * The name of the agency that maintains the list of codes. * Code List * Agency Name * Text * string * * * @param listAgencyName the value of field 'listAgencyName'. */ public void setListAgencyName(java.lang.String listAgencyName) { this._listAgencyName = listAgencyName; } //-- void setListAgencyName(java.lang.String) /** * Sets the value of field 'listID'. The field 'listID' has the * following description: UNDT000007-SC2 * SC * Code List. Identifier * The identification of a list of codes. * Code List * Identification * Identifier * string * * * @param listID the value of field 'listID'. */ public void setListID(java.lang.String listID) { this._listID = listID; } //-- void setListID(java.lang.String) /** * Sets the value of field 'listName'. The field 'listName' has * the following description: UNDT000007-SC5 * SC * Code List. Name. Text * The name of a list of codes. * Code List * Name * Text * string * * * @param listName the value of field 'listName'. */ public void setListName(java.lang.String listName) { this._listName = listName; } //-- void setListName(java.lang.String) /** * Sets the value of field 'listSchemeURI'. The field * 'listSchemeURI' has the following description: * UDT000007-SC10 * SC * Code List Scheme. Uniform Resource. Identifier * The Uniform Resource Identifier that identifies where the * code list scheme is located. * Code List Scheme * Uniform Resource Identifier * Identifier * string * anyURI * * * @param listSchemeURI the value of field 'listSchemeURI'. */ public void setListSchemeURI(java.lang.String listSchemeURI) { this._listSchemeURI = listSchemeURI; } //-- void setListSchemeURI(java.lang.String) /** * Sets the value of field 'listURI'. The field 'listURI' has * the following description: UDT000007-SC9 * SC * Code List. Uniform Resource. Identifier * The Uniform Resource Identifier that identifies where the * code list is located. * Code List * Uniform Resource Identifier * Identifier * string * anyURI * * * @param listURI the value of field 'listURI'. */ public void setListURI(java.lang.String listURI) { this._listURI = listURI; } //-- void setListURI(java.lang.String) /** * Sets the value of field 'listVersionID'. The field * 'listVersionID' has the following description: * UNDT000007-SC6 * SC * Code List. Identifier * The identification of a list of codes. * Code List * Identification * Identifier * string * string * * * @param listVersionID the value of field 'listVersionID'. */ public void setListVersionID(java.lang.String listVersionID) { this._listVersionID = listVersionID; } //-- void setListVersionID(java.lang.String) /** * Sets the value of field 'name'. The field 'name' has the * following description: UDT000007-SC7 * SC * Code. Name. Text * The textual equivalent of the code content component. * Code * Name * Text * string * string * * * @param name the value of field 'name'. */ public void setName(java.lang.String name) { this._name = name; } //-- void setName(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.CodeType */ public static org.oagis.unqualifieddatatypes.CodeType unmarshal(java.io.Reader reader) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException { return (org.oagis.unqualifieddatatypes.CodeType) Unmarshaller.unmarshal(org.oagis.unqualifieddatatypes.CodeType.class, reader); } //-- org.oagis.unqualifieddatatypes.CodeType 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() }