Java Sample : Simple Hierarchy
Schema Summary This sample shows a number of elements within a Hierarchy. It includes local (anonymous) & global complex types. It also shows how collections are manipulated within sequences & choices. Schema Details This schema contains 2 globally defined elements AddressType, ItemType and Invoice. All of these objects can be used as the documentElement (root element) in a valid XML document. The Invoice object also contains a sequence, the sequence contains a number of child elements; InvoiceNo is a primitive DeliveryAddress is a element that conforms to the global element AddressType. BillingAddress is an optional (the corresponding property on the Invoice object may contain a null because of this) element that conforms to the global element AddressType. Item is a collection of elements conforming to the global element ItemType. Payment is a locally defined element, it in turn contains a choice of; an element 'VISA' or a collection of 'Vouchers' elements or an element 'Cash' which is untyped within the schema, and represented as a string within the generated code. Sample Description The sample demonstrates how to navigate a simple Hierarchy of elements, including optional elements, choices, and collections. The sample shows the Invoice as the root element, it contains the optional element BillingAddress. It also contains 2 Item elements, showing how collections of elements can be manipulated. The Payment element contains a VISA element, this can be determined by checking the value of invoice->GetPayment()->GetChoiceSelectedElement(), this will determine which of the 3 possible elements are selected. |
Sample XML File
Sample1.xml |
<?xml version="1.0" encoding="UTF-8"?> <Invoice xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="..\Schema\SimpleHierarchy.xsd"> <InvoiceNo>564</InvoiceNo> <DeliveryAddress> <Forename>Joe</Forename> <Surname>Bloggs</Surname> <AddresLine1>23 Summers lane</AddresLine1> <AddresLine2>Wintersville</AddresLine2> <AddresLine5>Stoke</AddresLine5> <PostCode>SK4 8LS</PostCode> </DeliveryAddress> <BillingAddress> <Forename>Jane</Forename> <Surname>Doe</Surname> <AddresLine1>Acme Account</AddresLine1> <AddresLine2>Acme House</AddresLine2> <AddresLine3>523 Hogarth Lane</AddresLine3> <AddresLine5>Collegeville</AddresLine5> <PostCode>CL5 4UT</PostCode> </BillingAddress> <Item> <StockCode>6896</StockCode> <Description>A4 Paper (white)</Description> <UnitCost>495</UnitCost> <Quantity>15</Quantity> </Item> <Item> <StockCode>5161</StockCode> <Description>Paper Clips (Large)</Description> <UnitCost>54</UnitCost> <Quantity>10</Quantity> </Item> <Payment> <VISA CardNo="4565589655425468" Expiry="2005-06"/> </Payment> </Invoice> |
Read Sample | |
String FilePath = Usage1.SamplePath + "SimpleHierarchy\\Samples\\Sample1.xml"; // Create DVD object SimpleHierarchyLib.Invoice invoice = new SimpleHierarchyLib.Invoice(); // Load data into the object from a file invoice.fromXmlFile(FilePath); // Now we can look at the data System.out.println("Invoice No = " + invoice.getInvoiceNo()); // look at the billing address // The billing address is optional, so we need to check it has been provided if (invoice.getBillingAddress() != null) { System.out.println("Billing Addresss"); System.out.println(" Forename = " + invoice.getBillingAddress().getForename()); System.out.println(" Surname = " + invoice.getBillingAddress().getSurname()); System.out.println(" Address Line 1 = " + invoice.getBillingAddress().getAddresLine1()); System.out.println(" Address Line 2 = " + invoice.getBillingAddress().getAddresLine2()); // AddresLine3 & AddresLine4 are optional, so check they are valid before using them if (invoice.getBillingAddress().isValidAddresLine3()) System.out.println(" Address Line 3 = " + invoice.getBillingAddress().getAddresLine3()); if (invoice.getBillingAddress().isValidAddresLine4()) System.out.println(" Address Line 4 = " + invoice.getBillingAddress().getAddresLine4()); System.out.println(" Address Line 5 = " + invoice.getBillingAddress().getAddresLine5()); System.out.println(" Postcode = " + invoice.getBillingAddress().getPostCode()); } // look at the Shipping address System.out.println("Billing Addresss"); System.out.println(" Forename = " + invoice.getDeliveryAddress().getForename()); System.out.println(" Surname = " + invoice.getDeliveryAddress().getSurname()); System.out.println(" Address Line 1 = " + invoice.getDeliveryAddress().getAddresLine1()); System.out.println(" Address Line 2 = " + invoice.getDeliveryAddress().getAddresLine2()); // AddresLine3 & AddresLine4 are optional, so check they are valid before using them if (invoice.getDeliveryAddress().isValidAddresLine3()) System.out.println(" Address Line 3 = " + invoice.getDeliveryAddress().getAddresLine3()); if (invoice.getDeliveryAddress().isValidAddresLine4()) System.out.println(" Address Line 4 = " + invoice.getDeliveryAddress().getAddresLine4()); System.out.println(" Address Line 5 = " + invoice.getDeliveryAddress().getAddresLine5()); System.out.println(" Postcode = " + invoice.getDeliveryAddress().getPostCode()); // look at all the items in the invoice System.out.println("There are " + invoice.getItem().size() + " items in the order"); // Collections of objects work the same ways as stl. for (int i = 0; i < invoice.getItem().size(); i ++) { SimpleHierarchyLib.ItemType itm = invoice.getItem().get(i); System.out.println("Item"); // Note we have to use _ui64toa to convert the DWORDLONG to a string as System.out.println can't // cope directly with the DWORDLONG datatype System.out.println(" StockCode = " + itm.getStockCode()); System.out.println(" Description = " + itm.getDescription()); System.out.println(" UnitCost = " + itm.getUnitCost()); System.out.println(" Quantity = " + itm.getQuantity()); } // now look at the Payment method, this is a choice in the schema, // so only one option is posible if (invoice.getPayment().getChoiceSelectedElement().equals("Cash")) { System.out.println("The invoice was paid in Cash"); } else if (invoice.getPayment().getChoiceSelectedElement().equals("VISA")) { System.out.println("The invoice was paid with a VISA Card"); System.out.println(" Card Number = " + invoice.getPayment().getVISA().getCardNo()); System.out.println(" Card Expiry = " + invoice.getPayment().getVISA().getExpiry().toString()); } else if (invoice.getPayment().getChoiceSelectedElement().equals("Vouchers")) { System.out.println("The invoice was paid with Vouchers"); for (int i = 0; i < invoice.getPayment().getVouchers().size(); i ++) { SimpleHierarchyLib.Vouchers v = invoice.getPayment().getVouchers().get(i); System.out.println("Voucher"); System.out.println(" Number = " + v.getVoucherNo()); System.out.println(" Value = " + v.getVoucherValue()); } } else { System.out.println("Unknown selected element " + invoice.getPayment().getChoiceSelectedElement()); }
|
Write Sample | |
// Create Invoice object SimpleHierarchyLib.Invoice invoice = new SimpleHierarchyLib.Invoice(); // Now we can look at the data invoice.setInvoiceNo(564); // because the BillingAddress is optional, we need to populate // this property before using it.get invoice.setBillingAddress(new SimpleHierarchyLib.AddressType()); invoice.getBillingAddress().setForename ("Joe"); invoice.getBillingAddress().setSurname ("Bloggs"); invoice.getBillingAddress().setAddresLine1 ("23 Summers lane"); invoice.getBillingAddress().setAddresLine2 ("Wintersville"); invoice.getBillingAddress().setAddresLine5 ("Stoke"); invoice.getBillingAddress().setPostCode ("SK4 8LS"); invoice.setDeliveryAddress(new SimpleHierarchyLib.AddressType()); invoice.getDeliveryAddress().setForename ("Jane"); invoice.getDeliveryAddress().setSurname ("Doe"); invoice.getDeliveryAddress().setAddresLine1 ("Acme Account"); invoice.getDeliveryAddress().setAddresLine2 ("Acme House"); // This is an optional field, setting it makes it appear in the output xml invoice.getDeliveryAddress().setAddresLine3 ("523 Hogarth Lane"); invoice.getDeliveryAddress().setAddresLine5 ("Collegeville"); invoice.getDeliveryAddress().setPostCode ("CL5 4UT"); // Create a new item and add it to the collection SimpleHierarchyLib.ItemType itm1 = new SimpleHierarchyLib.ItemType(); invoice.getItem().add(itm1); itm1.setStockCode (6896); itm1.setDescription ("A4 Paper (white)"); itm1.setUnitCost (495); itm1.setQuantity (15); // Create a new item and add it to the collection SimpleHierarchyLib.ItemType itm2 = new SimpleHierarchyLib.ItemType(); invoice.getItem().add(itm2); itm2.setStockCode (5161); itm2.setDescription ("Paper Clips (Large)"); itm2.setUnitCost (54); itm2.setQuantity (10); invoice.getPayment().setVISA(new SimpleHierarchyLib.VISA()); invoice.getPayment().getVISA().setCardNo("4565589655425468"); invoice.getPayment().getVISA().getExpiry().setGYearMonth((short)2005, (byte)6); // Now we can look at the XML from this object System.out.println(invoice.toXml(true, Formatting.INDENTED, Encoding.UTF8, EOLType.CRLF));
|
SimpleHierarchy.xsd |
<?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified"> <xs:complexType name="AddressType"> <xs:sequence> <xs:element name="Forename" type="xs:string"/> <xs:element name="Surname" type="xs:string"/> <xs:element name="AddresLine1" type="xs:string"/> <xs:element name="AddresLine2" type="xs:string"/> <xs:element name="AddresLine3" type="xs:string" minOccurs="0"/> <xs:element name="AddresLine4" type="xs:string" minOccurs="0"/> <xs:element name="AddresLine5" type="xs:string"/> <xs:element name="PostCode" type="xs:string"/> </xs:sequence> </xs:complexType> <xs:complexType name="ItemType"> <xs:sequence> <xs:element name="StockCode" type="xs:unsignedLong"/> <xs:element name="Description" type="xs:string"/> <xs:element name="UnitCost" type="xs:long"/> <xs:element name="Quantity" type="xs:unsignedInt"/> </xs:sequence> </xs:complexType> <xs:element name="Invoice"> <xs:complexType> <xs:sequence> <xs:element name="InvoiceNo" type="xs:unsignedInt"/> <xs:element name="DeliveryAddress" type="AddressType"/> <xs:element name="BillingAddress" type="AddressType" minOccurs="0"/> <xs:element name="Item" type="ItemType" maxOccurs="unbounded"/> <xs:element name="Payment"> <xs:complexType> <xs:choice> <xs:element name="VISA"> <xs:complexType> <xs:attribute name="CardNo" type="xs:string" use="required"/> <xs:attribute name="Expiry" type="xs:gYearMonth" use="required"/> </xs:complexType> </xs:element> <xs:element name="Vouchers" maxOccurs="unbounded"> <xs:complexType> <xs:attribute name="VoucherNo" type="xs:unsignedLong" use="required"/> <xs:attribute name="VoucherValue" type="xs:unsignedLong" use="required"/> </xs:complexType> </xs:element> <xs:element name="Cash"/> </xs:choice> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:schema> |
Schema Diagrams |
|
AddressType.java |
package SimpleHierarchyLib; /********************************************************************************************** * Copyright (c) 2001-2023 Liquid Technologies Limited. All rights reserved. * See www.liquid-technologies.com for product details. * * Please see products End User License Agreement for distribution permissions. * * WARNING: THIS FILE IS GENERATED * Changes made outside of ##HAND_CODED_BLOCK_START blocks will be overwritten * * Generation : by Liquid XML Data Binder 19.0.14.11049 * Using Schema: SimpleHierarchy.xsd **********************************************************************************************/ // <summary> // This class represents the ComplexType AddressType // </summary> public class AddressType extends com.liquid_technologies.ltxmllib20.XmlGeneratedClass { private static final long serialVersionUID = 13L; // <summary> // Constructor for AddressType // </summary> // <remarks> // The class is created with all the mandatory fields populated with the // default data. // All Collection object are created. // However any 1-n relationships (these are represented as collections) are // empty. To comply with the schema these must be populated before the xml // obtained from ToXml is valid against the schema SimpleHierarchy.xsd // </remarks> public AddressType() { setElementName("AddressType"); init(); } public AddressType(String elementName) { setElementName(elementName); init(); } // <summary> // Initializes the class // </summary> // <remarks> // This creates all the mandatory fields (populated with the default data) // All Collection object are created. // However any 1-n relationships (these are represented as collections) are // empty. To comply with the schema these must be populated before the xml // obtained from ToXml is valid against the schema SimpleHierarchy.xsd. // </remarks> @Override protected void init() { try { SimpleHierarchyLib.Registration.iRegistrationIndicator = 0; // causes registration to take place _forename = ""; _surname = ""; _addresLine1 = ""; _addresLine2 = ""; _addresLine3 = ""; _isValidAddresLine3 = false; _addresLine4 = ""; _isValidAddresLine4 = false; _addresLine5 = ""; _postCode = ""; // ##HAND_CODED_BLOCK_START ID="Additional Inits"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS // Add Additional initialization code here... // ##HAND_CODED_BLOCK_END ID="Additional Inits"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS getClassAttributeInfo(); getClassElementInfo(); } catch (Exception ex) { // should never happen ex.printStackTrace(); throw new InternalError(); } } // <summary> // Allows the class to be copied // </summary> // <remarks> // Performs a 'deep copy' of all the data in the class (and its children) // </remarks> @Override public Object clone() throws CloneNotSupportedException { try { SimpleHierarchyLib.AddressType newObject = (SimpleHierarchyLib.AddressType)super.clone(); // clone, creates a bitwise copy of the class, so all the collections are the // same as the parents. Init will re-create our own collections, and classes, // preventing objects being shared between the new an original objects newObject.init(); newObject._forename = _forename; newObject._surname = _surname; newObject._addresLine1 = _addresLine1; newObject._addresLine2 = _addresLine2; if (_isValidAddresLine3) newObject._addresLine3 = _addresLine3; newObject._isValidAddresLine3 = _isValidAddresLine3; if (_isValidAddresLine4) newObject._addresLine4 = _addresLine4; newObject._isValidAddresLine4 = _isValidAddresLine4; newObject._addresLine5 = _addresLine5; newObject._postCode = _postCode; // ##HAND_CODED_BLOCK_START ID="Additional clone"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS // Add Additional clone code here... // ##HAND_CODED_BLOCK_END ID="Additional clone"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS return newObject; } catch (CloneNotSupportedException e) { // should never happen e.printStackTrace(); throw new InternalError(); } } @Override public String getTargetNamespace() { return ""; } // <summary> // Represents a mandatory Element in the XML document // </summary> // <remarks> // This property is represented as an Element in the XML. // It is mandatory and therefore must be populated within the XML. // It is defaulted to "". // </remarks> public java.lang.String getForename() throws com.liquid_technologies.ltxmllib20.exceptions.LtException { return _forename; } public void setForename(java.lang.String value) throws com.liquid_technologies.ltxmllib20.exceptions.LtException { // Apply whitespace rules appropriately value = com.liquid_technologies.ltxmllib20.WhitespaceUtils.preserve(value); _forename = value; } protected java.lang.String _forename; // <summary> // Represents a mandatory Element in the XML document // </summary> // <remarks> // This property is represented as an Element in the XML. // It is mandatory and therefore must be populated within the XML. // It is defaulted to "". // </remarks> public java.lang.String getSurname() throws com.liquid_technologies.ltxmllib20.exceptions.LtException { return _surname; } public void setSurname(java.lang.String value) throws com.liquid_technologies.ltxmllib20.exceptions.LtException { // Apply whitespace rules appropriately value = com.liquid_technologies.ltxmllib20.WhitespaceUtils.preserve(value); _surname = value; } protected java.lang.String _surname; // <summary> // Represents a mandatory Element in the XML document // </summary> // <remarks> // This property is represented as an Element in the XML. // It is mandatory and therefore must be populated within the XML. // It is defaulted to "". // </remarks> public java.lang.String getAddresLine1() throws com.liquid_technologies.ltxmllib20.exceptions.LtException { return _addresLine1; } public void setAddresLine1(java.lang.String value) throws com.liquid_technologies.ltxmllib20.exceptions.LtException { // Apply whitespace rules appropriately value = com.liquid_technologies.ltxmllib20.WhitespaceUtils.preserve(value); _addresLine1 = value; } protected java.lang.String _addresLine1; // <summary> // Represents a mandatory Element in the XML document // </summary> // <remarks> // This property is represented as an Element in the XML. // It is mandatory and therefore must be populated within the XML. // It is defaulted to "". // </remarks> public java.lang.String getAddresLine2() throws com.liquid_technologies.ltxmllib20.exceptions.LtException { return _addresLine2; } public void setAddresLine2(java.lang.String value) throws com.liquid_technologies.ltxmllib20.exceptions.LtException { // Apply whitespace rules appropriately value = com.liquid_technologies.ltxmllib20.WhitespaceUtils.preserve(value); _addresLine2 = value; } protected java.lang.String _addresLine2; // <summary> // Represents an optional Element in the XML document // </summary> // <remarks> // This property is represented as an Element in the XML. // It is optional, initially it is not valid. // </remarks> public java.lang.String getAddresLine3() throws com.liquid_technologies.ltxmllib20.exceptions.LtException { if (_isValidAddresLine3 == false) throw new com.liquid_technologies.ltxmllib20.exceptions.LtInvalidStateException("The Property AddresLine3 is not valid. Set AddresLine3Valid = true"); return _addresLine3; } public void setAddresLine3(java.lang.String value) throws com.liquid_technologies.ltxmllib20.exceptions.LtException { // Apply whitespace rules appropriately value = com.liquid_technologies.ltxmllib20.WhitespaceUtils.preserve(value); _isValidAddresLine3 = true; _addresLine3 = value; } // <summary> // Indicates if AddresLine3 contains a valid value. // </summary> // <remarks> // true if the value for AddresLine3 is valid, false if not. // If this is set to true then the property is considered valid, and assigned its // default value (""). // If its set to false then its made invalid, and subsequent calls to get AddresLine3 // will raise an exception. // </remarks> public boolean isValidAddresLine3() { return _isValidAddresLine3; } public void setValidAddresLine3(boolean value) throws com.liquid_technologies.ltxmllib20.exceptions.LtException { if (value != _isValidAddresLine3) { _addresLine3 = ""; _isValidAddresLine3 = value; } } protected boolean _isValidAddresLine3; protected java.lang.String _addresLine3; // <summary> // Represents an optional Element in the XML document // </summary> // <remarks> // This property is represented as an Element in the XML. // It is optional, initially it is not valid. // </remarks> public java.lang.String getAddresLine4() throws com.liquid_technologies.ltxmllib20.exceptions.LtException { if (_isValidAddresLine4 == false) throw new com.liquid_technologies.ltxmllib20.exceptions.LtInvalidStateException("The Property AddresLine4 is not valid. Set AddresLine4Valid = true"); return _addresLine4; } public void setAddresLine4(java.lang.String value) throws com.liquid_technologies.ltxmllib20.exceptions.LtException { // Apply whitespace rules appropriately value = com.liquid_technologies.ltxmllib20.WhitespaceUtils.preserve(value); _isValidAddresLine4 = true; _addresLine4 = value; } // <summary> // Indicates if AddresLine4 contains a valid value. // </summary> // <remarks> // true if the value for AddresLine4 is valid, false if not. // If this is set to true then the property is considered valid, and assigned its // default value (""). // If its set to false then its made invalid, and subsequent calls to get AddresLine4 // will raise an exception. // </remarks> public boolean isValidAddresLine4() { return _isValidAddresLine4; } public void setValidAddresLine4(boolean value) throws com.liquid_technologies.ltxmllib20.exceptions.LtException { if (value != _isValidAddresLine4) { _addresLine4 = ""; _isValidAddresLine4 = value; } } protected boolean _isValidAddresLine4; protected java.lang.String _addresLine4; // <summary> // Represents a mandatory Element in the XML document // </summary> // <remarks> // This property is represented as an Element in the XML. // It is mandatory and therefore must be populated within the XML. // It is defaulted to "". // </remarks> public java.lang.String getAddresLine5() throws com.liquid_technologies.ltxmllib20.exceptions.LtException { return _addresLine5; } public void setAddresLine5(java.lang.String value) throws com.liquid_technologies.ltxmllib20.exceptions.LtException { // Apply whitespace rules appropriately value = com.liquid_technologies.ltxmllib20.WhitespaceUtils.preserve(value); _addresLine5 = value; } protected java.lang.String _addresLine5; // <summary> // Represents a mandatory Element in the XML document // </summary> // <remarks> // This property is represented as an Element in the XML. // It is mandatory and therefore must be populated within the XML. // It is defaulted to "". // </remarks> public java.lang.String getPostCode() throws com.liquid_technologies.ltxmllib20.exceptions.LtException { return _postCode; } public void setPostCode(java.lang.String value) throws com.liquid_technologies.ltxmllib20.exceptions.LtException { // Apply whitespace rules appropriately value = com.liquid_technologies.ltxmllib20.WhitespaceUtils.preserve(value); _postCode = value; } protected java.lang.String _postCode; @Override public String getNamespace() { return ""; } @Override public com.liquid_technologies.ltxmllib20.XmlObjectBase getBase() { return this; } protected void onEvent(com.liquid_technologies.ltxmllib20.XmlObjectBase msgSource, int msgType, Object data) { if (msgType == CollectionChangeEvent) { } } private static com.liquid_technologies.ltxmllib20.ParentElementInfo __parentElementInfo = null; private static com.liquid_technologies.ltxmllib20.ElementInfo[] __elementInfo = null; private static com.liquid_technologies.ltxmllib20.AttributeInfo[] __attributeInfo = null; protected com.liquid_technologies.ltxmllib20.ParentElementInfo getClassInfo() throws Exception { if (__parentElementInfo == null) { __parentElementInfo = new com.liquid_technologies.ltxmllib20.ParentElementInfo( com.liquid_technologies.ltxmllib20.XmlObjectBase.XmlElementGroupType.SEQUENCE, com.liquid_technologies.ltxmllib20.XmlObjectBase.XmlElementType.ELEMENT, "AddressType", "", true, false, null, null, com.liquid_technologies.ltxmllib20.Conversions.ConversionType.TYPE_NONE, com.liquid_technologies.ltxmllib20.WhitespaceRule.NONE, null, false); } return __parentElementInfo; } protected com.liquid_technologies.ltxmllib20.ElementInfo[] getClassElementInfo() throws Exception { if (__elementInfo == null) { __elementInfo = new com.liquid_technologies.ltxmllib20.ElementInfo[] { new com.liquid_technologies.ltxmllib20.data.ElementInfoSeqPrimMnd("Forename", "", findGetterMethod("SimpleHierarchyLib.AddressType", "getForename"), findSetterMethod("SimpleHierarchyLib.AddressType", "setForename", "java.lang.String"), null, null, com.liquid_technologies.ltxmllib20.Conversions.ConversionType.TYPE_STRING, null, com.liquid_technologies.ltxmllib20.WhitespaceRule.PRESERVE, new com.liquid_technologies.ltxmllib20.PrimitiveRestrictions("", -1, -1, "", "", "", "", -1, -1, -1), null) ,new com.liquid_technologies.ltxmllib20.data.ElementInfoSeqPrimMnd("Surname", "", findGetterMethod("SimpleHierarchyLib.AddressType", "getSurname"), findSetterMethod("SimpleHierarchyLib.AddressType", "setSurname", "java.lang.String"), null, null, com.liquid_technologies.ltxmllib20.Conversions.ConversionType.TYPE_STRING, null, com.liquid_technologies.ltxmllib20.WhitespaceRule.PRESERVE, new com.liquid_technologies.ltxmllib20.PrimitiveRestrictions("", -1, -1, "", "", "", "", -1, -1, -1), null) ,new com.liquid_technologies.ltxmllib20.data.ElementInfoSeqPrimMnd("AddresLine1", "", findGetterMethod("SimpleHierarchyLib.AddressType", "getAddresLine1"), findSetterMethod("SimpleHierarchyLib.AddressType", "setAddresLine1", "java.lang.String"), null, null, com.liquid_technologies.ltxmllib20.Conversions.ConversionType.TYPE_STRING, null, com.liquid_technologies.ltxmllib20.WhitespaceRule.PRESERVE, new com.liquid_technologies.ltxmllib20.PrimitiveRestrictions("", -1, -1, "", "", "", "", -1, -1, -1), null) ,new com.liquid_technologies.ltxmllib20.data.ElementInfoSeqPrimMnd("AddresLine2", "", findGetterMethod("SimpleHierarchyLib.AddressType", "getAddresLine2"), findSetterMethod("SimpleHierarchyLib.AddressType", "setAddresLine2", "java.lang.String"), null, null, com.liquid_technologies.ltxmllib20.Conversions.ConversionType.TYPE_STRING, null, com.liquid_technologies.ltxmllib20.WhitespaceRule.PRESERVE, new com.liquid_technologies.ltxmllib20.PrimitiveRestrictions("", -1, -1, "", "", "", "", -1, -1, -1), null) ,new com.liquid_technologies.ltxmllib20.data.ElementInfoSeqPrimOpt("AddresLine3", "", findGetterMethod("SimpleHierarchyLib.AddressType", "getAddresLine3"), findSetterMethod("SimpleHierarchyLib.AddressType", "setAddresLine3", "java.lang.String"), findGetterMethod("SimpleHierarchyLib.AddressType", "isValidAddresLine3"), null, null, com.liquid_technologies.ltxmllib20.Conversions.ConversionType.TYPE_STRING, null, com.liquid_technologies.ltxmllib20.WhitespaceRule.PRESERVE, new com.liquid_technologies.ltxmllib20.PrimitiveRestrictions("", -1, -1, "", "", "", "", -1, -1, -1), null) ,new com.liquid_technologies.ltxmllib20.data.ElementInfoSeqPrimOpt("AddresLine4", "", findGetterMethod("SimpleHierarchyLib.AddressType", "getAddresLine4"), findSetterMethod("SimpleHierarchyLib.AddressType", "setAddresLine4", "java.lang.String"), findGetterMethod("SimpleHierarchyLib.AddressType", "isValidAddresLine4"), null, null, com.liquid_technologies.ltxmllib20.Conversions.ConversionType.TYPE_STRING, null, com.liquid_technologies.ltxmllib20.WhitespaceRule.PRESERVE, new com.liquid_technologies.ltxmllib20.PrimitiveRestrictions("", -1, -1, "", "", "", "", -1, -1, -1), null) ,new com.liquid_technologies.ltxmllib20.data.ElementInfoSeqPrimMnd("AddresLine5", "", findGetterMethod("SimpleHierarchyLib.AddressType", "getAddresLine5"), findSetterMethod("SimpleHierarchyLib.AddressType", "setAddresLine5", "java.lang.String"), null, null, com.liquid_technologies.ltxmllib20.Conversions.ConversionType.TYPE_STRING, null, com.liquid_technologies.ltxmllib20.WhitespaceRule.PRESERVE, new com.liquid_technologies.ltxmllib20.PrimitiveRestrictions("", -1, -1, "", "", "", "", -1, -1, -1), null) ,new com.liquid_technologies.ltxmllib20.data.ElementInfoSeqPrimMnd("PostCode", "", findGetterMethod("SimpleHierarchyLib.AddressType", "getPostCode"), findSetterMethod("SimpleHierarchyLib.AddressType", "setPostCode", "java.lang.String"), null, null, com.liquid_technologies.ltxmllib20.Conversions.ConversionType.TYPE_STRING, null, com.liquid_technologies.ltxmllib20.WhitespaceRule.PRESERVE, new com.liquid_technologies.ltxmllib20.PrimitiveRestrictions("", -1, -1, "", "", "", "", -1, -1, -1), null) }; } return __elementInfo; } protected com.liquid_technologies.ltxmllib20.AttributeInfo[] getClassAttributeInfo() throws Exception { if (__attributeInfo==null) { __attributeInfo = new com.liquid_technologies.ltxmllib20.AttributeInfo[] { }; } return __attributeInfo; } // ##HAND_CODED_BLOCK_START ID="Additional Methods"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS // Add Additional Methods and members here... // ##HAND_CODED_BLOCK_END ID="Additional Methods"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS } |
Invoice.java |
package SimpleHierarchyLib; /********************************************************************************************** * Copyright (c) 2001-2023 Liquid Technologies Limited. All rights reserved. * See www.liquid-technologies.com for product details. * * Please see products End User License Agreement for distribution permissions. * * WARNING: THIS FILE IS GENERATED * Changes made outside of ##HAND_CODED_BLOCK_START blocks will be overwritten * * Generation : by Liquid XML Data Binder 19.0.14.11049 * Using Schema: SimpleHierarchy.xsd **********************************************************************************************/ // <summary> // This class represents the Element Invoice // </summary> public class Invoice extends com.liquid_technologies.ltxmllib20.XmlGeneratedClass { private static final long serialVersionUID = 13L; // <summary> // Constructor for Invoice // </summary> // <remarks> // The class is created with all the mandatory fields populated with the // default data. // All Collection object are created. // However any 1-n relationships (these are represented as collections) are // empty. To comply with the schema these must be populated before the xml // obtained from ToXml is valid against the schema SimpleHierarchy.xsd // </remarks> public Invoice() { setElementName("Invoice"); init(); } public Invoice(String elementName) { setElementName(elementName); init(); } // <summary> // Initializes the class // </summary> // <remarks> // This creates all the mandatory fields (populated with the default data) // All Collection object are created. // However any 1-n relationships (these are represented as collections) are // empty. To comply with the schema these must be populated before the xml // obtained from ToXml is valid against the schema SimpleHierarchy.xsd. // </remarks> @Override protected void init() { try { SimpleHierarchyLib.Registration.iRegistrationIndicator = 0; // causes registration to take place _invoiceNo = (long)0; _deliveryAddress = new SimpleHierarchyLib.AddressType("DeliveryAddress"); _billingAddress = null; _item = new SimpleHierarchyLib.XmlObjectCollection<SimpleHierarchyLib.ItemType>("Item", "", 1, -1, false, SimpleHierarchyLib.ItemType.class); _payment = new SimpleHierarchyLib.Payment("Payment"); // ##HAND_CODED_BLOCK_START ID="Additional Inits"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS // Add Additional initialization code here... // ##HAND_CODED_BLOCK_END ID="Additional Inits"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS getClassAttributeInfo(); getClassElementInfo(); } catch (Exception ex) { // should never happen ex.printStackTrace(); throw new InternalError(); } } // <summary> // Allows the class to be copied // </summary> // <remarks> // Performs a 'deep copy' of all the data in the class (and its children) // </remarks> @Override public Object clone() throws CloneNotSupportedException { try { SimpleHierarchyLib.Invoice newObject = (SimpleHierarchyLib.Invoice)super.clone(); // clone, creates a bitwise copy of the class, so all the collections are the // same as the parents. Init will re-create our own collections, and classes, // preventing objects being shared between the new an original objects newObject.init(); newObject._invoiceNo = _invoiceNo; newObject._deliveryAddress = null; if (_deliveryAddress != null) newObject._deliveryAddress = (SimpleHierarchyLib.AddressType)_deliveryAddress.clone(); newObject._billingAddress = null; if (_billingAddress != null) newObject._billingAddress = (SimpleHierarchyLib.AddressType)_billingAddress.clone(); for(int i=0; i<_item.size(); i++) newObject._item.add((SimpleHierarchyLib.ItemType)_item.get(i).clone()); newObject._payment = null; if (_payment != null) newObject._payment = (SimpleHierarchyLib.Payment)_payment.clone(); // ##HAND_CODED_BLOCK_START ID="Additional clone"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS // Add Additional clone code here... // ##HAND_CODED_BLOCK_END ID="Additional clone"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS return newObject; } catch (CloneNotSupportedException e) { // should never happen e.printStackTrace(); throw new InternalError(); } } @Override public String getTargetNamespace() { return ""; } // <summary> // Represents a mandatory Element in the XML document // </summary> // <remarks> // This property is represented as an Element in the XML. // It is mandatory and therefore must be populated within the XML. // It is defaulted to (long)0. // </remarks> public long getInvoiceNo() throws com.liquid_technologies.ltxmllib20.exceptions.LtException { return _invoiceNo; } public void setInvoiceNo(long value) throws com.liquid_technologies.ltxmllib20.exceptions.LtException { _invoiceNo = value; } protected long _invoiceNo; // <summary> // Represents a mandatory Element in the XML document // </summary> // <remarks> // This property is represented as an Element in the XML. // It is mandatory and therefore must be populated within the XML. // If this property is set, then the object will be COPIED. If the property is set to null an exception is raised. // </remarks> public SimpleHierarchyLib.AddressType getDeliveryAddress() { return _deliveryAddress; } public void setDeliveryAddress(SimpleHierarchyLib.AddressType value) throws com.liquid_technologies.ltxmllib20.exceptions.LtException { throw_IfPropertyIsNull(value, "DeliveryAddress"); if (value != null) setElementName(value.getBase(), "DeliveryAddress"); // throw_IfElementNameDiffers(value, "DeliveryAddress"); _deliveryAddress = value; } protected SimpleHierarchyLib.AddressType _deliveryAddress; // <summary> // Represents an optional Element in the XML document // </summary> // <remarks> // This property is represented as an Element in the XML. // It is optional, initially it is null. // </remarks> public SimpleHierarchyLib.AddressType getBillingAddress() { return _billingAddress; } public void setBillingAddress(SimpleHierarchyLib.AddressType value) throws com.liquid_technologies.ltxmllib20.exceptions.LtException { if (value == null) _billingAddress = null; else { setElementName(value.getBase(), "BillingAddress"); _billingAddress = value; } } protected SimpleHierarchyLib.AddressType _billingAddress; // <summary> // A collection of Items // </summary> // <remarks> // This property is represented as an Element in the XML. // This collection may contain 1 to Many objects. // </remarks> public SimpleHierarchyLib.XmlObjectCollection<SimpleHierarchyLib.ItemType> getItem() { return _item; } protected SimpleHierarchyLib.XmlObjectCollection<SimpleHierarchyLib.ItemType> _item; // <summary> // Represents a mandatory Element in the XML document // </summary> // <remarks> // This property is represented as an Element in the XML. // It is mandatory and therefore must be populated within the XML. // If this property is set, then the object will be COPIED. If the property is set to null an exception is raised. // </remarks> public SimpleHierarchyLib.Payment getPayment() { return _payment; } public void setPayment(SimpleHierarchyLib.Payment value) throws com.liquid_technologies.ltxmllib20.exceptions.LtException { throw_IfPropertyIsNull(value, "Payment"); if (value != null) setElementName(value.getBase(), "Payment"); // throw_IfElementNameDiffers(value, "Payment"); _payment = value; } protected SimpleHierarchyLib.Payment _payment; @Override public String getNamespace() { return ""; } @Override public com.liquid_technologies.ltxmllib20.XmlObjectBase getBase() { return this; } protected void onEvent(com.liquid_technologies.ltxmllib20.XmlObjectBase msgSource, int msgType, Object data) { if (msgType == CollectionChangeEvent) { } } private static com.liquid_technologies.ltxmllib20.ParentElementInfo __parentElementInfo = null; private static com.liquid_technologies.ltxmllib20.ElementInfo[] __elementInfo = null; private static com.liquid_technologies.ltxmllib20.AttributeInfo[] __attributeInfo = null; protected com.liquid_technologies.ltxmllib20.ParentElementInfo getClassInfo() throws Exception { if (__parentElementInfo == null) { __parentElementInfo = new com.liquid_technologies.ltxmllib20.ParentElementInfo( com.liquid_technologies.ltxmllib20.XmlObjectBase.XmlElementGroupType.SEQUENCE, com.liquid_technologies.ltxmllib20.XmlObjectBase.XmlElementType.ELEMENT, "Invoice", "", true, false, null, null, com.liquid_technologies.ltxmllib20.Conversions.ConversionType.TYPE_NONE, com.liquid_technologies.ltxmllib20.WhitespaceRule.NONE, null, false); } return __parentElementInfo; } protected com.liquid_technologies.ltxmllib20.ElementInfo[] getClassElementInfo() throws Exception { if (__elementInfo == null) { __elementInfo = new com.liquid_technologies.ltxmllib20.ElementInfo[] { new com.liquid_technologies.ltxmllib20.data.ElementInfoSeqPrimMnd("InvoiceNo", "", findGetterMethod("SimpleHierarchyLib.Invoice", "getInvoiceNo"), findSetterMethod("SimpleHierarchyLib.Invoice", "setInvoiceNo", "long"), null, null, com.liquid_technologies.ltxmllib20.Conversions.ConversionType.TYPE_UI4, null, com.liquid_technologies.ltxmllib20.WhitespaceRule.COLLAPSE, new com.liquid_technologies.ltxmllib20.PrimitiveRestrictions("", -1, -1, "", "", "", "", -1, -1, -1), null) ,new com.liquid_technologies.ltxmllib20.data.ElementInfoSeqClsMnd("DeliveryAddress", "", findGetterMethod("SimpleHierarchyLib.Invoice", "getDeliveryAddress"), findSetterMethod("SimpleHierarchyLib.Invoice", "setDeliveryAddress", "SimpleHierarchyLib.AddressType"), com.liquid_technologies.ltxmllib20.XmlObjectBase.XmlElementType.ELEMENT, SimpleHierarchyLib.AddressType.class, true) ,new com.liquid_technologies.ltxmllib20.data.ElementInfoSeqClsOpt("BillingAddress", "", findGetterMethod("SimpleHierarchyLib.Invoice", "getBillingAddress"), findSetterMethod("SimpleHierarchyLib.Invoice", "setBillingAddress", "SimpleHierarchyLib.AddressType"), com.liquid_technologies.ltxmllib20.XmlObjectBase.XmlElementType.ELEMENT, SimpleHierarchyLib.AddressType.class) ,new com.liquid_technologies.ltxmllib20.data.ElementInfoSeqClsCol("Item", "", findGetterMethod("SimpleHierarchyLib.Invoice", "getItem"), com.liquid_technologies.ltxmllib20.XmlObjectBase.XmlElementType.ELEMENT) ,new com.liquid_technologies.ltxmllib20.data.ElementInfoSeqClsMnd("Payment", "", findGetterMethod("SimpleHierarchyLib.Invoice", "getPayment"), findSetterMethod("SimpleHierarchyLib.Invoice", "setPayment", "SimpleHierarchyLib.Payment"), com.liquid_technologies.ltxmllib20.XmlObjectBase.XmlElementType.ELEMENT, SimpleHierarchyLib.Payment.class, true) }; } return __elementInfo; } protected com.liquid_technologies.ltxmllib20.AttributeInfo[] getClassAttributeInfo() throws Exception { if (__attributeInfo==null) { __attributeInfo = new com.liquid_technologies.ltxmllib20.AttributeInfo[] { }; } return __attributeInfo; } // ##HAND_CODED_BLOCK_START ID="Additional Methods"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS // Add Additional Methods and members here... // ##HAND_CODED_BLOCK_END ID="Additional Methods"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS } |
Payment.java |
package SimpleHierarchyLib; /********************************************************************************************** * Copyright (c) 2001-2023 Liquid Technologies Limited. All rights reserved. * See www.liquid-technologies.com for product details. * * Please see products End User License Agreement for distribution permissions. * * WARNING: THIS FILE IS GENERATED * Changes made outside of ##HAND_CODED_BLOCK_START blocks will be overwritten * * Generation : by Liquid XML Data Binder 19.0.14.11049 * Using Schema: SimpleHierarchy.xsd **********************************************************************************************/ // <summary> // This class represents the ComplexType Payment // </summary> public class Payment extends com.liquid_technologies.ltxmllib20.XmlGeneratedClass { private static final long serialVersionUID = 13L; // <summary> // Constructor for Payment // </summary> // <remarks> // The class is created with all the mandatory fields populated with the // default data. // All Collection object are created. // However any 1-n relationships (these are represented as collections) are // empty. To comply with the schema these must be populated before the xml // obtained from ToXml is valid against the schema SimpleHierarchy.xsd // </remarks> public Payment() { setElementName("Payment"); init(); } public Payment(String elementName) { setElementName(elementName); init(); } // <summary> // Initializes the class // </summary> // <remarks> // This creates all the mandatory fields (populated with the default data) // All Collection object are created. // However any 1-n relationships (these are represented as collections) are // empty. To comply with the schema these must be populated before the xml // obtained from ToXml is valid against the schema SimpleHierarchy.xsd. // </remarks> @Override protected void init() { try { SimpleHierarchyLib.Registration.iRegistrationIndicator = 0; // causes registration to take place _vISA = null; _vouchers = new SimpleHierarchyLib.XmlObjectCollection<SimpleHierarchyLib.Vouchers>("Vouchers", "", 1, -1, false, SimpleHierarchyLib.Vouchers.class); _vouchers.addEventListener(this); _cash = null; _validElement = ""; // ##HAND_CODED_BLOCK_START ID="Additional Inits"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS // Add Additional initialization code here... // ##HAND_CODED_BLOCK_END ID="Additional Inits"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS getClassAttributeInfo(); getClassElementInfo(); } catch (Exception ex) { // should never happen ex.printStackTrace(); throw new InternalError(); } } protected void ClearChoice(String selectedElement) { try { _vISA = null; if (_vouchers != null) { if (!selectedElement.equals("Vouchers")) _vouchers.clear(); } _cash = null; _validElement = selectedElement; } catch (Exception ex) { // should never happen ex.printStackTrace(); throw new InternalError(); } } // <summary> // Allows the class to be copied // </summary> // <remarks> // Performs a 'deep copy' of all the data in the class (and its children) // </remarks> @Override public Object clone() throws CloneNotSupportedException { try { SimpleHierarchyLib.Payment newObject = (SimpleHierarchyLib.Payment)super.clone(); // clone, creates a bitwise copy of the class, so all the collections are the // same as the parents. Init will re-create our own collections, and classes, // preventing objects being shared between the new an original objects newObject.init(); newObject._vISA = null; if (_vISA != null) newObject._vISA = (SimpleHierarchyLib.VISA)_vISA.clone(); for(int i=0; i<_vouchers.size(); i++) newObject._vouchers.add((SimpleHierarchyLib.Vouchers)_vouchers.get(i).clone()); newObject._cash = null; if (_cash != null) newObject._cash = (com.liquid_technologies.ltxmllib20.Element)_cash.clone(); newObject._validElement = _validElement; // ##HAND_CODED_BLOCK_START ID="Additional clone"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS // Add Additional clone code here... // ##HAND_CODED_BLOCK_END ID="Additional clone"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS return newObject; } catch (CloneNotSupportedException e) { // should never happen e.printStackTrace(); throw new InternalError(); } } @Override public String getTargetNamespace() { return ""; } // <summary> // Represents an optional Element in the XML document // </summary> // <remarks> // This property is represented as an Element in the XML. // It is optional, initially it is null. // Only one Element within this class may be set at a time, setting this property when another element is already set will raise an exception. setting this property to null will allow another element to be selected // </remarks> public SimpleHierarchyLib.VISA getVISA() { return _vISA; } public void setVISA(SimpleHierarchyLib.VISA value) throws com.liquid_technologies.ltxmllib20.exceptions.LtException { // The class represents a choice, so prevent more than one element from being selected ClearChoice((value == null)?"":"VISA"); // remove selection if (value == null) _vISA = null; else { setElementName(value.getBase(), "VISA"); _vISA = value; } } protected SimpleHierarchyLib.VISA _vISA; // <summary> // A collection of Voucherss // </summary> // <remarks> // This property is represented as an Element in the XML. // This collection may contain 1 to Many objects. // Only one Element within this class may be set at a time. This collection (as a whole is counted as an element) may contain 0 or 1 to Many entries. Emptying the collection allows a different element to be the selected one. If there is already a selected element, and an item is added to this collection then an exception will be raised // </remarks> public SimpleHierarchyLib.XmlObjectCollection<SimpleHierarchyLib.Vouchers> getVouchers() { return _vouchers; } protected SimpleHierarchyLib.XmlObjectCollection<SimpleHierarchyLib.Vouchers> _vouchers; // <summary> // Represents an optional untyped element in the XML document // </summary> // <remarks> // It is optional, initially it is null. // Only one Element within this class may be set at a time, setting this property when another element is already set will raise an exception. setting this property to null will allow another element to be selected // </remarks> public com.liquid_technologies.ltxmllib20.Element getCash() { return _cash; } public void setCash(com.liquid_technologies.ltxmllib20.Element value) throws com.liquid_technologies.ltxmllib20.exceptions.LtException { if (value != null) testNamespace(value.getNamespace(), "##any", ""); // The class represents a choice, so prevent more than one element from being selected ClearChoice((value == null)?"":"Cash"); // remove selection _cash = value; } protected com.liquid_technologies.ltxmllib20.Element _cash; public String getChoiceSelectedElement() { return _validElement; } protected String _validElement; @Override public String getNamespace() { return ""; } @Override public com.liquid_technologies.ltxmllib20.XmlObjectBase getBase() { return this; } protected void onEvent(com.liquid_technologies.ltxmllib20.XmlObjectBase msgSource, int msgType, Object data) { if (msgType == CollectionChangeEvent) { if (msgSource.equals(_vouchers)) { if (!_validElement.equals("Vouchers")) { ClearChoice(((com.liquid_technologies.ltxmllib20.XmlCollectionBase)msgSource).size() == 0 ? "" : "Vouchers"); // remove selection } } } } private static com.liquid_technologies.ltxmllib20.ParentElementInfo __parentElementInfo = null; private static com.liquid_technologies.ltxmllib20.ElementInfo[] __elementInfo = null; private static com.liquid_technologies.ltxmllib20.AttributeInfo[] __attributeInfo = null; protected com.liquid_technologies.ltxmllib20.ParentElementInfo getClassInfo() throws Exception { if (__parentElementInfo == null) { __parentElementInfo = new com.liquid_technologies.ltxmllib20.ParentElementInfo( com.liquid_technologies.ltxmllib20.XmlObjectBase.XmlElementGroupType.CHOICE, com.liquid_technologies.ltxmllib20.XmlObjectBase.XmlElementType.ELEMENT, "Payment", "", true, false, null, null, com.liquid_technologies.ltxmllib20.Conversions.ConversionType.TYPE_NONE, com.liquid_technologies.ltxmllib20.WhitespaceRule.NONE, null, false); } return __parentElementInfo; } protected com.liquid_technologies.ltxmllib20.ElementInfo[] getClassElementInfo() throws Exception { if (__elementInfo == null) { __elementInfo = new com.liquid_technologies.ltxmllib20.ElementInfo[] { new com.liquid_technologies.ltxmllib20.data.ElementInfoChoiceClsOpt("VISA", "", findGetterMethod("SimpleHierarchyLib.Payment", "getVISA"), findSetterMethod("SimpleHierarchyLib.Payment", "setVISA", "SimpleHierarchyLib.VISA"), com.liquid_technologies.ltxmllib20.XmlObjectBase.XmlElementType.ELEMENT, SimpleHierarchyLib.VISA.class) ,new com.liquid_technologies.ltxmllib20.data.ElementInfoChoiceClsCol("Vouchers", "", findGetterMethod("SimpleHierarchyLib.Payment", "getVouchers"), com.liquid_technologies.ltxmllib20.XmlObjectBase.XmlElementType.ELEMENT) ,new com.liquid_technologies.ltxmllib20.data.ElementInfoChoiceUntpdOpt("Cash", "", findGetterMethod("SimpleHierarchyLib.Payment", "getCash"), findSetterMethod("SimpleHierarchyLib.Payment", "setCash", "com.liquid_technologies.ltxmllib20.Element"), "##any", "") }; } return __elementInfo; } protected com.liquid_technologies.ltxmllib20.AttributeInfo[] getClassAttributeInfo() throws Exception { if (__attributeInfo==null) { __attributeInfo = new com.liquid_technologies.ltxmllib20.AttributeInfo[] { }; } return __attributeInfo; } // ##HAND_CODED_BLOCK_START ID="Additional Methods"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS // Add Additional Methods and members here... // ##HAND_CODED_BLOCK_END ID="Additional Methods"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS } |
VISA.java |
package SimpleHierarchyLib; /********************************************************************************************** * Copyright (c) 2001-2023 Liquid Technologies Limited. All rights reserved. * See www.liquid-technologies.com for product details. * * Please see products End User License Agreement for distribution permissions. * * WARNING: THIS FILE IS GENERATED * Changes made outside of ##HAND_CODED_BLOCK_START blocks will be overwritten * * Generation : by Liquid XML Data Binder 19.0.14.11049 * Using Schema: SimpleHierarchy.xsd **********************************************************************************************/ // <summary> // This class represents the ComplexType VISA // </summary> public class VISA extends com.liquid_technologies.ltxmllib20.XmlGeneratedClass { private static final long serialVersionUID = 13L; // <summary> // Constructor for VISA // </summary> // <remarks> // The class is created with all the mandatory fields populated with the // default data. // All Collection object are created. // However any 1-n relationships (these are represented as collections) are // empty. To comply with the schema these must be populated before the xml // obtained from ToXml is valid against the schema SimpleHierarchy.xsd // </remarks> public VISA() { setElementName("VISA"); init(); } public VISA(String elementName) { setElementName(elementName); init(); } // <summary> // Initializes the class // </summary> // <remarks> // This creates all the mandatory fields (populated with the default data) // All Collection object are created. // However any 1-n relationships (these are represented as collections) are // empty. To comply with the schema these must be populated before the xml // obtained from ToXml is valid against the schema SimpleHierarchy.xsd. // </remarks> @Override protected void init() { try { SimpleHierarchyLib.Registration.iRegistrationIndicator = 0; // causes registration to take place _cardNo = ""; _expiry = new com.liquid_technologies.ltxmllib20.DateTime(com.liquid_technologies.ltxmllib20.DateTimeType.gYearMonth); // ##HAND_CODED_BLOCK_START ID="Additional Inits"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS // Add Additional initialization code here... // ##HAND_CODED_BLOCK_END ID="Additional Inits"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS getClassAttributeInfo(); getClassElementInfo(); } catch (Exception ex) { // should never happen ex.printStackTrace(); throw new InternalError(); } } // <summary> // Allows the class to be copied // </summary> // <remarks> // Performs a 'deep copy' of all the data in the class (and its children) // </remarks> @Override public Object clone() throws CloneNotSupportedException { try { SimpleHierarchyLib.VISA newObject = (SimpleHierarchyLib.VISA)super.clone(); // clone, creates a bitwise copy of the class, so all the collections are the // same as the parents. Init will re-create our own collections, and classes, // preventing objects being shared between the new an original objects newObject.init(); newObject._cardNo = _cardNo; newObject._expiry = (com.liquid_technologies.ltxmllib20.DateTime)_expiry.clone(); // ##HAND_CODED_BLOCK_START ID="Additional clone"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS // Add Additional clone code here... // ##HAND_CODED_BLOCK_END ID="Additional clone"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS return newObject; } catch (CloneNotSupportedException e) { // should never happen e.printStackTrace(); throw new InternalError(); } } @Override public String getTargetNamespace() { return ""; } // <summary> // Represents a mandatory Attribute in the XML document // </summary> // <remarks> // This property is represented as an Attribute in the XML. // It is mandatory and therefore must be populated within the XML. // It is defaulted to "". // </remarks> public java.lang.String getCardNo() throws com.liquid_technologies.ltxmllib20.exceptions.LtException { return _cardNo; } public void setCardNo(java.lang.String value) throws com.liquid_technologies.ltxmllib20.exceptions.LtException { // Apply whitespace rules appropriately value = com.liquid_technologies.ltxmllib20.WhitespaceUtils.preserve(value); _cardNo = value; } protected java.lang.String _cardNo; // <summary> // Represents a mandatory Attribute in the XML document // </summary> // <remarks> // This property is represented as an Attribute in the XML. // It is mandatory and therefore must be populated within the XML. // It is defaulted to new com.liquid_technologies.ltxmllib20.DateTime(com.liquid_technologies.ltxmllib20.DateTimeType.gYearMonth). // </remarks> public com.liquid_technologies.ltxmllib20.DateTime getExpiry() throws com.liquid_technologies.ltxmllib20.exceptions.LtException { return _expiry; } public void setExpiry(com.liquid_technologies.ltxmllib20.DateTime value) throws com.liquid_technologies.ltxmllib20.exceptions.LtException { _expiry.setDateTime(value, _expiry.getType()); } protected com.liquid_technologies.ltxmllib20.DateTime _expiry; @Override public String getNamespace() { return ""; } @Override public com.liquid_technologies.ltxmllib20.XmlObjectBase getBase() { return this; } protected void onEvent(com.liquid_technologies.ltxmllib20.XmlObjectBase msgSource, int msgType, Object data) { if (msgType == CollectionChangeEvent) { } } private static com.liquid_technologies.ltxmllib20.ParentElementInfo __parentElementInfo = null; private static com.liquid_technologies.ltxmllib20.ElementInfo[] __elementInfo = null; private static com.liquid_technologies.ltxmllib20.AttributeInfo[] __attributeInfo = null; protected com.liquid_technologies.ltxmllib20.ParentElementInfo getClassInfo() throws Exception { if (__parentElementInfo == null) { __parentElementInfo = new com.liquid_technologies.ltxmllib20.ParentElementInfo( com.liquid_technologies.ltxmllib20.XmlObjectBase.XmlElementGroupType.SEQUENCE, com.liquid_technologies.ltxmllib20.XmlObjectBase.XmlElementType.ELEMENT, "VISA", "", true, false, null, null, com.liquid_technologies.ltxmllib20.Conversions.ConversionType.TYPE_NONE, com.liquid_technologies.ltxmllib20.WhitespaceRule.NONE, null, false); } return __parentElementInfo; } protected com.liquid_technologies.ltxmllib20.ElementInfo[] getClassElementInfo() throws Exception { if (__elementInfo == null) { __elementInfo = new com.liquid_technologies.ltxmllib20.ElementInfo[] { }; } return __elementInfo; } protected com.liquid_technologies.ltxmllib20.AttributeInfo[] getClassAttributeInfo() throws Exception { if (__attributeInfo==null) { __attributeInfo = new com.liquid_technologies.ltxmllib20.AttributeInfo[] { new com.liquid_technologies.ltxmllib20.AttributeInfoPrimitive("CardNo", "", findGetterMethod("SimpleHierarchyLib.VISA", "getCardNo"), findSetterMethod("SimpleHierarchyLib.VISA", "setCardNo", "java.lang.String"), com.liquid_technologies.ltxmllib20.Conversions.ConversionType.TYPE_STRING, null, com.liquid_technologies.ltxmllib20.WhitespaceRule.PRESERVE, new com.liquid_technologies.ltxmllib20.PrimitiveRestrictions("", -1, -1, "", "", "", "", -1, -1, -1), null) ,new com.liquid_technologies.ltxmllib20.AttributeInfoPrimitive("Expiry", "", findGetterMethod("SimpleHierarchyLib.VISA", "getExpiry"), findSetterMethod("SimpleHierarchyLib.VISA", "setExpiry", "com.liquid_technologies.ltxmllib20.DateTime"), com.liquid_technologies.ltxmllib20.Conversions.ConversionType.TYPE_YEAR_MONTH, null, com.liquid_technologies.ltxmllib20.WhitespaceRule.COLLAPSE, new com.liquid_technologies.ltxmllib20.PrimitiveRestrictions("", -1, -1, "", "", "", "", -1, -1, -1), null) }; } return __attributeInfo; } // ##HAND_CODED_BLOCK_START ID="Additional Methods"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS // Add Additional Methods and members here... // ##HAND_CODED_BLOCK_END ID="Additional Methods"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS } |
Vouchers.java |
package SimpleHierarchyLib; /********************************************************************************************** * Copyright (c) 2001-2023 Liquid Technologies Limited. All rights reserved. * See www.liquid-technologies.com for product details. * * Please see products End User License Agreement for distribution permissions. * * WARNING: THIS FILE IS GENERATED * Changes made outside of ##HAND_CODED_BLOCK_START blocks will be overwritten * * Generation : by Liquid XML Data Binder 19.0.14.11049 * Using Schema: SimpleHierarchy.xsd **********************************************************************************************/ // <summary> // This class represents the ComplexType Vouchers // </summary> public class Vouchers extends com.liquid_technologies.ltxmllib20.XmlGeneratedClass { private static final long serialVersionUID = 13L; // <summary> // Constructor for Vouchers // </summary> // <remarks> // The class is created with all the mandatory fields populated with the // default data. // All Collection object are created. // However any 1-n relationships (these are represented as collections) are // empty. To comply with the schema these must be populated before the xml // obtained from ToXml is valid against the schema SimpleHierarchy.xsd // </remarks> public Vouchers() { setElementName("Vouchers"); init(); } public Vouchers(String elementName) { setElementName(elementName); init(); } // <summary> // Initializes the class // </summary> // <remarks> // This creates all the mandatory fields (populated with the default data) // All Collection object are created. // However any 1-n relationships (these are represented as collections) are // empty. To comply with the schema these must be populated before the xml // obtained from ToXml is valid against the schema SimpleHierarchy.xsd. // </remarks> @Override protected void init() { try { SimpleHierarchyLib.Registration.iRegistrationIndicator = 0; // causes registration to take place _voucherNo = (long)0; _voucherValue = (long)0; // ##HAND_CODED_BLOCK_START ID="Additional Inits"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS // Add Additional initialization code here... // ##HAND_CODED_BLOCK_END ID="Additional Inits"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS getClassAttributeInfo(); getClassElementInfo(); } catch (Exception ex) { // should never happen ex.printStackTrace(); throw new InternalError(); } } // <summary> // Allows the class to be copied // </summary> // <remarks> // Performs a 'deep copy' of all the data in the class (and its children) // </remarks> @Override public Object clone() throws CloneNotSupportedException { try { SimpleHierarchyLib.Vouchers newObject = (SimpleHierarchyLib.Vouchers)super.clone(); // clone, creates a bitwise copy of the class, so all the collections are the // same as the parents. Init will re-create our own collections, and classes, // preventing objects being shared between the new an original objects newObject.init(); newObject._voucherNo = _voucherNo; newObject._voucherValue = _voucherValue; // ##HAND_CODED_BLOCK_START ID="Additional clone"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS // Add Additional clone code here... // ##HAND_CODED_BLOCK_END ID="Additional clone"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS return newObject; } catch (CloneNotSupportedException e) { // should never happen e.printStackTrace(); throw new InternalError(); } } @Override public String getTargetNamespace() { return ""; } // <summary> // Represents a mandatory Attribute in the XML document // </summary> // <remarks> // This property is represented as an Attribute in the XML. // It is mandatory and therefore must be populated within the XML. // It is defaulted to (long)0. // </remarks> public long getVoucherNo() throws com.liquid_technologies.ltxmllib20.exceptions.LtException { return _voucherNo; } public void setVoucherNo(long value) throws com.liquid_technologies.ltxmllib20.exceptions.LtException { _voucherNo = value; } protected long _voucherNo; // <summary> // Represents a mandatory Attribute in the XML document // </summary> // <remarks> // This property is represented as an Attribute in the XML. // It is mandatory and therefore must be populated within the XML. // It is defaulted to (long)0. // </remarks> public long getVoucherValue() throws com.liquid_technologies.ltxmllib20.exceptions.LtException { return _voucherValue; } public void setVoucherValue(long value) throws com.liquid_technologies.ltxmllib20.exceptions.LtException { _voucherValue = value; } protected long _voucherValue; @Override public String getNamespace() { return ""; } @Override public com.liquid_technologies.ltxmllib20.XmlObjectBase getBase() { return this; } protected void onEvent(com.liquid_technologies.ltxmllib20.XmlObjectBase msgSource, int msgType, Object data) { if (msgType == CollectionChangeEvent) { } } private static com.liquid_technologies.ltxmllib20.ParentElementInfo __parentElementInfo = null; private static com.liquid_technologies.ltxmllib20.ElementInfo[] __elementInfo = null; private static com.liquid_technologies.ltxmllib20.AttributeInfo[] __attributeInfo = null; protected com.liquid_technologies.ltxmllib20.ParentElementInfo getClassInfo() throws Exception { if (__parentElementInfo == null) { __parentElementInfo = new com.liquid_technologies.ltxmllib20.ParentElementInfo( com.liquid_technologies.ltxmllib20.XmlObjectBase.XmlElementGroupType.SEQUENCE, com.liquid_technologies.ltxmllib20.XmlObjectBase.XmlElementType.ELEMENT, "Vouchers", "", true, false, null, null, com.liquid_technologies.ltxmllib20.Conversions.ConversionType.TYPE_NONE, com.liquid_technologies.ltxmllib20.WhitespaceRule.NONE, null, false); } return __parentElementInfo; } protected com.liquid_technologies.ltxmllib20.ElementInfo[] getClassElementInfo() throws Exception { if (__elementInfo == null) { __elementInfo = new com.liquid_technologies.ltxmllib20.ElementInfo[] { }; } return __elementInfo; } protected com.liquid_technologies.ltxmllib20.AttributeInfo[] getClassAttributeInfo() throws Exception { if (__attributeInfo==null) { __attributeInfo = new com.liquid_technologies.ltxmllib20.AttributeInfo[] { new com.liquid_technologies.ltxmllib20.AttributeInfoPrimitive("VoucherNo", "", findGetterMethod("SimpleHierarchyLib.Vouchers", "getVoucherNo"), findSetterMethod("SimpleHierarchyLib.Vouchers", "setVoucherNo", "long"), com.liquid_technologies.ltxmllib20.Conversions.ConversionType.TYPE_UI8, null, com.liquid_technologies.ltxmllib20.WhitespaceRule.COLLAPSE, new com.liquid_technologies.ltxmllib20.PrimitiveRestrictions("", -1, -1, "", "", "", "", -1, -1, -1), null) ,new com.liquid_technologies.ltxmllib20.AttributeInfoPrimitive("VoucherValue", "", findGetterMethod("SimpleHierarchyLib.Vouchers", "getVoucherValue"), findSetterMethod("SimpleHierarchyLib.Vouchers", "setVoucherValue", "long"), com.liquid_technologies.ltxmllib20.Conversions.ConversionType.TYPE_UI8, null, com.liquid_technologies.ltxmllib20.WhitespaceRule.COLLAPSE, new com.liquid_technologies.ltxmllib20.PrimitiveRestrictions("", -1, -1, "", "", "", "", -1, -1, -1), null) }; } return __attributeInfo; } // ##HAND_CODED_BLOCK_START ID="Additional Methods"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS // Add Additional Methods and members here... // ##HAND_CODED_BLOCK_END ID="Additional Methods"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS } |
ItemType.java |
package SimpleHierarchyLib; /********************************************************************************************** * Copyright (c) 2001-2023 Liquid Technologies Limited. All rights reserved. * See www.liquid-technologies.com for product details. * * Please see products End User License Agreement for distribution permissions. * * WARNING: THIS FILE IS GENERATED * Changes made outside of ##HAND_CODED_BLOCK_START blocks will be overwritten * * Generation : by Liquid XML Data Binder 19.0.14.11049 * Using Schema: SimpleHierarchy.xsd **********************************************************************************************/ // <summary> // This class represents the ComplexType ItemType // </summary> public class ItemType extends com.liquid_technologies.ltxmllib20.XmlGeneratedClass { private static final long serialVersionUID = 13L; // <summary> // Constructor for ItemType // </summary> // <remarks> // The class is created with all the mandatory fields populated with the // default data. // All Collection object are created. // However any 1-n relationships (these are represented as collections) are // empty. To comply with the schema these must be populated before the xml // obtained from ToXml is valid against the schema SimpleHierarchy.xsd // </remarks> public ItemType() { setElementName("ItemType"); init(); } public ItemType(String elementName) { setElementName(elementName); init(); } // <summary> // Initializes the class // </summary> // <remarks> // This creates all the mandatory fields (populated with the default data) // All Collection object are created. // However any 1-n relationships (these are represented as collections) are // empty. To comply with the schema these must be populated before the xml // obtained from ToXml is valid against the schema SimpleHierarchy.xsd. // </remarks> @Override protected void init() { try { SimpleHierarchyLib.Registration.iRegistrationIndicator = 0; // causes registration to take place _stockCode = (long)0; _description = ""; _unitCost = (long)0; _quantity = (long)0; // ##HAND_CODED_BLOCK_START ID="Additional Inits"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS // Add Additional initialization code here... // ##HAND_CODED_BLOCK_END ID="Additional Inits"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS getClassAttributeInfo(); getClassElementInfo(); } catch (Exception ex) { // should never happen ex.printStackTrace(); throw new InternalError(); } } // <summary> // Allows the class to be copied // </summary> // <remarks> // Performs a 'deep copy' of all the data in the class (and its children) // </remarks> @Override public Object clone() throws CloneNotSupportedException { try { SimpleHierarchyLib.ItemType newObject = (SimpleHierarchyLib.ItemType)super.clone(); // clone, creates a bitwise copy of the class, so all the collections are the // same as the parents. Init will re-create our own collections, and classes, // preventing objects being shared between the new an original objects newObject.init(); newObject._stockCode = _stockCode; newObject._description = _description; newObject._unitCost = _unitCost; newObject._quantity = _quantity; // ##HAND_CODED_BLOCK_START ID="Additional clone"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS // Add Additional clone code here... // ##HAND_CODED_BLOCK_END ID="Additional clone"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS return newObject; } catch (CloneNotSupportedException e) { // should never happen e.printStackTrace(); throw new InternalError(); } } @Override public String getTargetNamespace() { return ""; } // <summary> // Represents a mandatory Element in the XML document // </summary> // <remarks> // This property is represented as an Element in the XML. // It is mandatory and therefore must be populated within the XML. // It is defaulted to (long)0. // </remarks> public long getStockCode() throws com.liquid_technologies.ltxmllib20.exceptions.LtException { return _stockCode; } public void setStockCode(long value) throws com.liquid_technologies.ltxmllib20.exceptions.LtException { _stockCode = value; } protected long _stockCode; // <summary> // Represents a mandatory Element in the XML document // </summary> // <remarks> // This property is represented as an Element in the XML. // It is mandatory and therefore must be populated within the XML. // It is defaulted to "". // </remarks> public java.lang.String getDescription() throws com.liquid_technologies.ltxmllib20.exceptions.LtException { return _description; } public void setDescription(java.lang.String value) throws com.liquid_technologies.ltxmllib20.exceptions.LtException { // Apply whitespace rules appropriately value = com.liquid_technologies.ltxmllib20.WhitespaceUtils.preserve(value); _description = value; } protected java.lang.String _description; // <summary> // Represents a mandatory Element in the XML document // </summary> // <remarks> // This property is represented as an Element in the XML. // It is mandatory and therefore must be populated within the XML. // It is defaulted to (long)0. // </remarks> public long getUnitCost() throws com.liquid_technologies.ltxmllib20.exceptions.LtException { return _unitCost; } public void setUnitCost(long value) throws com.liquid_technologies.ltxmllib20.exceptions.LtException { _unitCost = value; } protected long _unitCost; // <summary> // Represents a mandatory Element in the XML document // </summary> // <remarks> // This property is represented as an Element in the XML. // It is mandatory and therefore must be populated within the XML. // It is defaulted to (long)0. // </remarks> public long getQuantity() throws com.liquid_technologies.ltxmllib20.exceptions.LtException { return _quantity; } public void setQuantity(long value) throws com.liquid_technologies.ltxmllib20.exceptions.LtException { _quantity = value; } protected long _quantity; @Override public String getNamespace() { return ""; } @Override public com.liquid_technologies.ltxmllib20.XmlObjectBase getBase() { return this; } protected void onEvent(com.liquid_technologies.ltxmllib20.XmlObjectBase msgSource, int msgType, Object data) { if (msgType == CollectionChangeEvent) { } } private static com.liquid_technologies.ltxmllib20.ParentElementInfo __parentElementInfo = null; private static com.liquid_technologies.ltxmllib20.ElementInfo[] __elementInfo = null; private static com.liquid_technologies.ltxmllib20.AttributeInfo[] __attributeInfo = null; protected com.liquid_technologies.ltxmllib20.ParentElementInfo getClassInfo() throws Exception { if (__parentElementInfo == null) { __parentElementInfo = new com.liquid_technologies.ltxmllib20.ParentElementInfo( com.liquid_technologies.ltxmllib20.XmlObjectBase.XmlElementGroupType.SEQUENCE, com.liquid_technologies.ltxmllib20.XmlObjectBase.XmlElementType.ELEMENT, "ItemType", "", true, false, null, null, com.liquid_technologies.ltxmllib20.Conversions.ConversionType.TYPE_NONE, com.liquid_technologies.ltxmllib20.WhitespaceRule.NONE, null, false); } return __parentElementInfo; } protected com.liquid_technologies.ltxmllib20.ElementInfo[] getClassElementInfo() throws Exception { if (__elementInfo == null) { __elementInfo = new com.liquid_technologies.ltxmllib20.ElementInfo[] { new com.liquid_technologies.ltxmllib20.data.ElementInfoSeqPrimMnd("StockCode", "", findGetterMethod("SimpleHierarchyLib.ItemType", "getStockCode"), findSetterMethod("SimpleHierarchyLib.ItemType", "setStockCode", "long"), null, null, com.liquid_technologies.ltxmllib20.Conversions.ConversionType.TYPE_UI8, null, com.liquid_technologies.ltxmllib20.WhitespaceRule.COLLAPSE, new com.liquid_technologies.ltxmllib20.PrimitiveRestrictions("", -1, -1, "", "", "", "", -1, -1, -1), null) ,new com.liquid_technologies.ltxmllib20.data.ElementInfoSeqPrimMnd("Description", "", findGetterMethod("SimpleHierarchyLib.ItemType", "getDescription"), findSetterMethod("SimpleHierarchyLib.ItemType", "setDescription", "java.lang.String"), null, null, com.liquid_technologies.ltxmllib20.Conversions.ConversionType.TYPE_STRING, null, com.liquid_technologies.ltxmllib20.WhitespaceRule.PRESERVE, new com.liquid_technologies.ltxmllib20.PrimitiveRestrictions("", -1, -1, "", "", "", "", -1, -1, -1), null) ,new com.liquid_technologies.ltxmllib20.data.ElementInfoSeqPrimMnd("UnitCost", "", findGetterMethod("SimpleHierarchyLib.ItemType", "getUnitCost"), findSetterMethod("SimpleHierarchyLib.ItemType", "setUnitCost", "long"), null, null, com.liquid_technologies.ltxmllib20.Conversions.ConversionType.TYPE_I8, null, com.liquid_technologies.ltxmllib20.WhitespaceRule.COLLAPSE, new com.liquid_technologies.ltxmllib20.PrimitiveRestrictions("", -1, -1, "", "", "", "", -1, -1, -1), null) ,new com.liquid_technologies.ltxmllib20.data.ElementInfoSeqPrimMnd("Quantity", "", findGetterMethod("SimpleHierarchyLib.ItemType", "getQuantity"), findSetterMethod("SimpleHierarchyLib.ItemType", "setQuantity", "long"), null, null, com.liquid_technologies.ltxmllib20.Conversions.ConversionType.TYPE_UI4, null, com.liquid_technologies.ltxmllib20.WhitespaceRule.COLLAPSE, new com.liquid_technologies.ltxmllib20.PrimitiveRestrictions("", -1, -1, "", "", "", "", -1, -1, -1), null) }; } return __elementInfo; } protected com.liquid_technologies.ltxmllib20.AttributeInfo[] getClassAttributeInfo() throws Exception { if (__attributeInfo==null) { __attributeInfo = new com.liquid_technologies.ltxmllib20.AttributeInfo[] { }; } return __attributeInfo; } // ##HAND_CODED_BLOCK_START ID="Additional Methods"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS // Add Additional Methods and members here... // ##HAND_CODED_BLOCK_END ID="Additional Methods"## DO NOT MODIFY ANYTHING OUTSIDE OF THESE TAGS } |
Main Menu | Samples List |