Java Sample : Cardinality
Schema Summary This sample shows how to deal with mandatory, optional and collections of elements. Schema Details Sample Description The sample demonstrates how to read and write from optional, mandatory and collections of elements, when data is included in the XML document. |
Sample XML File
Sample1.xml |
<?xml version="1.0" encoding="UTF-8"?> <MyRootObject xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="..\Schema\Cardinality.xsd"> <ASimpleStringMandatoryElement>Some Required Data</ASimpleStringMandatoryElement> <ASimpleDateMandatoryElement>2003-11-23</ASimpleDateMandatoryElement> <AComplexMandatoryElement> <ChildItem>Some More Required Data</ChildItem> </AComplexMandatoryElement> <ASimpleStringOptionalElement>Some Optional Data</ASimpleStringOptionalElement> <ASimpleDateOptionalElement>2001-05-06</ASimpleDateOptionalElement> <AComplexOptionalElement> <ChildItem>Some More Optional Data</ChildItem> </AComplexOptionalElement> <ASimpleStringCollectionElement>First Data Item</ASimpleStringCollectionElement> <ASimpleStringCollectionElement>Second Data Item</ASimpleStringCollectionElement> <ASimpleDateCollectionElement>2003-01-01</ASimpleDateCollectionElement> <ASimpleDateCollectionElement>2003-01-02</ASimpleDateCollectionElement> <ASimpleDateCollectionElement>2003-01-03</ASimpleDateCollectionElement> <AComplexCollectionElement> <ChildItem>First Complex Data Item</ChildItem> </AComplexCollectionElement> <AComplexCollectionElement> <ChildItem>Second Complex Data Item</ChildItem> </AComplexCollectionElement> </MyRootObject> |
Read Sample | ||
String FilePath = Usage1.SamplePath + "Cardinality\\Samples\\Sample1.xml"; SampleRead(FilePath); public static void SampleRead(String FilePath) throws Exception { // Create object CardinalityLib.MyRootObject root = new CardinalityLib.MyRootObject(); // Load data into the object from a file root.fromXmlFile(FilePath); // Now we can look at the mandatory elements // These are simple they are always there, // and can be accessed without checking they exist first System.out.println("A Simple String Mandatory Element = " + root.getASimpleStringMandatoryElement()); System.out.println("A Simple Date Mandatory Element = " + root.getASimpleDateMandatoryElement().toString("s")); System.out.println("A Complex Mandatory Element = " + root.getAComplexMandatoryElement().getChildItem()); // Now we can look at the optional elements. // Because these may be missing in the xml document // we need to check that they exist before accessing them. // For primitives (string, ltxmllib20::CDateTime, Binary etc we have to use the // IsValidXXX mthods. // Note // ASimpleDateOptionalElement returns a DateTime object but // querying it when root.isValidASimpleDateOptionalElement() is false will // raise an exception. // GetAComplexMandatoryElement returns an object AComplexOptionalElement // this will be null if item is not present in the xml, there is not // IsValid method for it. if (root.isValidASimpleStringOptionalElement()) System.out.println("A Simple String Optional Element = " + root.getASimpleStringOptionalElement()); if (root.isValidASimpleDateOptionalElement()) System.out.println("A Simple Date Optional Element = " + root.getASimpleDateOptionalElement().toString("s")); if (root.getAComplexOptionalElement() != null) System.out.println("A Complex Optional Element = " + root.getAComplexOptionalElement().getChildItem()); // Now we can look at the collections of elements. // A collections object is always provided within the parent object // even if no of objects are always present in the xml document. for (int i = 0; i < root.getASimpleStringCollectionElement().size(); i++) System.out.println("A Simple String Collection Element = " + root.getASimpleStringCollectionElement().get(i)); for (int i = 0; i < root.getASimpleDateCollectionElement().size(); i++) System.out.println("A Simple Date Collection Element = " + root.getASimpleDateCollectionElement().get(i).toString("s")); for (int i = 0; i < root.getAComplexCollectionElement().size(); i++) System.out.println("A Simple String Collection Element = " + root.getAComplexCollectionElement().get(i).getChildItem());
|
Write Sample | |
// Create object CardinalityLib.MyRootObject root = new CardinalityLib.MyRootObject(); com.liquid_technologies.ltxmllib20.DateTime dt = null; // Mandatory items can just be set root.setASimpleStringMandatoryElement("Some Required Data"); root.getASimpleDateMandatoryElement().setDate((short)2003, (byte)11, (byte)23); root.getAComplexMandatoryElement().setChildItem("Some More Required Data"); // Optional primitives can also be set, but pay attention to objects // like XmlDateTime & BinaryData. They can be set but require the object // to be assigned, doing something like // root.ASimpleDateOptionalElement.setDate(2003, 11, 23); // will cause ASimpleDateOptionalElement to be read first, it is unassigned // and will raise an exception. // There are 2 ways around this, explicity make it valid // root.isValidASimpleDateOptionalElement(true); // root.getASimpleDateOptionalElement().setDate(2003, 11, 23); // or assign a valid object // root.setASimpleDateOptionalElement(ltxmllib20::CDateTime(2003, 11, 23)); // Also Note: if you have an existing primitive that you have set, and you no longre want it // to appear in the xml doxument, you can remove it using. // root.setValidASimpleDateOptionalElement(false); // We will demonstrate both techniques. root.setASimpleStringOptionalElement("Some Optional Data"); dt = new DateTime(); dt.setDate((short)2003, (byte)11, (byte)23); // See DateTime Sample for more infomation about dates... root.setASimpleDateOptionalElement(dt); // root.getASimpleDateOptionalElement() is now include in the xml document root.setValidASimpleDateOptionalElement(false); // root.getASimpleDateOptionalElement() is no longer include in the xml document // (as it was before we started messing with it.) root.setValidASimpleDateOptionalElement(true); root.getASimpleDateOptionalElement().setDate((short)2003, (byte)11, (byte)23); // root.getASimpleDateOptionalElement() is now include in the xml document again // Optional complex elements are more simple, they are either present or // they NULL. To start with optional complex elements are always null, so // we must assign one before we can use it. root.setAComplexOptionalElement(new CardinalityLib.AComplexOptionalElement()); root.getAComplexOptionalElement().setChildItem("Some More Optional Data"); // Collections are easy, as we said previously there is always a collection // created in the parent object, so we just need to add objects to it. root.getASimpleStringCollectionElement().add("First Data Item"); root.getASimpleStringCollectionElement().add("Second Data Item"); dt = new DateTime(); dt.setDate((short)2003, (byte)1, (byte)1); // See DateTime Sample for more infomation about dates... root.getASimpleDateCollectionElement().add(dt); dt = new DateTime(); dt.setDate((short)2003, (byte)1, (byte)2); // See DateTime Sample for more infomation about dates... root.getASimpleDateCollectionElement().add(dt); dt = new DateTime(); dt.setDate((short)2003, (byte)11, (byte)3); // See DateTime Sample for more infomation about dates... root.getASimpleDateCollectionElement().add(dt); // And for collections of Complex elements... CardinalityLib.AComplexCollectionElement elm = new CardinalityLib.AComplexCollectionElement(); // this adds a new object to the collection root.getAComplexCollectionElement().add(elm); elm.setChildItem("First Complex Data Item"); elm = new CardinalityLib.AComplexCollectionElement(); elm.setChildItem("Second Complex Data Item"); root.getAComplexCollectionElement().add(elm); // Now we can look at the XML from this object System.out.println(root.toXml(true, Formatting.INDENTED, Encoding.UTF8, EOLType.CRLF));
|
Cardinality.xsd |
<?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified"> <xs:element name="MyRootObject"> <xs:complexType> <xs:sequence> <xs:element name="ASimpleStringMandatoryElement" type="xs:string"/> <xs:element name="ASimpleDateMandatoryElement" type="xs:date"/> <xs:element name="AComplexMandatoryElement"> <xs:complexType> <xs:sequence> <xs:element name="ChildItem" type="xs:string"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="ASimpleStringOptionalElement" type="xs:string" minOccurs="0"/> <xs:element name="ASimpleDateOptionalElement" type="xs:date" minOccurs="0"/> <xs:element name="AComplexOptionalElement" minOccurs="0"> <xs:complexType> <xs:sequence> <xs:element name="ChildItem" type="xs:string"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="ASimpleStringCollectionElement" type="xs:string" minOccurs="0" maxOccurs="unbounded"/> <xs:element name="ASimpleDateCollectionElement" type="xs:date" minOccurs="0" maxOccurs="unbounded"/> <xs:element name="AComplexCollectionElement" minOccurs="0" maxOccurs="unbounded"> <xs:complexType> <xs:sequence> <xs:element name="ChildItem" type="xs:string"/> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:schema> |
Schema Diagrams |
|
MyRootObject.java |
package CardinalityLib; /********************************************************************************************** * 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: Cardinality.xsd **********************************************************************************************/ // <summary> // This class represents the Element MyRootObject // </summary> public class MyRootObject extends com.liquid_technologies.ltxmllib20.XmlGeneratedClass { private static final long serialVersionUID = 13L; // <summary> // Constructor for MyRootObject // </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 Cardinality.xsd // </remarks> public MyRootObject() { setElementName("MyRootObject"); init(); } public MyRootObject(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 Cardinality.xsd. // </remarks> @Override protected void init() { try { CardinalityLib.Registration.iRegistrationIndicator = 0; // causes registration to take place _aSimpleStringMandatoryElement = ""; _aSimpleDateMandatoryElement = new com.liquid_technologies.ltxmllib20.DateTime(com.liquid_technologies.ltxmllib20.DateTimeType.date); _aComplexMandatoryElement = new CardinalityLib.AComplexMandatoryElement("AComplexMandatoryElement"); _aSimpleStringOptionalElement = ""; _isValidASimpleStringOptionalElement = false; _aSimpleDateOptionalElement = new com.liquid_technologies.ltxmllib20.DateTime(com.liquid_technologies.ltxmllib20.DateTimeType.date); _isValidASimpleDateOptionalElement = false; _aComplexOptionalElement = null; _aSimpleStringCollectionElement = new CardinalityLib.XmlSimpleTypeCollection<java.lang.String>("ASimpleStringCollectionElement", "", com.liquid_technologies.ltxmllib20.Conversions.ConversionType.TYPE_STRING, 0, -1, null, com.liquid_technologies.ltxmllib20.WhitespaceRule.PRESERVE, new com.liquid_technologies.ltxmllib20.PrimitiveRestrictions("", -1, -1, "", "", "", "", -1, -1, -1)); _aSimpleDateCollectionElement = new CardinalityLib.XmlSimpleTypeCollection<com.liquid_technologies.ltxmllib20.DateTime>("ASimpleDateCollectionElement", "", com.liquid_technologies.ltxmllib20.Conversions.ConversionType.TYPE_DATE, 0, -1, null, com.liquid_technologies.ltxmllib20.WhitespaceRule.COLLAPSE, new com.liquid_technologies.ltxmllib20.PrimitiveRestrictions("", -1, -1, "", "", "", "", -1, -1, -1)); _aComplexCollectionElement = new CardinalityLib.XmlObjectCollection<CardinalityLib.AComplexCollectionElement>("AComplexCollectionElement", "", 0, -1, false, CardinalityLib.AComplexCollectionElement.class); // ##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 { CardinalityLib.MyRootObject newObject = (CardinalityLib.MyRootObject)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._aSimpleStringMandatoryElement = _aSimpleStringMandatoryElement; newObject._aSimpleDateMandatoryElement = (com.liquid_technologies.ltxmllib20.DateTime)_aSimpleDateMandatoryElement.clone(); newObject._aComplexMandatoryElement = null; if (_aComplexMandatoryElement != null) newObject._aComplexMandatoryElement = (CardinalityLib.AComplexMandatoryElement)_aComplexMandatoryElement.clone(); if (_isValidASimpleStringOptionalElement) newObject._aSimpleStringOptionalElement = _aSimpleStringOptionalElement; newObject._isValidASimpleStringOptionalElement = _isValidASimpleStringOptionalElement; if (_isValidASimpleDateOptionalElement) newObject._aSimpleDateOptionalElement = (com.liquid_technologies.ltxmllib20.DateTime)_aSimpleDateOptionalElement.clone(); newObject._isValidASimpleDateOptionalElement = _isValidASimpleDateOptionalElement; newObject._aComplexOptionalElement = null; if (_aComplexOptionalElement != null) newObject._aComplexOptionalElement = (CardinalityLib.AComplexOptionalElement)_aComplexOptionalElement.clone(); for(int i=0; i<_aSimpleStringCollectionElement.size(); i++) newObject._aSimpleStringCollectionElement.add(_aSimpleStringCollectionElement.get(i)); for(int i=0; i<_aSimpleDateCollectionElement.size(); i++) newObject._aSimpleDateCollectionElement.add((com.liquid_technologies.ltxmllib20.DateTime)_aSimpleDateCollectionElement.get(i).clone()); for(int i=0; i<_aComplexCollectionElement.size(); i++) newObject._aComplexCollectionElement.add((CardinalityLib.AComplexCollectionElement)_aComplexCollectionElement.get(i).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 "". // </remarks> public java.lang.String getASimpleStringMandatoryElement() throws com.liquid_technologies.ltxmllib20.exceptions.LtException { return _aSimpleStringMandatoryElement; } public void setASimpleStringMandatoryElement(java.lang.String value) throws com.liquid_technologies.ltxmllib20.exceptions.LtException { // Apply whitespace rules appropriately value = com.liquid_technologies.ltxmllib20.WhitespaceUtils.preserve(value); _aSimpleStringMandatoryElement = value; } protected java.lang.String _aSimpleStringMandatoryElement; // <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 new com.liquid_technologies.ltxmllib20.DateTime(com.liquid_technologies.ltxmllib20.DateTimeType.date). // </remarks> public com.liquid_technologies.ltxmllib20.DateTime getASimpleDateMandatoryElement() throws com.liquid_technologies.ltxmllib20.exceptions.LtException { return _aSimpleDateMandatoryElement; } public void setASimpleDateMandatoryElement(com.liquid_technologies.ltxmllib20.DateTime value) throws com.liquid_technologies.ltxmllib20.exceptions.LtException { _aSimpleDateMandatoryElement.setDateTime(value, _aSimpleDateMandatoryElement.getType()); } protected com.liquid_technologies.ltxmllib20.DateTime _aSimpleDateMandatoryElement; // <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 CardinalityLib.AComplexMandatoryElement getAComplexMandatoryElement() { return _aComplexMandatoryElement; } public void setAComplexMandatoryElement(CardinalityLib.AComplexMandatoryElement value) throws com.liquid_technologies.ltxmllib20.exceptions.LtException { throw_IfPropertyIsNull(value, "AComplexMandatoryElement"); if (value != null) setElementName(value.getBase(), "AComplexMandatoryElement"); // throw_IfElementNameDiffers(value, "AComplexMandatoryElement"); _aComplexMandatoryElement = value; } protected CardinalityLib.AComplexMandatoryElement _aComplexMandatoryElement; // <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 getASimpleStringOptionalElement() throws com.liquid_technologies.ltxmllib20.exceptions.LtException { if (_isValidASimpleStringOptionalElement == false) throw new com.liquid_technologies.ltxmllib20.exceptions.LtInvalidStateException("The Property ASimpleStringOptionalElement is not valid. Set ASimpleStringOptionalElementValid = true"); return _aSimpleStringOptionalElement; } public void setASimpleStringOptionalElement(java.lang.String value) throws com.liquid_technologies.ltxmllib20.exceptions.LtException { // Apply whitespace rules appropriately value = com.liquid_technologies.ltxmllib20.WhitespaceUtils.preserve(value); _isValidASimpleStringOptionalElement = true; _aSimpleStringOptionalElement = value; } // <summary> // Indicates if ASimpleStringOptionalElement contains a valid value. // </summary> // <remarks> // true if the value for ASimpleStringOptionalElement 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 ASimpleStringOptionalElement // will raise an exception. // </remarks> public boolean isValidASimpleStringOptionalElement() { return _isValidASimpleStringOptionalElement; } public void setValidASimpleStringOptionalElement(boolean value) throws com.liquid_technologies.ltxmllib20.exceptions.LtException { if (value != _isValidASimpleStringOptionalElement) { _aSimpleStringOptionalElement = ""; _isValidASimpleStringOptionalElement = value; } } protected boolean _isValidASimpleStringOptionalElement; protected java.lang.String _aSimpleStringOptionalElement; // <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 com.liquid_technologies.ltxmllib20.DateTime getASimpleDateOptionalElement() throws com.liquid_technologies.ltxmllib20.exceptions.LtException { if (_isValidASimpleDateOptionalElement == false) throw new com.liquid_technologies.ltxmllib20.exceptions.LtInvalidStateException("The Property ASimpleDateOptionalElement is not valid. Set ASimpleDateOptionalElementValid = true"); return _aSimpleDateOptionalElement; } public void setASimpleDateOptionalElement(com.liquid_technologies.ltxmllib20.DateTime value) throws com.liquid_technologies.ltxmllib20.exceptions.LtException { _isValidASimpleDateOptionalElement = true; _aSimpleDateOptionalElement.setDateTime(value, _aSimpleDateOptionalElement.getType()); } // <summary> // Indicates if ASimpleDateOptionalElement contains a valid value. // </summary> // <remarks> // true if the value for ASimpleDateOptionalElement is valid, false if not. // If this is set to true then the property is considered valid, and assigned its // default value (new com.liquid_technologies.ltxmllib20.DateTime(com.liquid_technologies.ltxmllib20.DateTimeType.date)). // If its set to false then its made invalid, and subsequent calls to get ASimpleDateOptionalElement // will raise an exception. // </remarks> public boolean isValidASimpleDateOptionalElement() { return _isValidASimpleDateOptionalElement; } public void setValidASimpleDateOptionalElement(boolean value) throws com.liquid_technologies.ltxmllib20.exceptions.LtException { if (value != _isValidASimpleDateOptionalElement) { _aSimpleDateOptionalElement = new com.liquid_technologies.ltxmllib20.DateTime(com.liquid_technologies.ltxmllib20.DateTimeType.date); _isValidASimpleDateOptionalElement = value; } } protected boolean _isValidASimpleDateOptionalElement; protected com.liquid_technologies.ltxmllib20.DateTime _aSimpleDateOptionalElement; // <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 CardinalityLib.AComplexOptionalElement getAComplexOptionalElement() { return _aComplexOptionalElement; } public void setAComplexOptionalElement(CardinalityLib.AComplexOptionalElement value) throws com.liquid_technologies.ltxmllib20.exceptions.LtException { if (value == null) _aComplexOptionalElement = null; else { setElementName(value.getBase(), "AComplexOptionalElement"); _aComplexOptionalElement = value; } } protected CardinalityLib.AComplexOptionalElement _aComplexOptionalElement; // <summary> // A collection of java.lang.Strings // </summary> // <remarks> // This property is represented as an Element in the XML. // This collection may contain 0 to Many java.lang.Strings. // </remarks> public CardinalityLib.XmlSimpleTypeCollection<java.lang.String> getASimpleStringCollectionElement() { return _aSimpleStringCollectionElement; } protected CardinalityLib.XmlSimpleTypeCollection<java.lang.String> _aSimpleStringCollectionElement; // <summary> // A collection of com.liquid_technologies.ltxmllib20.DateTimes // </summary> // <remarks> // This property is represented as an Element in the XML. // This collection may contain 0 to Many com.liquid_technologies.ltxmllib20.DateTimes. // </remarks> public CardinalityLib.XmlSimpleTypeCollection<com.liquid_technologies.ltxmllib20.DateTime> getASimpleDateCollectionElement() { return _aSimpleDateCollectionElement; } protected CardinalityLib.XmlSimpleTypeCollection<com.liquid_technologies.ltxmllib20.DateTime> _aSimpleDateCollectionElement; // <summary> // A collection of AComplexCollectionElements // </summary> // <remarks> // This property is represented as an Element in the XML. // This collection may contain 0 to Many objects. // </remarks> public CardinalityLib.XmlObjectCollection<CardinalityLib.AComplexCollectionElement> getAComplexCollectionElement() { return _aComplexCollectionElement; } protected CardinalityLib.XmlObjectCollection<CardinalityLib.AComplexCollectionElement> _aComplexCollectionElement; @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, "MyRootObject", "", 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("ASimpleStringMandatoryElement", "", findGetterMethod("CardinalityLib.MyRootObject", "getASimpleStringMandatoryElement"), findSetterMethod("CardinalityLib.MyRootObject", "setASimpleStringMandatoryElement", "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("ASimpleDateMandatoryElement", "", findGetterMethod("CardinalityLib.MyRootObject", "getASimpleDateMandatoryElement"), findSetterMethod("CardinalityLib.MyRootObject", "setASimpleDateMandatoryElement", "com.liquid_technologies.ltxmllib20.DateTime"), null, null, com.liquid_technologies.ltxmllib20.Conversions.ConversionType.TYPE_DATE, 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("AComplexMandatoryElement", "", findGetterMethod("CardinalityLib.MyRootObject", "getAComplexMandatoryElement"), findSetterMethod("CardinalityLib.MyRootObject", "setAComplexMandatoryElement", "CardinalityLib.AComplexMandatoryElement"), com.liquid_technologies.ltxmllib20.XmlObjectBase.XmlElementType.ELEMENT, CardinalityLib.AComplexMandatoryElement.class, true) ,new com.liquid_technologies.ltxmllib20.data.ElementInfoSeqPrimOpt("ASimpleStringOptionalElement", "", findGetterMethod("CardinalityLib.MyRootObject", "getASimpleStringOptionalElement"), findSetterMethod("CardinalityLib.MyRootObject", "setASimpleStringOptionalElement", "java.lang.String"), findGetterMethod("CardinalityLib.MyRootObject", "isValidASimpleStringOptionalElement"), 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("ASimpleDateOptionalElement", "", findGetterMethod("CardinalityLib.MyRootObject", "getASimpleDateOptionalElement"), findSetterMethod("CardinalityLib.MyRootObject", "setASimpleDateOptionalElement", "com.liquid_technologies.ltxmllib20.DateTime"), findGetterMethod("CardinalityLib.MyRootObject", "isValidASimpleDateOptionalElement"), null, null, com.liquid_technologies.ltxmllib20.Conversions.ConversionType.TYPE_DATE, 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.ElementInfoSeqClsOpt("AComplexOptionalElement", "", findGetterMethod("CardinalityLib.MyRootObject", "getAComplexOptionalElement"), findSetterMethod("CardinalityLib.MyRootObject", "setAComplexOptionalElement", "CardinalityLib.AComplexOptionalElement"), com.liquid_technologies.ltxmllib20.XmlObjectBase.XmlElementType.ELEMENT, CardinalityLib.AComplexOptionalElement.class) ,new com.liquid_technologies.ltxmllib20.data.ElementInfoSeqPrimCol("ASimpleStringCollectionElement", "", findGetterMethod("CardinalityLib.MyRootObject", "getASimpleStringCollectionElement")) ,new com.liquid_technologies.ltxmllib20.data.ElementInfoSeqPrimCol("ASimpleDateCollectionElement", "", findGetterMethod("CardinalityLib.MyRootObject", "getASimpleDateCollectionElement")) ,new com.liquid_technologies.ltxmllib20.data.ElementInfoSeqClsCol("AComplexCollectionElement", "", findGetterMethod("CardinalityLib.MyRootObject", "getAComplexCollectionElement"), com.liquid_technologies.ltxmllib20.XmlObjectBase.XmlElementType.ELEMENT) }; } 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 } |
AComplexCollectionElement.java |
package CardinalityLib; /********************************************************************************************** * 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: Cardinality.xsd **********************************************************************************************/ // <summary> // This class represents the ComplexType AComplexCollectionElement // </summary> public class AComplexCollectionElement extends com.liquid_technologies.ltxmllib20.XmlGeneratedClass { private static final long serialVersionUID = 13L; // <summary> // Constructor for AComplexCollectionElement // </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 Cardinality.xsd // </remarks> public AComplexCollectionElement() { setElementName("AComplexCollectionElement"); init(); } public AComplexCollectionElement(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 Cardinality.xsd. // </remarks> @Override protected void init() { try { CardinalityLib.Registration.iRegistrationIndicator = 0; // causes registration to take place _childItem = ""; // ##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 { CardinalityLib.AComplexCollectionElement newObject = (CardinalityLib.AComplexCollectionElement)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._childItem = _childItem; // ##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 getChildItem() throws com.liquid_technologies.ltxmllib20.exceptions.LtException { return _childItem; } public void setChildItem(java.lang.String value) throws com.liquid_technologies.ltxmllib20.exceptions.LtException { // Apply whitespace rules appropriately value = com.liquid_technologies.ltxmllib20.WhitespaceUtils.preserve(value); _childItem = value; } protected java.lang.String _childItem; @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, "AComplexCollectionElement", "", 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("ChildItem", "", findGetterMethod("CardinalityLib.AComplexCollectionElement", "getChildItem"), findSetterMethod("CardinalityLib.AComplexCollectionElement", "setChildItem", "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 } |
AComplexMandatoryElement.java |
package CardinalityLib; /********************************************************************************************** * 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: Cardinality.xsd **********************************************************************************************/ // <summary> // This class represents the ComplexType AComplexMandatoryElement // </summary> public class AComplexMandatoryElement extends com.liquid_technologies.ltxmllib20.XmlGeneratedClass { private static final long serialVersionUID = 13L; // <summary> // Constructor for AComplexMandatoryElement // </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 Cardinality.xsd // </remarks> public AComplexMandatoryElement() { setElementName("AComplexMandatoryElement"); init(); } public AComplexMandatoryElement(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 Cardinality.xsd. // </remarks> @Override protected void init() { try { CardinalityLib.Registration.iRegistrationIndicator = 0; // causes registration to take place _childItem = ""; // ##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 { CardinalityLib.AComplexMandatoryElement newObject = (CardinalityLib.AComplexMandatoryElement)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._childItem = _childItem; // ##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 getChildItem() throws com.liquid_technologies.ltxmllib20.exceptions.LtException { return _childItem; } public void setChildItem(java.lang.String value) throws com.liquid_technologies.ltxmllib20.exceptions.LtException { // Apply whitespace rules appropriately value = com.liquid_technologies.ltxmllib20.WhitespaceUtils.preserve(value); _childItem = value; } protected java.lang.String _childItem; @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, "AComplexMandatoryElement", "", 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("ChildItem", "", findGetterMethod("CardinalityLib.AComplexMandatoryElement", "getChildItem"), findSetterMethod("CardinalityLib.AComplexMandatoryElement", "setChildItem", "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 } |
AComplexOptionalElement.java |
package CardinalityLib; /********************************************************************************************** * 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: Cardinality.xsd **********************************************************************************************/ // <summary> // This class represents the ComplexType AComplexOptionalElement // </summary> public class AComplexOptionalElement extends com.liquid_technologies.ltxmllib20.XmlGeneratedClass { private static final long serialVersionUID = 13L; // <summary> // Constructor for AComplexOptionalElement // </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 Cardinality.xsd // </remarks> public AComplexOptionalElement() { setElementName("AComplexOptionalElement"); init(); } public AComplexOptionalElement(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 Cardinality.xsd. // </remarks> @Override protected void init() { try { CardinalityLib.Registration.iRegistrationIndicator = 0; // causes registration to take place _childItem = ""; // ##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 { CardinalityLib.AComplexOptionalElement newObject = (CardinalityLib.AComplexOptionalElement)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._childItem = _childItem; // ##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 getChildItem() throws com.liquid_technologies.ltxmllib20.exceptions.LtException { return _childItem; } public void setChildItem(java.lang.String value) throws com.liquid_technologies.ltxmllib20.exceptions.LtException { // Apply whitespace rules appropriately value = com.liquid_technologies.ltxmllib20.WhitespaceUtils.preserve(value); _childItem = value; } protected java.lang.String _childItem; @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, "AComplexOptionalElement", "", 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("ChildItem", "", findGetterMethod("CardinalityLib.AComplexOptionalElement", "getChildItem"), findSetterMethod("CardinalityLib.AComplexOptionalElement", "setChildItem", "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 } |
Main Menu | Samples List |