org.jaxsb.www.sample.simple.xAA Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sample Show documentation
Show all versions of sample Show documentation
Sample projects illustrating the use of the JAX-SB framework.
/**
* Autogenerated by JAX-SB Compiler (2.1.5)
*
* THIS FILE SHOULD NOT BE EDITED
* @generated
*/
package org.jaxsb.www.sample.simple;
@java.lang.SuppressWarnings("all")
public class xAA extends org.jaxsb.runtime.Schema {
static {
_$$registerType(
org.jaxsb.www.sample.simple.xAA.$FruitType.NAME,
org.jaxsb.www.sample.simple.xAA.$FruitType.class);
_$$registerSchemaLocation(
org.jaxsb.www.sample.simple.xAA.$FruitType.NAME.getNamespaceURI(),
org.jaxsb.www.sample.simple.xAA.$FruitType.class,
"org.jaxsb.www.sample.simple.xsd");
_$$registerElement(
org.jaxsb.www.sample.simple.xAA.Fruit.NAME, org.jaxsb.www.sample.simple.xAA.Fruit.class);
_$$registerSchemaLocation(
org.jaxsb.www.sample.simple.xAA.Fruit.NAME.getNamespaceURI(),
org.jaxsb.www.sample.simple.xAA.Fruit.class,
"org.jaxsb.www.sample.simple.xsd");
_$$registerType(
org.jaxsb.www.sample.simple.xAA.$FruitBasketType.NAME,
org.jaxsb.www.sample.simple.xAA.$FruitBasketType.class);
_$$registerSchemaLocation(
org.jaxsb.www.sample.simple.xAA.$FruitBasketType.NAME.getNamespaceURI(),
org.jaxsb.www.sample.simple.xAA.$FruitBasketType.class,
"org.jaxsb.www.sample.simple.xsd");
_$$registerElement(
org.jaxsb.www.sample.simple.xAA.FruitBasket.NAME,
org.jaxsb.www.sample.simple.xAA.FruitBasket.class);
_$$registerSchemaLocation(
org.jaxsb.www.sample.simple.xAA.FruitBasket.NAME.getNamespaceURI(),
org.jaxsb.www.sample.simple.xAA.FruitBasket.class,
"org.jaxsb.www.sample.simple.xsd");
}
@org.jaxsb.runtime.QName(
namespaceURI = "http://www.jaxsb.org/sample/simple.xsd",
localPart = "fruitType",
prefix = "simple")
public abstract static class $FruitType extends org.w3.www._2001.XMLSchema.yAA.$AnySimpleType
implements org.jaxsb.runtime.ComplexType {
private static final javax.xml.namespace.QName NAME =
getClassQName(org.jaxsb.www.sample.simple.xAA.$FruitType.class);
protected static $FruitType newInstance(
final org.jaxsb.www.sample.simple.xAA.$FruitType inherits) {
return new org.jaxsb.www.sample.simple.xAA.$FruitType() {
@java.lang.Override
protected org.jaxsb.www.sample.simple.xAA.$FruitType inherits() {
return inherits;
}
};
}
private org.jaxsb.runtime.AttributeAudit
_name$Local =
__$$registerAttributeAudit(
new org.jaxsb.runtime.AttributeAudit<
org.jaxsb.www.sample.simple.xAA.$FruitType.Name$>(
this,
null,
new javax.xml.namespace.QName(
"http://www.jaxsb.org/sample/simple.xsd", "name", "simple"),
false,
true));
private org.jaxsb.runtime.AttributeAudit
_dry$Local =
__$$registerAttributeAudit(
new org.jaxsb.runtime.AttributeAudit<
org.jaxsb.www.sample.simple.xAA.$FruitType.Dry$>(
this,
null,
new javax.xml.namespace.QName(
"http://www.jaxsb.org/sample/simple.xsd", "dry", "simple"),
false,
false));
private org.jaxsb.runtime.AttributeAudit
_sweet$Local =
__$$registerAttributeAudit(
new org.jaxsb.runtime.AttributeAudit<
org.jaxsb.www.sample.simple.xAA.$FruitType.Sweet$>(
this,
new org.jaxsb.www.sample.simple.xAA.$FruitType.Sweet$(
org.w3.www._2001.XMLSchema.yAA.$Boolean.parse("false")),
new javax.xml.namespace.QName(
"http://www.jaxsb.org/sample/simple.xsd", "sweet", "simple"),
false,
false));
private org.jaxsb.runtime.AttributeAudit
_sour$Local =
__$$registerAttributeAudit(
new org.jaxsb.runtime.AttributeAudit<
org.jaxsb.www.sample.simple.xAA.$FruitType.Sour$>(
this,
new org.jaxsb.www.sample.simple.xAA.$FruitType.Sour$(
org.w3.www._2001.XMLSchema.yAA.$Boolean.parse("false")),
new javax.xml.namespace.QName(
"http://www.jaxsb.org/sample/simple.xsd", "sour", "simple"),
false,
false));
/**
* Declaration of complexType that represents a generic "simple fruit", i.e. "A single ripened
* ovary from a single flower.".
*
* @author Source generated with: org.jaxsb
*/
public $FruitType(final org.jaxsb.www.sample.simple.xAA.$FruitType copy) {
super(copy);
this._name$Local = copy._name$Local;
this._dry$Local = copy._dry$Local;
this._sweet$Local = copy._sweet$Local;
this._sour$Local = copy._sour$Local;
}
/**
* Declaration of complexType that represents a generic "simple fruit", i.e. "A single ripened
* ovary from a single flower.".
*
* @author Source generated with: org.jaxsb
*/
public $FruitType(final java.io.Serializable text) {
super(text);
}
/**
* Declaration of complexType that represents a generic "simple fruit", i.e. "A single ripened
* ovary from a single flower.".
*
* @author Source generated with: org.jaxsb
*/
public $FruitType() {
super();
}
@org.jaxsb.runtime.AttributeSpec(use = "required")
@org.jaxsb.runtime.QName(
namespaceURI = "http://www.jaxsb.org/sample/simple.xsd",
localPart = "name",
prefix = "simple")
public void setName$(org.jaxsb.www.sample.simple.xAA.$FruitType.Name$ _name$Local) {
_$$setAttribute(this._name$Local, this, _name$Local);
}
@org.jaxsb.runtime.QName(
namespaceURI = "http://www.jaxsb.org/sample/simple.xsd",
localPart = "name",
prefix = "simple")
public org.jaxsb.www.sample.simple.xAA.$FruitType.Name$ getName$() {
return _name$Local.getAttribute();
}
@org.jaxsb.runtime.AttributeSpec(use = "optional")
@org.jaxsb.runtime.QName(
namespaceURI = "http://www.jaxsb.org/sample/simple.xsd",
localPart = "dry",
prefix = "simple")
public void setDry$(org.jaxsb.www.sample.simple.xAA.$FruitType.Dry$ _dry$Local) {
_$$setAttribute(this._dry$Local, this, _dry$Local);
}
@org.jaxsb.runtime.QName(
namespaceURI = "http://www.jaxsb.org/sample/simple.xsd",
localPart = "dry",
prefix = "simple")
public org.jaxsb.www.sample.simple.xAA.$FruitType.Dry$ getDry$() {
return _dry$Local.getAttribute();
}
@org.jaxsb.runtime.AttributeSpec(use = "optional")
@org.jaxsb.runtime.QName(
namespaceURI = "http://www.jaxsb.org/sample/simple.xsd",
localPart = "sweet",
prefix = "simple")
public void setSweet$(org.jaxsb.www.sample.simple.xAA.$FruitType.Sweet$ _sweet$Local) {
_$$setAttribute(this._sweet$Local, this, _sweet$Local);
}
@org.jaxsb.runtime.QName(
namespaceURI = "http://www.jaxsb.org/sample/simple.xsd",
localPart = "sweet",
prefix = "simple")
public org.jaxsb.www.sample.simple.xAA.$FruitType.Sweet$ getSweet$() {
return _sweet$Local.getAttribute();
}
@org.jaxsb.runtime.AttributeSpec(use = "optional")
@org.jaxsb.runtime.QName(
namespaceURI = "http://www.jaxsb.org/sample/simple.xsd",
localPart = "sour",
prefix = "simple")
public void setSour$(org.jaxsb.www.sample.simple.xAA.$FruitType.Sour$ _sour$Local) {
_$$setAttribute(this._sour$Local, this, _sour$Local);
}
@org.jaxsb.runtime.QName(
namespaceURI = "http://www.jaxsb.org/sample/simple.xsd",
localPart = "sour",
prefix = "simple")
public org.jaxsb.www.sample.simple.xAA.$FruitType.Sour$ getSour$() {
return _sour$Local.getAttribute();
}
@java.lang.Override
protected abstract org.jaxsb.www.sample.simple.xAA.$FruitType inherits();
@java.lang.Override
public javax.xml.namespace.QName name() {
return name(_$$inheritsInstance());
}
@java.lang.Override
public javax.xml.namespace.QName type() {
return NAME;
}
@java.lang.Override
public java.util.Iterator extends org.w3.www._2001.XMLSchema.yAA.$AnySimpleType>
attributeIterator() {
return super.attributeIterator();
}
@java.lang.Override
public java.util.Iterator elementIterator() {
return super.elementIterator();
}
@java.lang.Override
public org.jaxsb.runtime.BindingList extends org.jaxsb.runtime.Binding> fetchChild(
final javax.xml.namespace.QName name) {
return super.fetchChild(name);
}
@java.lang.Override
protected org.w3c.dom.Element marshal() throws org.jaxsb.runtime.MarshalException {
org.w3c.dom.Element root = createElementNS(name().getNamespaceURI(), name().getLocalPart());
org.w3c.dom.Element node = marshal(root, name(), type(_$$inheritsInstance()));
if (org.jaxsb.runtime.BindingValidator.getSystemValidator() != null)
org.jaxsb.runtime.BindingValidator.getSystemValidator().validateMarshal(node);
return node;
}
@java.lang.Override
protected org.w3c.dom.Element marshal(
final org.w3c.dom.Element parent,
final javax.xml.namespace.QName name,
final javax.xml.namespace.QName type)
throws org.jaxsb.runtime.MarshalException {
org.w3c.dom.Element node = super.marshal(parent, name, type);
_name$Local.marshal(node);
_dry$Local.marshal(node);
_sweet$Local.marshal(node);
_sour$Local.marshal(node);
return node;
}
@java.lang.Override
protected boolean parseAttribute(final org.w3c.dom.Attr attribute) {
if (attribute == null || XMLNS.getLocalPart().equals(attribute.getPrefix())) {
return true;
}
if (attribute.getNamespaceURI() == null && "name".equals(attribute.getLocalName())) {
return _$$setAttribute(
this._name$Local,
this,
(org.jaxsb.www.sample.simple.xAA.$FruitType.Name$)
org.jaxsb.runtime.Binding._$$parseAttr(
org.jaxsb.www.sample.simple.xAA.$FruitType.Name$.class,
attribute.getOwnerElement(),
attribute));
}
if (attribute.getNamespaceURI() == null && "dry".equals(attribute.getLocalName())) {
return _$$setAttribute(
this._dry$Local,
this,
(org.jaxsb.www.sample.simple.xAA.$FruitType.Dry$)
org.jaxsb.runtime.Binding._$$parseAttr(
org.jaxsb.www.sample.simple.xAA.$FruitType.Dry$.class,
attribute.getOwnerElement(),
attribute));
}
if (attribute.getNamespaceURI() == null && "sweet".equals(attribute.getLocalName())) {
return _$$setAttribute(
this._sweet$Local,
this,
(org.jaxsb.www.sample.simple.xAA.$FruitType.Sweet$)
org.jaxsb.runtime.Binding._$$parseAttr(
org.jaxsb.www.sample.simple.xAA.$FruitType.Sweet$.class,
attribute.getOwnerElement(),
attribute));
}
if (attribute.getNamespaceURI() == null && "sour".equals(attribute.getLocalName())) {
return _$$setAttribute(
this._sour$Local,
this,
(org.jaxsb.www.sample.simple.xAA.$FruitType.Sour$)
org.jaxsb.runtime.Binding._$$parseAttr(
org.jaxsb.www.sample.simple.xAA.$FruitType.Sour$.class,
attribute.getOwnerElement(),
attribute));
}
return super.parseAttribute(attribute);
}
@java.lang.Override
protected boolean parseElement(final org.w3c.dom.Element element)
throws org.openjax.xml.api.ValidationException {
return super.parseElement(element);
}
public boolean isNull() {
return super.isNull();
}
@java.lang.Override
public org.jaxsb.www.sample.simple.xAA.$FruitType clone() {
final org.jaxsb.www.sample.simple.xAA.$FruitType clone =
(org.jaxsb.www.sample.simple.xAA.$FruitType) super.clone();
clone._name$Local = _name$Local.clone(clone);
clone._dry$Local = _dry$Local.clone(clone);
clone._sweet$Local = _sweet$Local.clone(clone);
clone._sour$Local = _sour$Local.clone(clone);
return clone;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (this == obj) return true;
if (!(obj instanceof org.jaxsb.www.sample.simple.xAA.$FruitType)) return _$$failEquals();
final org.jaxsb.www.sample.simple.xAA.$FruitType that =
(org.jaxsb.www.sample.simple.xAA.$FruitType) obj;
if (_name$Local != null ? !_name$Local.equals(that._name$Local) : that._name$Local != null)
return _$$failEquals();
if (_dry$Local != null ? !_dry$Local.equals(that._dry$Local) : that._dry$Local != null)
return _$$failEquals();
if (_sweet$Local != null
? !_sweet$Local.equals(that._sweet$Local)
: that._sweet$Local != null) return _$$failEquals();
if (_sour$Local != null ? !_sour$Local.equals(that._sour$Local) : that._sour$Local != null)
return _$$failEquals();
return super.equals(obj);
}
@java.lang.Override
public int hashCode() {
int hashCode = super.hashCode();
hashCode += _name$Local != null ? _name$Local.hashCode() : -1;
hashCode += _dry$Local != null ? _dry$Local.hashCode() : -1;
hashCode += _sweet$Local != null ? _sweet$Local.hashCode() : -1;
hashCode += _sour$Local != null ? _sour$Local.hashCode() : -1;
return hashCode;
}
@org.jaxsb.runtime.QName(
namespaceURI = "http://www.jaxsb.org/sample/simple.xsd",
localPart = "name",
prefix = "simple")
public static class Name$ extends org.w3.www._2001.XMLSchema.yAA.$nCName
implements org.jaxsb.runtime.Attribute, org.jaxsb.runtime.SimpleType {
private static final javax.xml.namespace.QName NAME =
getClassQName(org.jaxsb.www.sample.simple.xAA.$FruitType.Name$.class);
public Name$(final org.w3.www._2001.XMLSchema.yAA.$nCName copy) {
super(copy);
}
public Name$(final java.lang.String text) {
super(text);
}
public Name$() {
super();
}
@java.lang.Override
protected org.w3.www._2001.XMLSchema.yAA.$nCName inherits() {
return this;
}
@java.lang.Override
public javax.xml.namespace.QName name() {
return NAME;
}
@java.lang.Override
public java.lang.String text() {
return (java.lang.String) super.text();
}
public void text(final java.lang.String text) {
super.text(text);
}
@java.lang.Override
public org.w3.www._2001.XMLSchema.yAA.$nCName clone() {
return (org.jaxsb.www.sample.simple.xAA.$FruitType.Name$) super.clone();
}
}
@org.jaxsb.runtime.QName(
namespaceURI = "http://www.jaxsb.org/sample/simple.xsd",
localPart = "dry",
prefix = "simple")
public static class Dry$ extends org.w3.www._2001.XMLSchema.yAA.$Boolean
implements org.jaxsb.runtime.Attribute, org.jaxsb.runtime.SimpleType {
private static final javax.xml.namespace.QName NAME =
getClassQName(org.jaxsb.www.sample.simple.xAA.$FruitType.Dry$.class);
public Dry$(final org.w3.www._2001.XMLSchema.yAA.$Boolean copy) {
super(copy);
}
public Dry$(final java.lang.Boolean text) {
super(text);
}
public Dry$() {
super();
}
@java.lang.Override
protected org.w3.www._2001.XMLSchema.yAA.$Boolean inherits() {
return this;
}
@java.lang.Override
public javax.xml.namespace.QName name() {
return NAME;
}
@java.lang.Override
public java.lang.Boolean text() {
return (java.lang.Boolean) super.text();
}
public void text(final java.lang.Boolean text) {
super.text(text);
}
@java.lang.Override
public org.w3.www._2001.XMLSchema.yAA.$Boolean clone() {
return (org.jaxsb.www.sample.simple.xAA.$FruitType.Dry$) super.clone();
}
}
@org.jaxsb.runtime.QName(
namespaceURI = "http://www.jaxsb.org/sample/simple.xsd",
localPart = "sweet",
prefix = "simple")
public static class Sweet$ extends org.w3.www._2001.XMLSchema.yAA.$Boolean
implements org.jaxsb.runtime.Attribute, org.jaxsb.runtime.SimpleType {
private static final javax.xml.namespace.QName NAME =
getClassQName(org.jaxsb.www.sample.simple.xAA.$FruitType.Sweet$.class);
public Sweet$(final org.w3.www._2001.XMLSchema.yAA.$Boolean copy) {
super(copy);
}
public Sweet$(final java.lang.Boolean text) {
super(text);
}
public Sweet$() {
super();
}
@java.lang.Override
protected org.w3.www._2001.XMLSchema.yAA.$Boolean inherits() {
return this;
}
@java.lang.Override
public javax.xml.namespace.QName name() {
return NAME;
}
@java.lang.Override
public java.lang.Boolean text() {
return (java.lang.Boolean) super.text();
}
public void text(final java.lang.Boolean text) {
super.text(text);
}
@java.lang.Override
public org.w3.www._2001.XMLSchema.yAA.$Boolean clone() {
return (org.jaxsb.www.sample.simple.xAA.$FruitType.Sweet$) super.clone();
}
}
@org.jaxsb.runtime.QName(
namespaceURI = "http://www.jaxsb.org/sample/simple.xsd",
localPart = "sour",
prefix = "simple")
public static class Sour$ extends org.w3.www._2001.XMLSchema.yAA.$Boolean
implements org.jaxsb.runtime.Attribute, org.jaxsb.runtime.SimpleType {
private static final javax.xml.namespace.QName NAME =
getClassQName(org.jaxsb.www.sample.simple.xAA.$FruitType.Sour$.class);
public Sour$(final org.w3.www._2001.XMLSchema.yAA.$Boolean copy) {
super(copy);
}
public Sour$(final java.lang.Boolean text) {
super(text);
}
public Sour$() {
super();
}
@java.lang.Override
protected org.w3.www._2001.XMLSchema.yAA.$Boolean inherits() {
return this;
}
@java.lang.Override
public javax.xml.namespace.QName name() {
return NAME;
}
@java.lang.Override
public java.lang.Boolean text() {
return (java.lang.Boolean) super.text();
}
public void text(final java.lang.Boolean text) {
super.text(text);
}
@java.lang.Override
public org.w3.www._2001.XMLSchema.yAA.$Boolean clone() {
return (org.jaxsb.www.sample.simple.xAA.$FruitType.Sour$) super.clone();
}
}
}
@org.jaxsb.runtime.QName(
namespaceURI = "http://www.jaxsb.org/sample/simple.xsd",
localPart = "fruit",
prefix = "simple")
public static class Fruit extends org.jaxsb.www.sample.simple.xAA.$FruitType
implements org.jaxsb.runtime.ComplexType, org.jaxsb.runtime.Element {
private static final javax.xml.namespace.QName NAME =
new javax.xml.namespace.QName("http://www.jaxsb.org/sample/simple.xsd", "fruit", "simple");
/**
* An instantiable element representing the simpleFruit.
*
* @author Source generated with: org.jaxsb
*/
public Fruit(final org.jaxsb.www.sample.simple.xAA.$FruitType copy) {
super(copy);
}
/**
* An instantiable element representing the simpleFruit.
*
* @author Source generated with: org.jaxsb
*/
public Fruit() {
super();
}
@java.lang.Override
protected org.jaxsb.www.sample.simple.xAA.$FruitType inherits() {
return this;
}
@java.lang.Override
public javax.xml.namespace.QName name() {
return NAME;
}
@java.lang.Override
public java.util.Iterator extends org.w3.www._2001.XMLSchema.yAA.$AnySimpleType>
attributeIterator() {
return super.attributeIterator();
}
@java.lang.Override
public java.util.Iterator elementIterator() {
return super.elementIterator();
}
@java.lang.Override
public org.jaxsb.runtime.BindingList extends org.jaxsb.runtime.Binding> fetchChild(
final javax.xml.namespace.QName name) {
return super.fetchChild(name);
}
@java.lang.Override
protected org.w3c.dom.Attr marshalAttr(
final java.lang.String name, final org.w3c.dom.Element parent)
throws org.jaxsb.runtime.MarshalException {
return super.marshalAttr(name, parent);
}
@java.lang.Override
public org.w3c.dom.Element marshal() throws org.jaxsb.runtime.MarshalException {
org.w3c.dom.Element root = createElementNS(name().getNamespaceURI(), name().getLocalPart());
org.w3c.dom.Element node = marshal(root, name(), type(_$$inheritsInstance()));
_$$marshalElements(node);
if (org.jaxsb.runtime.BindingValidator.getSystemValidator() != null)
org.jaxsb.runtime.BindingValidator.getSystemValidator().validateMarshal(node);
return node;
}
@java.lang.Override
protected org.w3c.dom.Element marshal(
final org.w3c.dom.Element parent,
final javax.xml.namespace.QName name,
final javax.xml.namespace.QName type)
throws org.jaxsb.runtime.MarshalException {
final org.w3c.dom.Element node = super.marshal(parent, name, type);
return node;
}
public boolean isNull() {
return super.isNull();
}
@java.lang.Override
public org.jaxsb.www.sample.simple.xAA.Fruit clone() {
return (org.jaxsb.www.sample.simple.xAA.Fruit) super.clone();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (this == obj) return true;
if (!(obj instanceof org.jaxsb.www.sample.simple.xAA.$FruitType)) return _$$failEquals();
return super.equals(obj);
}
@java.lang.Override
public int hashCode() {
int hashCode = super.hashCode();
return hashCode;
}
}
@org.jaxsb.runtime.QName(
namespaceURI = "http://www.jaxsb.org/sample/simple.xsd",
localPart = "fruitBasketType",
prefix = "simple")
public abstract static class $FruitBasketType
extends org.w3.www._2001.XMLSchema.yAA.$AnySimpleType
implements org.jaxsb.runtime.ComplexType {
private static final javax.xml.namespace.QName NAME =
getClassQName(org.jaxsb.www.sample.simple.xAA.$FruitBasketType.class);
protected static $FruitBasketType newInstance(
final org.jaxsb.www.sample.simple.xAA.$FruitBasketType inherits) {
return new org.jaxsb.www.sample.simple.xAA.$FruitBasketType() {
@java.lang.Override
protected org.jaxsb.www.sample.simple.xAA.$FruitBasketType inherits() {
return inherits;
}
};
}
private org.jaxsb.runtime.ElementAudit
_fruitsLocal =
new org.jaxsb.runtime.ElementAudit<
org.jaxsb.www.sample.simple.xAA.$FruitBasketType.Fruits>(
org.jaxsb.www.sample.simple.xAA.$FruitBasketType.Fruits.class,
this,
null,
new javax.xml.namespace.QName(
"http://www.jaxsb.org/sample/simple.xsd", "fruits", "simple"),
new javax.xml.namespace.QName(
"http://www.w3.org/2001/XMLSchema", "anySimpleType", "simple"),
true,
false,
0,
1);
/**
* Declaration of complexType that represents a type of "basket" that may contain "fruit".
*
* @author Source generated with: org.jaxsb
*/
public $FruitBasketType(final org.jaxsb.www.sample.simple.xAA.$FruitBasketType copy) {
super(copy);
this._fruitsLocal = copy._fruitsLocal;
}
/**
* Declaration of complexType that represents a type of "basket" that may contain "fruit".
*
* @author Source generated with: org.jaxsb
*/
public $FruitBasketType(final java.io.Serializable text) {
super(text);
}
/**
* Declaration of complexType that represents a type of "basket" that may contain "fruit".
*
* @author Source generated with: org.jaxsb
*/
public $FruitBasketType() {
super();
}
@org.jaxsb.runtime.ElementSpec(minOccurs = 0, maxOccurs = 1)
@org.jaxsb.runtime.QName(
namespaceURI = "http://www.jaxsb.org/sample/simple.xsd",
localPart = "fruits",
prefix = "simple")
public org.jaxsb.www.sample.simple.xAA.$FruitBasketType.Fruits setFruits(
final org.jaxsb.www.sample.simple.xAA.$FruitBasketType.Fruits _fruitsLocal) {
_$$addElement(this._fruitsLocal, _fruitsLocal);
return _fruitsLocal;
}
@org.jaxsb.runtime.QName(
namespaceURI = "http://www.jaxsb.org/sample/simple.xsd",
localPart = "fruits",
prefix = "simple")
public org.jaxsb.www.sample.simple.xAA.$FruitBasketType.Fruits getFruits() {
return _fruitsLocal.getElement();
}
@java.lang.Override
protected abstract org.jaxsb.www.sample.simple.xAA.$FruitBasketType inherits();
@java.lang.Override
public javax.xml.namespace.QName name() {
return name(_$$inheritsInstance());
}
@java.lang.Override
public javax.xml.namespace.QName type() {
return NAME;
}
@java.lang.Override
public java.util.Iterator extends org.w3.www._2001.XMLSchema.yAA.$AnySimpleType>
attributeIterator() {
return super.attributeIterator();
}
@java.lang.Override
public java.util.Iterator elementIterator() {
return super.elementIterator();
}
@java.lang.Override
public org.jaxsb.runtime.BindingList extends org.jaxsb.runtime.Binding> fetchChild(
final javax.xml.namespace.QName name) {
return super.fetchChild(name);
}
@java.lang.Override
protected org.w3c.dom.Element marshal() throws org.jaxsb.runtime.MarshalException {
org.w3c.dom.Element root = createElementNS(name().getNamespaceURI(), name().getLocalPart());
org.w3c.dom.Element node = marshal(root, name(), type(_$$inheritsInstance()));
_$$marshalElements(node);
if (org.jaxsb.runtime.BindingValidator.getSystemValidator() != null)
org.jaxsb.runtime.BindingValidator.getSystemValidator().validateMarshal(node);
return node;
}
@java.lang.Override
protected org.w3c.dom.Element marshal(
final org.w3c.dom.Element parent,
final javax.xml.namespace.QName name,
final javax.xml.namespace.QName type)
throws org.jaxsb.runtime.MarshalException {
org.w3c.dom.Element node = super.marshal(parent, name, type);
return node;
}
@java.lang.Override
protected boolean parseAttribute(final org.w3c.dom.Attr attribute) {
if (attribute == null || XMLNS.getLocalPart().equals(attribute.getPrefix())) {
return true;
}
return super.parseAttribute(attribute);
}
@java.lang.Override
protected boolean parseElement(final org.w3c.dom.Element element)
throws org.openjax.xml.api.ValidationException {
if ("http://www.jaxsb.org/sample/simple.xsd".equals(element.getNamespaceURI())
&& "fruits".equals(element.getLocalName())) {
return _$$addElement(
this._fruitsLocal,
(org.jaxsb.www.sample.simple.xAA.$FruitBasketType.Fruits)
org.jaxsb.runtime.Binding.parse(
element, org.jaxsb.www.sample.simple.xAA.$FruitBasketType.Fruits.class));
}
if (org.jaxsb.runtime.Binding._$$iSsubstitutionGroup(
new javax.xml.namespace.QName(element.getNamespaceURI(), element.getLocalName()),
"http://www.jaxsb.org/sample/simple.xsd",
"fruits")) {
return _$$addElement(
this._fruitsLocal,
(org.jaxsb.www.sample.simple.xAA.$FruitBasketType.Fruits)
org.jaxsb.runtime.Binding.parse(element));
}
return super.parseElement(element);
}
public boolean isNull() {
return super.isNull();
}
@java.lang.Override
public org.jaxsb.www.sample.simple.xAA.$FruitBasketType clone() {
final org.jaxsb.www.sample.simple.xAA.$FruitBasketType clone =
(org.jaxsb.www.sample.simple.xAA.$FruitBasketType) super.clone();
clone._fruitsLocal = _fruitsLocal == null ? null : clone.getAudit(_fruitsLocal);
return clone;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (this == obj) return true;
if (!(obj instanceof org.jaxsb.www.sample.simple.xAA.$FruitBasketType))
return _$$failEquals();
return super.equals(obj);
}
@java.lang.Override
public int hashCode() {
int hashCode = super.hashCode();
hashCode += _fruitsLocal != null ? _fruitsLocal.hashCode() : -1;
return hashCode;
}
@org.jaxsb.runtime.QName(
namespaceURI = "http://www.jaxsb.org/sample/simple.xsd",
localPart = "fruits",
prefix = "simple")
public static class Fruits extends org.w3.www._2001.XMLSchema.yAA.$AnySimpleType
implements org.jaxsb.runtime.ComplexType, org.jaxsb.runtime.Element {
private static final javax.xml.namespace.QName NAME =
new javax.xml.namespace.QName(
"http://www.jaxsb.org/sample/simple.xsd", "fruits", "simple");
private org.jaxsb.runtime.ElementAudit
_simplefruitRef =
new org.jaxsb.runtime.ElementAudit(
org.jaxsb.www.sample.simple.xAA.$FruitType.class,
this,
null,
new javax.xml.namespace.QName(
"http://www.jaxsb.org/sample/simple.xsd", "fruit", "simple"),
new javax.xml.namespace.QName(
"http://www.jaxsb.org/sample/simple.xsd", "fruitType", "simple"),
true,
false,
0,
2147483647);
/**
* An example of a ref element.
*
* @author Source generated with: org.jaxsb
*/
public Fruits(final org.jaxsb.www.sample.simple.xAA.$FruitBasketType.Fruits copy) {
super(copy);
org.jaxsb.www.sample.simple.xAA.$FruitBasketType.Fruits binding = copy;
this._simplefruitRef = binding._simplefruitRef;
}
/**
* An example of a ref element.
*
* @author Source generated with: org.jaxsb
*/
public Fruits() {
super();
}
@org.jaxsb.runtime.ElementSpec(minOccurs = 0, maxOccurs = 2147483647)
@org.jaxsb.runtime.QName(
namespaceURI = "http://www.jaxsb.org/sample/simple.xsd",
localPart = "fruit",
prefix = "simple")
public org.jaxsb.www.sample.simple.xAA.$FruitType addSimpleFruit(
final org.jaxsb.www.sample.simple.xAA.$FruitType _simplefruitRef) {
_$$addElement(this._simplefruitRef, _simplefruitRef);
return _simplefruitRef;
}
@org.jaxsb.runtime.QName(
namespaceURI = "http://www.jaxsb.org/sample/simple.xsd",
localPart = "fruit",
prefix = "simple")
public org.jaxsb.runtime.BindingList
getSimpleFruit() {
return _simplefruitRef.getElements();
}
public org.jaxsb.www.sample.simple.xAA.$FruitType getSimpleFruit(final int index) {
final java.util.List values = getSimpleFruit();
return values != null && -1 < index && index < values.size()
? values.get(index)
: (org.jaxsb.www.sample.simple.xAA.Fruit)
NULL(org.jaxsb.www.sample.simple.xAA.Fruit.class);
}
@java.lang.Override
protected org.jaxsb.www.sample.simple.xAA.$FruitBasketType.Fruits inherits() {
return this;
}
@java.lang.Override
public javax.xml.namespace.QName name() {
return NAME;
}
@java.lang.Override
public java.util.Iterator extends org.w3.www._2001.XMLSchema.yAA.$AnySimpleType>
attributeIterator() {
return super.attributeIterator();
}
@java.lang.Override
public java.util.Iterator elementIterator() {
return super.elementIterator();
}
@java.lang.Override
public org.jaxsb.runtime.BindingList extends org.jaxsb.runtime.Binding> fetchChild(
final javax.xml.namespace.QName name) {
return super.fetchChild(name);
}
@java.lang.Override
protected org.w3c.dom.Element marshal() throws org.jaxsb.runtime.MarshalException {
org.w3c.dom.Element root = createElementNS(name().getNamespaceURI(), name().getLocalPart());
org.w3c.dom.Element node = marshal(root, name(), type(_$$inheritsInstance()));
_$$marshalElements(node);
if (org.jaxsb.runtime.BindingValidator.getSystemValidator() != null)
org.jaxsb.runtime.BindingValidator.getSystemValidator().validateMarshal(node);
return node;
}
@java.lang.Override
protected org.w3c.dom.Element marshal(
final org.w3c.dom.Element parent,
final javax.xml.namespace.QName name,
final javax.xml.namespace.QName type)
throws org.jaxsb.runtime.MarshalException {
final org.w3c.dom.Element node = super.marshal(parent, name, type);
return node;
}
@java.lang.Override
protected boolean parseElement(final org.w3c.dom.Element element)
throws org.openjax.xml.api.ValidationException {
if ("http://www.jaxsb.org/sample/simple.xsd".equals(element.getNamespaceURI())
&& "fruit".equals(element.getLocalName())) {
return _$$addElement(
this._simplefruitRef,
(org.jaxsb.www.sample.simple.xAA.$FruitType)
org.jaxsb.runtime.Binding.parse(
element, org.jaxsb.www.sample.simple.xAA.Fruit.class));
}
if (org.jaxsb.runtime.Binding._$$iSsubstitutionGroup(
new javax.xml.namespace.QName(element.getNamespaceURI(), element.getLocalName()),
"http://www.jaxsb.org/sample/simple.xsd",
"fruit")) {
return _$$addElement(
this._simplefruitRef,
(org.jaxsb.www.sample.simple.xAA.$FruitType)
org.jaxsb.runtime.Binding.parse(element));
}
return super.parseElement(element);
}
public boolean isNull() {
return super.isNull();
}
@java.lang.Override
public org.jaxsb.www.sample.simple.xAA.$FruitBasketType.Fruits clone() {
return (org.jaxsb.www.sample.simple.xAA.$FruitBasketType.Fruits) super.clone();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (this == obj) return true;
if (!(obj instanceof org.jaxsb.www.sample.simple.xAA.$FruitBasketType.Fruits))
return _$$failEquals();
return true;
}
@java.lang.Override
public int hashCode() {
int hashCode = super.hashCode();
hashCode += _simplefruitRef != null ? _simplefruitRef.hashCode() : -1;
return hashCode;
}
}
}
@org.jaxsb.runtime.QName(
namespaceURI = "http://www.jaxsb.org/sample/simple.xsd",
localPart = "fruitBasket",
prefix = "simple")
public static class FruitBasket extends org.jaxsb.www.sample.simple.xAA.$FruitBasketType
implements org.jaxsb.runtime.ComplexType, org.jaxsb.runtime.Element {
private static final javax.xml.namespace.QName NAME =
new javax.xml.namespace.QName(
"http://www.jaxsb.org/sample/simple.xsd", "fruitBasket", "simple");
/**
* An instantiable element that represents a generic basket of basketType.
*
* @author Source generated with: org.jaxsb
*/
public FruitBasket(final org.jaxsb.www.sample.simple.xAA.$FruitBasketType copy) {
super(copy);
}
/**
* An instantiable element that represents a generic basket of basketType.
*
* @author Source generated with: org.jaxsb
*/
public FruitBasket() {
super();
}
@java.lang.Override
protected org.jaxsb.www.sample.simple.xAA.$FruitBasketType inherits() {
return this;
}
@java.lang.Override
public javax.xml.namespace.QName name() {
return NAME;
}
@java.lang.Override
public java.util.Iterator extends org.w3.www._2001.XMLSchema.yAA.$AnySimpleType>
attributeIterator() {
return super.attributeIterator();
}
@java.lang.Override
public java.util.Iterator elementIterator() {
return super.elementIterator();
}
@java.lang.Override
public org.jaxsb.runtime.BindingList extends org.jaxsb.runtime.Binding> fetchChild(
final javax.xml.namespace.QName name) {
return super.fetchChild(name);
}
@java.lang.Override
protected org.w3c.dom.Attr marshalAttr(
final java.lang.String name, final org.w3c.dom.Element parent)
throws org.jaxsb.runtime.MarshalException {
return super.marshalAttr(name, parent);
}
@java.lang.Override
public org.w3c.dom.Element marshal() throws org.jaxsb.runtime.MarshalException {
org.w3c.dom.Element root = createElementNS(name().getNamespaceURI(), name().getLocalPart());
org.w3c.dom.Element node = marshal(root, name(), type(_$$inheritsInstance()));
_$$marshalElements(node);
if (org.jaxsb.runtime.BindingValidator.getSystemValidator() != null)
org.jaxsb.runtime.BindingValidator.getSystemValidator().validateMarshal(node);
return node;
}
@java.lang.Override
protected org.w3c.dom.Element marshal(
final org.w3c.dom.Element parent,
final javax.xml.namespace.QName name,
final javax.xml.namespace.QName type)
throws org.jaxsb.runtime.MarshalException {
final org.w3c.dom.Element node = super.marshal(parent, name, type);
return node;
}
public boolean isNull() {
return super.isNull();
}
@java.lang.Override
public org.jaxsb.www.sample.simple.xAA.FruitBasket clone() {
return (org.jaxsb.www.sample.simple.xAA.FruitBasket) super.clone();
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (this == obj) return true;
if (!(obj instanceof org.jaxsb.www.sample.simple.xAA.$FruitBasketType))
return _$$failEquals();
return super.equals(obj);
}
@java.lang.Override
public int hashCode() {
int hashCode = super.hashCode();
return hashCode;
}
}
}