org.w3._1999.xhtml.AContent 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: 2023.12.06 at 03:09:41 PM MST
//
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.XmlElementRef;
import jakarta.xml.bind.annotation.XmlElementRefs;
import jakarta.xml.bind.annotation.XmlMixed;
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;
/**
*
* a elements use "Inline" excluding a
*
*
* Java class for a.content complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="a.content">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <choice maxOccurs="unbounded" minOccurs="0">
* <choice>
* <choice>
* <element ref="{http://www.w3.org/1999/xhtml}br"/>
* <element ref="{http://www.w3.org/1999/xhtml}span"/>
* <element ref="{http://www.w3.org/1999/xhtml}bdo"/>
* <element ref="{http://www.w3.org/1999/xhtml}map"/>
* </choice>
* <element ref="{http://www.w3.org/1999/xhtml}object"/>
* <element ref="{http://www.w3.org/1999/xhtml}img"/>
* </choice>
* <choice>
* <element ref="{http://www.w3.org/1999/xhtml}tt"/>
* <element ref="{http://www.w3.org/1999/xhtml}i"/>
* <element ref="{http://www.w3.org/1999/xhtml}b"/>
* <element ref="{http://www.w3.org/1999/xhtml}big"/>
* <element ref="{http://www.w3.org/1999/xhtml}small"/>
* </choice>
* <choice>
* <element ref="{http://www.w3.org/1999/xhtml}em"/>
* <element ref="{http://www.w3.org/1999/xhtml}strong"/>
* <element ref="{http://www.w3.org/1999/xhtml}dfn"/>
* <element ref="{http://www.w3.org/1999/xhtml}code"/>
* <element ref="{http://www.w3.org/1999/xhtml}q"/>
* <element ref="{http://www.w3.org/1999/xhtml}samp"/>
* <element ref="{http://www.w3.org/1999/xhtml}kbd"/>
* <element ref="{http://www.w3.org/1999/xhtml}var"/>
* <element ref="{http://www.w3.org/1999/xhtml}cite"/>
* <element ref="{http://www.w3.org/1999/xhtml}abbr"/>
* <element ref="{http://www.w3.org/1999/xhtml}acronym"/>
* <element ref="{http://www.w3.org/1999/xhtml}sub"/>
* <element ref="{http://www.w3.org/1999/xhtml}sup"/>
* </choice>
* <choice>
* <element ref="{http://www.w3.org/1999/xhtml}input"/>
* <element ref="{http://www.w3.org/1999/xhtml}select"/>
* <element ref="{http://www.w3.org/1999/xhtml}textarea"/>
* <element ref="{http://www.w3.org/1999/xhtml}label"/>
* <element ref="{http://www.w3.org/1999/xhtml}button"/>
* </choice>
* <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>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "a.content", propOrder = {
"content"
})
@XmlSeeAlso({
A.class
})
public class AContent implements Equals2, HashCode2, ToString2
{
@XmlElementRefs({
@XmlElementRef(name = "br", namespace = "http://www.w3.org/1999/xhtml", type = Br.class, required = false),
@XmlElementRef(name = "span", namespace = "http://www.w3.org/1999/xhtml", type = Span.class, required = false),
@XmlElementRef(name = "bdo", namespace = "http://www.w3.org/1999/xhtml", type = Bdo.class, required = false),
@XmlElementRef(name = "map", namespace = "http://www.w3.org/1999/xhtml", type = Map.class, required = false),
@XmlElementRef(name = "object", namespace = "http://www.w3.org/1999/xhtml", type = org.w3._1999.xhtml.Object.class, required = false),
@XmlElementRef(name = "img", namespace = "http://www.w3.org/1999/xhtml", type = Img.class, required = false),
@XmlElementRef(name = "tt", namespace = "http://www.w3.org/1999/xhtml", type = Tt.class, required = false),
@XmlElementRef(name = "i", namespace = "http://www.w3.org/1999/xhtml", type = I.class, required = false),
@XmlElementRef(name = "b", namespace = "http://www.w3.org/1999/xhtml", type = B.class, required = false),
@XmlElementRef(name = "big", namespace = "http://www.w3.org/1999/xhtml", type = Big.class, required = false),
@XmlElementRef(name = "small", namespace = "http://www.w3.org/1999/xhtml", type = Small.class, required = false),
@XmlElementRef(name = "em", namespace = "http://www.w3.org/1999/xhtml", type = Em.class, required = false),
@XmlElementRef(name = "strong", namespace = "http://www.w3.org/1999/xhtml", type = Strong.class, required = false),
@XmlElementRef(name = "dfn", namespace = "http://www.w3.org/1999/xhtml", type = Dfn.class, required = false),
@XmlElementRef(name = "code", namespace = "http://www.w3.org/1999/xhtml", type = Code.class, required = false),
@XmlElementRef(name = "q", namespace = "http://www.w3.org/1999/xhtml", type = Q.class, required = false),
@XmlElementRef(name = "samp", namespace = "http://www.w3.org/1999/xhtml", type = Samp.class, required = false),
@XmlElementRef(name = "kbd", namespace = "http://www.w3.org/1999/xhtml", type = Kbd.class, required = false),
@XmlElementRef(name = "var", namespace = "http://www.w3.org/1999/xhtml", type = Var.class, required = false),
@XmlElementRef(name = "cite", namespace = "http://www.w3.org/1999/xhtml", type = Cite.class, required = false),
@XmlElementRef(name = "abbr", namespace = "http://www.w3.org/1999/xhtml", type = Abbr.class, required = false),
@XmlElementRef(name = "acronym", namespace = "http://www.w3.org/1999/xhtml", type = Acronym.class, required = false),
@XmlElementRef(name = "sub", namespace = "http://www.w3.org/1999/xhtml", type = Sub.class, required = false),
@XmlElementRef(name = "sup", namespace = "http://www.w3.org/1999/xhtml", type = Sup.class, required = false),
@XmlElementRef(name = "input", namespace = "http://www.w3.org/1999/xhtml", type = Input.class, required = false),
@XmlElementRef(name = "select", namespace = "http://www.w3.org/1999/xhtml", type = Select.class, required = false),
@XmlElementRef(name = "textarea", namespace = "http://www.w3.org/1999/xhtml", type = Textarea.class, required = false),
@XmlElementRef(name = "label", namespace = "http://www.w3.org/1999/xhtml", type = Label.class, required = false),
@XmlElementRef(name = "button", namespace = "http://www.w3.org/1999/xhtml", type = Button.class, required = false),
@XmlElementRef(name = "ins", namespace = "http://www.w3.org/1999/xhtml", type = Ins.class, required = false),
@XmlElementRef(name = "del", namespace = "http://www.w3.org/1999/xhtml", type = Del.class, required = false),
@XmlElementRef(name = "script", namespace = "http://www.w3.org/1999/xhtml", type = Script.class, required = false)
})
@XmlMixed
protected List content;
/**
*
* a elements use "Inline" excluding a
* Gets the value of the content 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 content property.
*
*
* For example, to add a new item, do as follows:
*
* getContent().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link String }
* {@link Abbr }
* {@link Acronym }
* {@link B }
* {@link Bdo }
* {@link Big }
* {@link Br }
* {@link Button }
* {@link Cite }
* {@link Code }
* {@link Del }
* {@link Dfn }
* {@link Em }
* {@link I }
* {@link Img }
* {@link Input }
* {@link Ins }
* {@link Kbd }
* {@link Label }
* {@link Map }
* {@link org.w3._1999.xhtml.Object }
* {@link Q }
* {@link Samp }
* {@link Script }
* {@link Select }
* {@link Small }
* {@link Span }
* {@link Strong }
* {@link Sub }
* {@link Sup }
* {@link Textarea }
* {@link Tt }
* {@link Var }
*
*
*/
public List getContent() {
if (content == null) {
content = new ArrayList();
}
return this.content;
}
public AContent withContent(java.lang.Object... values) {
if (values!= null) {
for (java.lang.Object value: values) {
getContent().add(value);
}
}
return this;
}
public AContent withContent(Collection values) {
if (values!= null) {
getContent().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 AContent that = ((AContent) object);
{
List lhsContent;
lhsContent = (((this.content!= null)&&(!this.content.isEmpty()))?this.getContent():null);
List rhsContent;
rhsContent = (((that.content!= null)&&(!that.content.isEmpty()))?that.getContent():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "content", lhsContent), LocatorUtils.property(thatLocator, "content", rhsContent), lhsContent, rhsContent, ((this.content!= null)&&(!this.content.isEmpty())), ((that.content!= null)&&(!that.content.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 theContent;
theContent = (((this.content!= null)&&(!this.content.isEmpty()))?this.getContent():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "content", theContent), currentHashCode, theContent, ((this.content!= null)&&(!this.content.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 theContent;
theContent = (((this.content!= null)&&(!this.content.isEmpty()))?this.getContent():null);
strategy.appendField(locator, this, "content", buffer, theContent, ((this.content!= null)&&(!this.content.isEmpty())));
}
return buffer;
}
}