org.w3._1999.xhtml.FormContent Maven / Gradle / Ivy
Show all versions of quick Show documentation
//
// This file was generated by the Eclipse Implementation of JAXB, v3.0.2
// See https://eclipse-ee4j.github.io/jaxb-ri
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2024.08.16 at 09:36:55 AM MDT
//
package org.w3._1999.xhtml;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlElements;
import jakarta.xml.bind.annotation.XmlSeeAlso;
import jakarta.xml.bind.annotation.XmlType;
import org.jvnet.jaxb2_commons.lang.Equals2;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy2;
import org.jvnet.jaxb2_commons.lang.HashCode2;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy2;
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.ToString2;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy2;
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 Equals2, HashCode2, ToString2
{
@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 Jakarta XML Binding 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 Address }
* {@link Blockquote }
* {@link Del }
* {@link Div }
* {@link Dl }
* {@link Fieldset }
* {@link H1 }
* {@link H2 }
* {@link H3 }
* {@link H4 }
* {@link H5 }
* {@link H6 }
* {@link Hr }
* {@link Ins }
* {@link Noscript }
* {@link Ol }
* {@link P }
* {@link Pre }
* {@link Script }
* {@link Table }
* {@link Ul }
*
*
*/
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;
}
@Override
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, java.lang.Object object, EqualsStrategy2 strategy) {
if ((object == null)||(this.getClass()!= object.getClass())) {
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, ((this.pOrH1OrH2 != null)&&(!this.pOrH1OrH2 .isEmpty())), ((that.pOrH1OrH2 != null)&&(!that.pOrH1OrH2 .isEmpty())))) {
return false;
}
}
return true;
}
@Override
public boolean equals(java.lang.Object object) {
final EqualsStrategy2 strategy = JAXBEqualsStrategy.getInstance();
return equals(null, null, object, strategy);
}
@Override
public int hashCode(ObjectLocator locator, HashCodeStrategy2 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, ((this.pOrH1OrH2 != null)&&(!this.pOrH1OrH2 .isEmpty())));
}
return currentHashCode;
}
@Override
public int hashCode() {
final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.getInstance();
return this.hashCode(null, strategy);
}
@Override
public String toString() {
final ToStringStrategy2 strategy = JAXBToStringStrategy.getInstance();
final StringBuilder buffer = new StringBuilder();
append(null, buffer, strategy);
return buffer.toString();
}
@Override
public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) {
strategy.appendStart(locator, this, buffer);
appendFields(locator, buffer, strategy);
strategy.appendEnd(locator, this, buffer);
return buffer;
}
@Override
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) {
{
List thePOrH1OrH2;
thePOrH1OrH2 = (((this.pOrH1OrH2 != null)&&(!this.pOrH1OrH2 .isEmpty()))?this.getPOrH1OrH2():null);
strategy.appendField(locator, this, "pOrH1OrH2", buffer, thePOrH1OrH2, ((this.pOrH1OrH2 != null)&&(!this.pOrH1OrH2 .isEmpty())));
}
return buffer;
}
public void setPOrH1OrH2(List value) {
this.pOrH1OrH2 = value;
}
}