/* * 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; /** * UDT0000011 * UDT * Identifier. Type * 1.0 * A character string to identify and distinguish uniquely, one * instance of an object in an identification scheme from all other * objects in the same scheme together with relevant supplementary * information. * Identifier * string * normalizedString * Other supplementary components in the CCT are captured as part * of the token and name for the schema module containing the * identifer list and thus, are not declared as attributes. * * * @version $Revision$ $Date$ */ public class IdentifierType implements java.io.Serializable { //--------------------------/ //- Class/Member Variables -/ //--------------------------/ /** * internal content storage */ private java.lang.String _content = ""; /** * UNDT000011-SC2 * SC * Identification Scheme. Identifier * The identification of the identification scheme. * Identification Scheme * Identification * Identifier * string * */ private java.lang.String _schemeID; /** * UNDT000011-SC3 * SC * Identification Scheme. Name. Text * The name of the identification scheme. * Identification Scheme * Name * Text * string * */ private java.lang.String _schemeName; /** * UNDT000011-SC4 * SC * Identification Scheme Agency. Identifier * The identification of the agency that maintains the * identification scheme. * Identification Scheme Agency * Identification * Identifier * string * Defaults to the UN/EDIFACT data element 3055 code list. * */ private java.lang.String _schemeAgencyID; /** * UNDT000011-SC5 * SC * Identification Scheme Agency. Name. Text * The name of the agency that maintains the identification * scheme. * Identification Scheme Agency * Agency Name * Text * string * */ private java.lang.String _schemeAgencyName; /** * UNDT000011-SC6 * SC * Identification Scheme. Version. Identifier * The version of the identification scheme. * Identification Scheme * Version * Identifier * string * normalizedString * */ private java.lang.String _schemeVersionID; /** * UDT0000011-SC7 * SC * Identification Scheme Data. Uniform Resource. Identifier * The Uniform Resource Identifier that identifies where the * identification scheme data is located. * Identification Scheme Data * Uniform Resource Identifier * Identifier * string * anyURI * */ private java.lang.String _schemeDataURI; /** * UDT0000011-SC8 * SC * Identification Scheme. Uniform Resource. Identifier * The Uniform Resource Identifier that identifies where the * identification scheme is located. * Identification Scheme * Uniform Resource Identifier * Identifier * string * anyURI * */ private java.lang.String _schemeURI; //----------------/ //- Constructors -/ //----------------/ public IdentifierType() { super(); setContent(""); } //-- org.oagis.unqualifieddatatypes.IdentifierType() //-----------/ //- 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 'schemeAgencyID'. The field * 'schemeAgencyID' has the following description: * UNDT000011-SC4 * SC * Identification Scheme Agency. Identifier * The identification of the agency that maintains the * identification scheme. * Identification Scheme Agency * Identification * Identifier * string * Defaults to the UN/EDIFACT data element 3055 code list. * * * @return the value of field 'SchemeAgencyID'. */ public java.lang.String getSchemeAgencyID() { return this._schemeAgencyID; } //-- java.lang.String getSchemeAgencyID() /** * Returns the value of field 'schemeAgencyName'. The field * 'schemeAgencyName' has the following description: * UNDT000011-SC5 * SC * Identification Scheme Agency. Name. Text * The name of the agency that maintains the identification * scheme. * Identification Scheme Agency * Agency Name * Text * string * * * @return the value of field 'SchemeAgencyName'. */ public java.lang.String getSchemeAgencyName() { return this._schemeAgencyName; } //-- java.lang.String getSchemeAgencyName() /** * Returns the value of field 'schemeDataURI'. The field * 'schemeDataURI' has the following description: * UDT0000011-SC7 * SC * Identification Scheme Data. Uniform Resource. Identifier * The Uniform Resource Identifier that identifies where the * identification scheme data is located. * Identification Scheme Data * Uniform Resource Identifier * Identifier * string * anyURI * * * @return the value of field 'SchemeDataURI'. */ public java.lang.String getSchemeDataURI() { return this._schemeDataURI; } //-- java.lang.String getSchemeDataURI() /** * Returns the value of field 'schemeID'. The field 'schemeID' * has the following description: UNDT000011-SC2 * SC * Identification Scheme. Identifier * The identification of the identification scheme. * Identification Scheme * Identification * Identifier * string * * * @return the value of field 'SchemeID'. */ public java.lang.String getSchemeID() { return this._schemeID; } //-- java.lang.String getSchemeID() /** * Returns the value of field 'schemeName'. The field * 'schemeName' has the following description: UNDT000011-SC3 * SC * Identification Scheme. Name. Text * The name of the identification scheme. * Identification Scheme * Name * Text * string * * * @return the value of field 'SchemeName'. */ public java.lang.String getSchemeName() { return this._schemeName; } //-- java.lang.String getSchemeName() /** * Returns the value of field 'schemeURI'. The field * 'schemeURI' has the following description: UDT0000011-SC8 * SC * Identification Scheme. Uniform Resource. Identifier * The Uniform Resource Identifier that identifies where the * identification scheme is located. * Identification Scheme * Uniform Resource Identifier * Identifier * string * anyURI * * * @return the value of field 'SchemeURI'. */ public java.lang.String getSchemeURI() { return this._schemeURI; } //-- java.lang.String getSchemeURI() /** * Returns the value of field 'schemeVersionID'. The field * 'schemeVersionID' has the following description: * UNDT000011-SC6 * SC * Identification Scheme. Version. Identifier * The version of the identification scheme. * Identification Scheme * Version * Identifier * string * normalizedString * * * @return the value of field 'SchemeVersionID'. */ public java.lang.String getSchemeVersionID() { return this._schemeVersionID; } //-- java.lang.String getSchemeVersionID() /** * 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 'schemeAgencyID'. The field * 'schemeAgencyID' has the following description: * UNDT000011-SC4 * SC * Identification Scheme Agency. Identifier * The identification of the agency that maintains the * identification scheme. * Identification Scheme Agency * Identification * Identifier * string * Defaults to the UN/EDIFACT data element 3055 code list. * * * @param schemeAgencyID the value of field 'schemeAgencyID'. */ public void setSchemeAgencyID(java.lang.String schemeAgencyID) { this._schemeAgencyID = schemeAgencyID; } //-- void setSchemeAgencyID(java.lang.String) /** * Sets the value of field 'schemeAgencyName'. The field * 'schemeAgencyName' has the following description: * UNDT000011-SC5 * SC * Identification Scheme Agency. Name. Text * The name of the agency that maintains the identification * scheme. * Identification Scheme Agency * Agency Name * Text * string * * * @param schemeAgencyName the value of field 'schemeAgencyName' */ public void setSchemeAgencyName(java.lang.String schemeAgencyName) { this._schemeAgencyName = schemeAgencyName; } //-- void setSchemeAgencyName(java.lang.String) /** * Sets the value of field 'schemeDataURI'. The field * 'schemeDataURI' has the following description: * UDT0000011-SC7 * SC * Identification Scheme Data. Uniform Resource. Identifier * The Uniform Resource Identifier that identifies where the * identification scheme data is located. * Identification Scheme Data * Uniform Resource Identifier * Identifier * string * anyURI * * * @param schemeDataURI the value of field 'schemeDataURI'. */ public void setSchemeDataURI(java.lang.String schemeDataURI) { this._schemeDataURI = schemeDataURI; } //-- void setSchemeDataURI(java.lang.String) /** * Sets the value of field 'schemeID'. The field 'schemeID' has * the following description: UNDT000011-SC2 * SC * Identification Scheme. Identifier * The identification of the identification scheme. * Identification Scheme * Identification * Identifier * string * * * @param schemeID the value of field 'schemeID'. */ public void setSchemeID(java.lang.String schemeID) { this._schemeID = schemeID; } //-- void setSchemeID(java.lang.String) /** * Sets the value of field 'schemeName'. The field 'schemeName' * has the following description: UNDT000011-SC3 * SC * Identification Scheme. Name. Text * The name of the identification scheme. * Identification Scheme * Name * Text * string * * * @param schemeName the value of field 'schemeName'. */ public void setSchemeName(java.lang.String schemeName) { this._schemeName = schemeName; } //-- void setSchemeName(java.lang.String) /** * Sets the value of field 'schemeURI'. The field 'schemeURI' * has the following description: UDT0000011-SC8 * SC * Identification Scheme. Uniform Resource. Identifier * The Uniform Resource Identifier that identifies where the * identification scheme is located. * Identification Scheme * Uniform Resource Identifier * Identifier * string * anyURI * * * @param schemeURI the value of field 'schemeURI'. */ public void setSchemeURI(java.lang.String schemeURI) { this._schemeURI = schemeURI; } //-- void setSchemeURI(java.lang.String) /** * Sets the value of field 'schemeVersionID'. The field * 'schemeVersionID' has the following description: * UNDT000011-SC6 * SC * Identification Scheme. Version. Identifier * The version of the identification scheme. * Identification Scheme * Version * Identifier * string * normalizedString * * * @param schemeVersionID the value of field 'schemeVersionID'. */ public void setSchemeVersionID(java.lang.String schemeVersionID) { this._schemeVersionID = schemeVersionID; } //-- void setSchemeVersionID(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.IdentifierType */ public static org.oagis.unqualifieddatatypes.IdentifierType unmarshal(java.io.Reader reader) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException { return (org.oagis.unqualifieddatatypes.IdentifierType) Unmarshaller.unmarshal(org.oagis.unqualifieddatatypes.IdentifierType.class, reader); } //-- org.oagis.unqualifieddatatypes.IdentifierType 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() }