/******************************************************************************* * Copyright (c) 2014, 2015 Oracle and/or its affiliates. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0 * which accompanies this distribution. * The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html * and the Eclipse Distribution License is available at * http://www.eclipse.org/org/documents/edl-v10.php. * * Contributors: * Martin Vojtek - 2.6.0 - initial implementation ******************************************************************************/ package org.eclipse.persistence.testing.perf.largexml.bigpo.currency_code; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlSchemaType; import javax.xml.bind.annotation.XmlType; import javax.xml.bind.annotation.XmlValue; import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; import javax.xml.bind.annotation.adapters.NormalizedStringAdapter; import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; /** * * <pre> * <?xml version="1.0" encoding="UTF-8"?><ccts:Component xmlns:ccts="urn:oasis:names:specification:ubl:schema:xsd:CoreComponentParameters-1.0" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CurrencyCode-1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ccts:ComponentType>DT</ccts:ComponentType><ccts:DictionaryEntryName>Currency_ Code. Type</ccts:DictionaryEntryName><ccts:RepresentationTerm>Code</ccts:RepresentationTerm><ccts:DataTypeQualifier>Currency</ccts:DataTypeQualifier><ccts:DataType>Code. Type</ccts:DataType></ccts:Component> * </pre> * * <pre> * <?xml version="1.0" encoding="UTF-8"?><ccts:Instance xmlns:ccts="urn:oasis:names:specification:ubl:schema:xsd:CoreComponentParameters-1.0" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CurrencyCode-1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ccts:CodeListID>ISO 4217 Alpha</ccts:CodeListID><ccts:CodeListAgencyID>6</ccts:CodeListAgencyID><ccts:CodeListAgencyName>United Nations Economic Commission for Europe</ccts:CodeListAgencyName><ccts:CodeListName>Currency</ccts:CodeListName><ccts:CodeListVersionID>0.3</ccts:CodeListVersionID><ccts:CodeListURI>http://www.bsi-global.com/Technical%2BInformation/Publications/_Publications/tig90x.doc</ccts:CodeListURI><ccts:CodeListSchemeURI>urn:oasis:names:specification:ubl:schema:xsd:CurrencyCode-1.0</ccts:CodeListSchemeURI><ccts:LanguageID>en</ccts:LanguageID></ccts:Instance> * </pre> * * * <p>Java class for CurrencyCodeType complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="CurrencyCodeType"> * <simpleContent> * <extension base="<urn:oasis:names:specification:ubl:schema:xsd:CurrencyCode-1.0>CurrencyCodeContentType"> * <attribute name="codeListID" type="{http://www.w3.org/2001/XMLSchema}normalizedString" fixed="ISO 4217 Alpha" /> * <attribute name="codeListAgencyID" type="{http://www.w3.org/2001/XMLSchema}normalizedString" fixed="6" /> * <attribute name="codeListAgencyName" type="{http://www.w3.org/2001/XMLSchema}string" fixed="United Nations Economic Commission for Europe" /> * <attribute name="codeListName" type="{http://www.w3.org/2001/XMLSchema}string" fixed="Currency" /> * <attribute name="codeListVersionID" type="{http://www.w3.org/2001/XMLSchema}normalizedString" fixed="0.3" /> * <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" /> * <attribute name="languageID" type="{http://www.w3.org/2001/XMLSchema}language" fixed="en" /> * <attribute name="codeListURI" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="http://www.bsi-global.com/Technical%2BInformation/Publications/_Publications/tig90x.doc" /> * <attribute name="codeListSchemeURI" type="{http://www.w3.org/2001/XMLSchema}anyURI" fixed="urn:oasis:names:specification:ubl:schema:xsd:CurrencyCode-1.0" /> * </extension> * </simpleContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "CurrencyCodeType", propOrder = { "value" }) public class CurrencyCodeType { @XmlValue protected CurrencyCodeContentType value; @XmlAttribute(name = "codeListID") @XmlJavaTypeAdapter(NormalizedStringAdapter.class) @XmlSchemaType(name = "normalizedString") protected String codeListID; @XmlAttribute(name = "codeListAgencyID") @XmlJavaTypeAdapter(NormalizedStringAdapter.class) @XmlSchemaType(name = "normalizedString") protected String codeListAgencyID; @XmlAttribute(name = "codeListAgencyName") protected String codeListAgencyName; @XmlAttribute(name = "codeListName") protected String codeListName; @XmlAttribute(name = "codeListVersionID") @XmlJavaTypeAdapter(NormalizedStringAdapter.class) @XmlSchemaType(name = "normalizedString") protected String codeListVersionID; @XmlAttribute(name = "name") protected String name; @XmlAttribute(name = "languageID") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlSchemaType(name = "language") protected String languageID; @XmlAttribute(name = "codeListURI") @XmlSchemaType(name = "anyURI") protected String codeListURI; @XmlAttribute(name = "codeListSchemeURI") @XmlSchemaType(name = "anyURI") protected String codeListSchemeURI; /** * Gets the value of the value property. * * @return * possible object is * {@link CurrencyCodeContentType } * */ public CurrencyCodeContentType getValue() { return value; } /** * Sets the value of the value property. * * @param value * allowed object is * {@link CurrencyCodeContentType } * */ public void setValue(CurrencyCodeContentType value) { this.value = value; } /** * Gets the value of the codeListID property. * * @return * possible object is * {@link String } * */ public String getCodeListID() { if (codeListID == null) { return "ISO 4217 Alpha"; } else { return codeListID; } } /** * Sets the value of the codeListID property. * * @param value * allowed object is * {@link String } * */ public void setCodeListID(String value) { this.codeListID = value; } /** * Gets the value of the codeListAgencyID property. * * @return * possible object is * {@link String } * */ public String getCodeListAgencyID() { if (codeListAgencyID == null) { return "6"; } else { return codeListAgencyID; } } /** * Sets the value of the codeListAgencyID property. * * @param value * allowed object is * {@link String } * */ public void setCodeListAgencyID(String value) { this.codeListAgencyID = value; } /** * Gets the value of the codeListAgencyName property. * * @return * possible object is * {@link String } * */ public String getCodeListAgencyName() { if (codeListAgencyName == null) { return "United Nations Economic Commission for Europe"; } else { return codeListAgencyName; } } /** * Sets the value of the codeListAgencyName property. * * @param value * allowed object is * {@link String } * */ public void setCodeListAgencyName(String value) { this.codeListAgencyName = value; } /** * Gets the value of the codeListName property. * * @return * possible object is * {@link String } * */ public String getCodeListName() { if (codeListName == null) { return "Currency"; } else { return codeListName; } } /** * Sets the value of the codeListName property. * * @param value * allowed object is * {@link String } * */ public void setCodeListName(String value) { this.codeListName = value; } /** * Gets the value of the codeListVersionID property. * * @return * possible object is * {@link String } * */ public String getCodeListVersionID() { if (codeListVersionID == null) { return "0.3"; } else { return codeListVersionID; } } /** * Sets the value of the codeListVersionID property. * * @param value * allowed object is * {@link String } * */ public void setCodeListVersionID(String value) { this.codeListVersionID = value; } /** * Gets the value of the name property. * * @return * possible object is * {@link String } * */ public String getName() { return name; } /** * Sets the value of the name property. * * @param value * allowed object is * {@link String } * */ public void setName(String value) { this.name = value; } /** * Gets the value of the languageID property. * * @return * possible object is * {@link String } * */ public String getLanguageID() { if (languageID == null) { return "en"; } else { return languageID; } } /** * Sets the value of the languageID property. * * @param value * allowed object is * {@link String } * */ public void setLanguageID(String value) { this.languageID = value; } /** * Gets the value of the codeListURI property. * * @return * possible object is * {@link String } * */ public String getCodeListURI() { if (codeListURI == null) { return "http://www.bsi-global.com/Technical%2BInformation/Publications/_Publications/tig90x.doc"; } else { return codeListURI; } } /** * Sets the value of the codeListURI property. * * @param value * allowed object is * {@link String } * */ public void setCodeListURI(String value) { this.codeListURI = value; } /** * Gets the value of the codeListSchemeURI property. * * @return * possible object is * {@link String } * */ public String getCodeListSchemeURI() { if (codeListSchemeURI == null) { return "urn:oasis:names:specification:ubl:schema:xsd:CurrencyCode-1.0"; } else { return codeListSchemeURI; } } /** * Sets the value of the codeListSchemeURI property. * * @param value * allowed object is * {@link String } * */ public void setCodeListSchemeURI(String value) { this.codeListSchemeURI = value; } }