
org.w3._1999.xhtml.FormContent Maven / Gradle / Ivy
Show all versions of quick Show documentation
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2018.01.12 at 11:04:27 AM MST
//
package org.w3._1999.xhtml;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElements;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
import org.jvnet.jaxb2_commons.lang.Equals;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy;
import org.jvnet.jaxb2_commons.lang.HashCode;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy;
import org.jvnet.jaxb2_commons.lang.ToString;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;
/**
*
* form uses "Block" excluding form
*
*
* Java class for form.content complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="form.content">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <choice maxOccurs="unbounded" minOccurs="0">
* <choice>
* <element ref="{http://www.w3.org/1999/xhtml}p"/>
* <choice>
* <element ref="{http://www.w3.org/1999/xhtml}h1"/>
* <element ref="{http://www.w3.org/1999/xhtml}h2"/>
* <element ref="{http://www.w3.org/1999/xhtml}h3"/>
* <element ref="{http://www.w3.org/1999/xhtml}h4"/>
* <element ref="{http://www.w3.org/1999/xhtml}h5"/>
* <element ref="{http://www.w3.org/1999/xhtml}h6"/>
* </choice>
* <element ref="{http://www.w3.org/1999/xhtml}div"/>
* <choice>
* <element ref="{http://www.w3.org/1999/xhtml}ul"/>
* <element ref="{http://www.w3.org/1999/xhtml}ol"/>
* <element ref="{http://www.w3.org/1999/xhtml}dl"/>
* </choice>
* <choice>
* <element ref="{http://www.w3.org/1999/xhtml}pre"/>
* <element ref="{http://www.w3.org/1999/xhtml}hr"/>
* <element ref="{http://www.w3.org/1999/xhtml}blockquote"/>
* <element ref="{http://www.w3.org/1999/xhtml}address"/>
* </choice>
* <element ref="{http://www.w3.org/1999/xhtml}fieldset"/>
* <element ref="{http://www.w3.org/1999/xhtml}table"/>
* </choice>
* <choice>
* <element ref="{http://www.w3.org/1999/xhtml}noscript"/>
* <choice>
* <element ref="{http://www.w3.org/1999/xhtml}ins"/>
* <element ref="{http://www.w3.org/1999/xhtml}del"/>
* <element ref="{http://www.w3.org/1999/xhtml}script"/>
* </choice>
* </choice>
* </choice>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "form.content", propOrder = {
"pOrH1OrH2"
})
@XmlSeeAlso({
Form.class
})
public class FormContent implements Equals, HashCode, ToString
{
@XmlElements({
@XmlElement(name = "p", type = P.class),
@XmlElement(name = "h1", type = H1 .class),
@XmlElement(name = "h2", type = H2 .class),
@XmlElement(name = "h3", type = H3 .class),
@XmlElement(name = "h4", type = H4 .class),
@XmlElement(name = "h5", type = H5 .class),
@XmlElement(name = "h6", type = H6 .class),
@XmlElement(name = "div", type = Div.class),
@XmlElement(name = "ul", type = Ul.class),
@XmlElement(name = "ol", type = Ol.class),
@XmlElement(name = "dl", type = Dl.class),
@XmlElement(name = "pre", type = Pre.class),
@XmlElement(name = "hr", type = Hr.class),
@XmlElement(name = "blockquote", type = Blockquote.class),
@XmlElement(name = "address", type = Address.class),
@XmlElement(name = "fieldset", type = Fieldset.class),
@XmlElement(name = "table", type = Table.class),
@XmlElement(name = "noscript", type = Noscript.class),
@XmlElement(name = "ins", type = Ins.class),
@XmlElement(name = "del", type = Del.class),
@XmlElement(name = "script", type = Script.class)
})
protected List pOrH1OrH2;
/**
* Gets the value of the pOrH1OrH2 property.
*
*
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a set
method for the pOrH1OrH2 property.
*
*
* For example, to add a new item, do as follows:
*
* getPOrH1OrH2().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link P }
* {@link H1 }
* {@link H2 }
* {@link H3 }
* {@link H4 }
* {@link H5 }
* {@link H6 }
* {@link Div }
* {@link Ul }
* {@link Ol }
* {@link Dl }
* {@link Pre }
* {@link Hr }
* {@link Blockquote }
* {@link Address }
* {@link Fieldset }
* {@link Table }
* {@link Noscript }
* {@link Ins }
* {@link Del }
* {@link Script }
*
*
*/
public List getPOrH1OrH2() {
if (pOrH1OrH2 == null) {
pOrH1OrH2 = new ArrayList();
}
return this.pOrH1OrH2;
}
public FormContent withPOrH1OrH2(java.lang.Object... values) {
if (values!= null) {
for (java.lang.Object value: values) {
getPOrH1OrH2().add(value);
}
}
return this;
}
public FormContent withPOrH1OrH2(Collection values) {
if (values!= null) {
getPOrH1OrH2().addAll(values);
}
return this;
}
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, java.lang.Object object, EqualsStrategy strategy) {
if (!(object instanceof FormContent)) {
return false;
}
if (this == object) {
return true;
}
final FormContent that = ((FormContent) object);
{
List lhsPOrH1OrH2;
lhsPOrH1OrH2 = (((this.pOrH1OrH2 != null)&&(!this.pOrH1OrH2 .isEmpty()))?this.getPOrH1OrH2():null);
List rhsPOrH1OrH2;
rhsPOrH1OrH2 = (((that.pOrH1OrH2 != null)&&(!that.pOrH1OrH2 .isEmpty()))?that.getPOrH1OrH2():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "pOrH1OrH2", lhsPOrH1OrH2), LocatorUtils.property(thatLocator, "pOrH1OrH2", rhsPOrH1OrH2), lhsPOrH1OrH2, rhsPOrH1OrH2)) {
return false;
}
}
return true;
}
public boolean equals(java.lang.Object object) {
final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE;
return equals(null, null, object, strategy);
}
public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) {
int currentHashCode = 1;
{
List thePOrH1OrH2;
thePOrH1OrH2 = (((this.pOrH1OrH2 != null)&&(!this.pOrH1OrH2 .isEmpty()))?this.getPOrH1OrH2():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "pOrH1OrH2", thePOrH1OrH2), currentHashCode, thePOrH1OrH2);
}
return currentHashCode;
}
public int hashCode() {
final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE;
return this.hashCode(null, strategy);
}
public String toString() {
final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE;
final StringBuilder buffer = new StringBuilder();
append(null, buffer, strategy);
return buffer.toString();
}
public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
strategy.appendStart(locator, this, buffer);
appendFields(locator, buffer, strategy);
strategy.appendEnd(locator, this, buffer);
return buffer;
}
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
{
List thePOrH1OrH2;
thePOrH1OrH2 = (((this.pOrH1OrH2 != null)&&(!this.pOrH1OrH2 .isEmpty()))?this.getPOrH1OrH2():null);
strategy.appendField(locator, this, "pOrH1OrH2", buffer, thePOrH1OrH2);
}
return buffer;
}
}