org.mixer2.jaxb.xhtml.Inline Maven / Gradle / Ivy
Show all versions of mixer2 Show documentation
package org.mixer2.jaxb.xhtml;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlElementRefs;
import javax.xml.bind.annotation.XmlMixed;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
import org.jvnet.jaxb2_commons.lang.CopyStrategy;
import org.jvnet.jaxb2_commons.lang.CopyTo;
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.JAXBCopyStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;
import org.mixer2.xhtml.AbstractJaxb;
/**
*
* "Inline" covers inline or "text-level" element
*
*
* Java class for Inline complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="Inline">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <choice maxOccurs="unbounded" minOccurs="0">
* <group ref="{http://www.w3.org/1999/xhtml}inline"/>
* <group ref="{http://www.w3.org/1999/xhtml}misc.inline"/>
* </choice>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Inline", propOrder = {
"content"
})
@XmlSeeAlso({
P.class,
Bdi.class,
Rp.class,
Rt.class,
Sup.class,
Sub.class,
Font.class,
Small.class,
Big.class,
Summary.class,
Caption.class,
Legend.class,
Label.class,
Output.class,
Acronym.class,
Abbr.class,
Cite.class,
Var.class,
Kbd.class,
Samp.class,
Q.class,
Code.class,
Dfn.class,
Strong.class,
Em.class,
Strike.class,
S.class,
U.class,
B.class,
I.class,
Tt.class,
Dt.class,
H6 .class,
H5 .class,
H4 .class,
H3 .class,
H2 .class,
H1 .class,
Bdo.class,
Span.class
})
public class Inline
extends AbstractJaxb
implements Cloneable, CopyTo, Equals, HashCode
{
@XmlElementRefs({
@XmlElementRef(name = "object", namespace = "http://www.w3.org/1999/xhtml", type = org.mixer2.jaxb.xhtml.Object.class),
@XmlElementRef(name = "bdi", namespace = "http://www.w3.org/1999/xhtml", type = Bdi.class),
@XmlElementRef(name = "ins", namespace = "http://www.w3.org/1999/xhtml", type = Ins.class),
@XmlElementRef(name = "textarea", namespace = "http://www.w3.org/1999/xhtml", type = Textarea.class),
@XmlElementRef(name = "em", namespace = "http://www.w3.org/1999/xhtml", type = Em.class),
@XmlElementRef(name = "iframe", namespace = "http://www.w3.org/1999/xhtml", type = Iframe.class),
@XmlElementRef(name = "var", namespace = "http://www.w3.org/1999/xhtml", type = Var.class),
@XmlElementRef(name = "big", namespace = "http://www.w3.org/1999/xhtml", type = Big.class),
@XmlElementRef(name = "map", namespace = "http://www.w3.org/1999/xhtml", type = Map.class),
@XmlElementRef(name = "rp", namespace = "http://www.w3.org/1999/xhtml", type = Rp.class),
@XmlElementRef(name = "b", namespace = "http://www.w3.org/1999/xhtml", type = B.class),
@XmlElementRef(name = "a", namespace = "http://www.w3.org/1999/xhtml", type = A.class),
@XmlElementRef(name = "time", namespace = "http://www.w3.org/1999/xhtml", type = Time.class),
@XmlElementRef(name = "button", namespace = "http://www.w3.org/1999/xhtml", type = Button.class),
@XmlElementRef(name = "span", namespace = "http://www.w3.org/1999/xhtml", type = Span.class),
@XmlElementRef(name = "dfn", namespace = "http://www.w3.org/1999/xhtml", type = Dfn.class),
@XmlElementRef(name = "script", namespace = "http://www.w3.org/1999/xhtml", type = Script.class),
@XmlElementRef(name = "s", namespace = "http://www.w3.org/1999/xhtml", type = S.class),
@XmlElementRef(name = "bdo", namespace = "http://www.w3.org/1999/xhtml", type = Bdo.class),
@XmlElementRef(name = "acronym", namespace = "http://www.w3.org/1999/xhtml", type = Acronym.class),
@XmlElementRef(name = "output", namespace = "http://www.w3.org/1999/xhtml", type = Output.class),
@XmlElementRef(name = "progress", namespace = "http://www.w3.org/1999/xhtml", type = Progress.class),
@XmlElementRef(name = "strike", namespace = "http://www.w3.org/1999/xhtml", type = Strike.class),
@XmlElementRef(name = "sub", namespace = "http://www.w3.org/1999/xhtml", type = Sub.class),
@XmlElementRef(name = "label", namespace = "http://www.w3.org/1999/xhtml", type = Label.class),
@XmlElementRef(name = "tt", namespace = "http://www.w3.org/1999/xhtml", type = Tt.class),
@XmlElementRef(name = "embed", namespace = "http://www.w3.org/1999/xhtml", type = Embed.class),
@XmlElementRef(name = "samp", namespace = "http://www.w3.org/1999/xhtml", type = Samp.class),
@XmlElementRef(name = "video", namespace = "http://www.w3.org/1999/xhtml", type = Video.class),
@XmlElementRef(name = "u", namespace = "http://www.w3.org/1999/xhtml", type = U.class),
@XmlElementRef(name = "br", namespace = "http://www.w3.org/1999/xhtml", type = Br.class),
@XmlElementRef(name = "mark", namespace = "http://www.w3.org/1999/xhtml", type = Mark.class),
@XmlElementRef(name = "kbd", namespace = "http://www.w3.org/1999/xhtml", type = Kbd.class),
@XmlElementRef(name = "cite", namespace = "http://www.w3.org/1999/xhtml", type = Cite.class),
@XmlElementRef(name = "code", namespace = "http://www.w3.org/1999/xhtml", type = Code.class),
@XmlElementRef(name = "abbr", namespace = "http://www.w3.org/1999/xhtml", type = Abbr.class),
@XmlElementRef(name = "select", namespace = "http://www.w3.org/1999/xhtml", type = Select.class),
@XmlElementRef(name = "audio", namespace = "http://www.w3.org/1999/xhtml", type = Audio.class),
@XmlElementRef(name = "source", namespace = "http://www.w3.org/1999/xhtml", type = Source.class),
@XmlElementRef(name = "q", namespace = "http://www.w3.org/1999/xhtml", type = Q.class),
@XmlElementRef(name = "command", namespace = "http://www.w3.org/1999/xhtml", type = Command.class),
@XmlElementRef(name = "small", namespace = "http://www.w3.org/1999/xhtml", type = Small.class),
@XmlElementRef(name = "keygen", namespace = "http://www.w3.org/1999/xhtml", type = Keygen.class),
@XmlElementRef(name = "applet", namespace = "http://www.w3.org/1999/xhtml", type = Applet.class),
@XmlElementRef(name = "input", namespace = "http://www.w3.org/1999/xhtml", type = Input.class),
@XmlElementRef(name = "sup", namespace = "http://www.w3.org/1999/xhtml", type = Sup.class),
@XmlElementRef(name = "strong", namespace = "http://www.w3.org/1999/xhtml", type = Strong.class),
@XmlElementRef(name = "i", namespace = "http://www.w3.org/1999/xhtml", type = I.class),
@XmlElementRef(name = "meter", namespace = "http://www.w3.org/1999/xhtml", type = Meter.class),
@XmlElementRef(name = "wbr", namespace = "http://www.w3.org/1999/xhtml", type = Wbr.class),
@XmlElementRef(name = "basefont", namespace = "http://www.w3.org/1999/xhtml", type = Basefont.class),
@XmlElementRef(name = "font", namespace = "http://www.w3.org/1999/xhtml", type = Font.class),
@XmlElementRef(name = "rt", namespace = "http://www.w3.org/1999/xhtml", type = Rt.class),
@XmlElementRef(name = "track", namespace = "http://www.w3.org/1999/xhtml", type = Track.class),
@XmlElementRef(name = "ruby", namespace = "http://www.w3.org/1999/xhtml", type = Ruby.class),
@XmlElementRef(name = "img", namespace = "http://www.w3.org/1999/xhtml", type = Img.class),
@XmlElementRef(name = "del", namespace = "http://www.w3.org/1999/xhtml", type = Del.class)
})
@XmlMixed
protected List content;
/**
*
* "Inline" covers inline or "text-level" element
* 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 JAXB 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 org.mixer2.jaxb.xhtml.Object }
* {@link Bdi }
* {@link Ins }
* {@link Textarea }
* {@link Em }
* {@link Iframe }
* {@link Var }
* {@link Big }
* {@link Map }
* {@link Rp }
* {@link B }
* {@link A }
* {@link Time }
* {@link Button }
* {@link Span }
* {@link Dfn }
* {@link Script }
* {@link S }
* {@link Bdo }
* {@link Acronym }
* {@link Output }
* {@link Progress }
* {@link Strike }
* {@link Sub }
* {@link Label }
* {@link Tt }
* {@link Embed }
* {@link Samp }
* {@link Video }
* {@link U }
* {@link Br }
* {@link Mark }
* {@link Kbd }
* {@link Cite }
* {@link Code }
* {@link Abbr }
* {@link Select }
* {@link Audio }
* {@link Source }
* {@link String }
* {@link Q }
* {@link Command }
* {@link Small }
* {@link Keygen }
* {@link Applet }
* {@link Input }
* {@link Sup }
* {@link Strong }
* {@link I }
* {@link Meter }
* {@link Wbr }
* {@link Basefont }
* {@link Font }
* {@link Rt }
* {@link Track }
* {@link Ruby }
* {@link Img }
* {@link Del }
*
*
*/
public List getContent() {
if (content == null) {
content = new ArrayList();
}
return this.content;
}
public boolean isSetContent() {
return ((this.content!= null)&&(!this.content.isEmpty()));
}
public void unsetContent() {
this.content = null;
}
public java.lang.Object clone() {
return copyTo(createNewInstance());
}
public java.lang.Object copyTo(java.lang.Object target) {
final CopyStrategy strategy = JAXBCopyStrategy.INSTANCE;
return copyTo(null, target, strategy);
}
public java.lang.Object copyTo(ObjectLocator locator, java.lang.Object target, CopyStrategy strategy) {
final java.lang.Object draftCopy = ((target == null)?createNewInstance():target);
if (draftCopy instanceof Inline) {
final Inline copy = ((Inline) draftCopy);
if (this.isSetContent()) {
List sourceContent;
sourceContent = (this.isSetContent()?this.getContent():null);
@SuppressWarnings("unchecked")
List copyContent = ((List ) strategy.copy(LocatorUtils.property(locator, "content", sourceContent), sourceContent));
copy.unsetContent();
if (copyContent!= null) {
List uniqueContentl = copy.getContent();
uniqueContentl.addAll(copyContent);
}
} else {
copy.unsetContent();
}
}
return draftCopy;
}
public java.lang.Object createNewInstance() {
return new Inline();
}
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, java.lang.Object object, EqualsStrategy strategy) {
if (!(object instanceof Inline)) {
return false;
}
if (this == object) {
return true;
}
final Inline that = ((Inline) object);
{
List lhsContent;
lhsContent = (this.isSetContent()?this.getContent():null);
List rhsContent;
rhsContent = (that.isSetContent()?that.getContent():null);
if (!strategy.equals(LocatorUtils.property(thisLocator, "content", lhsContent), LocatorUtils.property(thatLocator, "content", rhsContent), lhsContent, rhsContent)) {
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 theContent;
theContent = (this.isSetContent()?this.getContent():null);
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "content", theContent), currentHashCode, theContent);
}
return currentHashCode;
}
public int hashCode() {
final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE;
return this.hashCode(null, strategy);
}
}