org.w3._1999.xhtml.Head 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.05.02 at 09:57:28 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.XmlAttribute;
import jakarta.xml.bind.annotation.XmlElementRef;
import jakarta.xml.bind.annotation.XmlElementRefs;
import jakarta.xml.bind.annotation.XmlID;
import jakarta.xml.bind.annotation.XmlRootElement;
import jakarta.xml.bind.annotation.XmlSchemaType;
import jakarta.xml.bind.annotation.XmlType;
import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter;
import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
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;
/**
* Java class for anonymous complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <sequence>
* <choice maxOccurs="unbounded" minOccurs="0">
* <element ref="{http://www.w3.org/1999/xhtml}script"/>
* <element ref="{http://www.w3.org/1999/xhtml}style"/>
* <element ref="{http://www.w3.org/1999/xhtml}meta"/>
* <element ref="{http://www.w3.org/1999/xhtml}link"/>
* <element ref="{http://www.w3.org/1999/xhtml}object"/>
* </choice>
* </sequence>
* <choice>
* <sequence>
* <element ref="{http://www.w3.org/1999/xhtml}title"/>
* <sequence>
* <choice maxOccurs="unbounded" minOccurs="0">
* <element ref="{http://www.w3.org/1999/xhtml}script"/>
* <element ref="{http://www.w3.org/1999/xhtml}style"/>
* <element ref="{http://www.w3.org/1999/xhtml}meta"/>
* <element ref="{http://www.w3.org/1999/xhtml}link"/>
* <element ref="{http://www.w3.org/1999/xhtml}object"/>
* </choice>
* </sequence>
* <sequence minOccurs="0">
* <element ref="{http://www.w3.org/1999/xhtml}base"/>
* <sequence>
* <choice maxOccurs="unbounded" minOccurs="0">
* <element ref="{http://www.w3.org/1999/xhtml}script"/>
* <element ref="{http://www.w3.org/1999/xhtml}style"/>
* <element ref="{http://www.w3.org/1999/xhtml}meta"/>
* <element ref="{http://www.w3.org/1999/xhtml}link"/>
* <element ref="{http://www.w3.org/1999/xhtml}object"/>
* </choice>
* </sequence>
* </sequence>
* </sequence>
* <sequence>
* <element ref="{http://www.w3.org/1999/xhtml}base"/>
* <sequence>
* <choice maxOccurs="unbounded" minOccurs="0">
* <element ref="{http://www.w3.org/1999/xhtml}script"/>
* <element ref="{http://www.w3.org/1999/xhtml}style"/>
* <element ref="{http://www.w3.org/1999/xhtml}meta"/>
* <element ref="{http://www.w3.org/1999/xhtml}link"/>
* <element ref="{http://www.w3.org/1999/xhtml}object"/>
* </choice>
* </sequence>
* <element ref="{http://www.w3.org/1999/xhtml}title"/>
* <sequence>
* <choice maxOccurs="unbounded" minOccurs="0">
* <element ref="{http://www.w3.org/1999/xhtml}script"/>
* <element ref="{http://www.w3.org/1999/xhtml}style"/>
* <element ref="{http://www.w3.org/1999/xhtml}meta"/>
* <element ref="{http://www.w3.org/1999/xhtml}link"/>
* <element ref="{http://www.w3.org/1999/xhtml}object"/>
* </choice>
* </sequence>
* </sequence>
* </choice>
* </sequence>
* <attGroup ref="{http://www.w3.org/1999/xhtml}i18n"/>
* <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
* <attribute name="profile" type="{http://www.w3.org/1999/xhtml}URI" />
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"content"
})
@XmlRootElement(name = "head")
public class Head implements Equals2, HashCode2, ToString2
{
@XmlElementRefs({
@XmlElementRef(name = "script", namespace = "http://www.w3.org/1999/xhtml", type = Script.class, required = false),
@XmlElementRef(name = "style", namespace = "http://www.w3.org/1999/xhtml", type = Style.class, required = false),
@XmlElementRef(name = "meta", namespace = "http://www.w3.org/1999/xhtml", type = Meta.class, required = false),
@XmlElementRef(name = "link", namespace = "http://www.w3.org/1999/xhtml", type = Link.class, required = false),
@XmlElementRef(name = "object", namespace = "http://www.w3.org/1999/xhtml", type = org.w3._1999.xhtml.Object.class, required = false),
@XmlElementRef(name = "title", namespace = "http://www.w3.org/1999/xhtml", type = Title.class, required = false),
@XmlElementRef(name = "base", namespace = "http://www.w3.org/1999/xhtml", type = Base.class, required = false)
})
protected List content;
@XmlAttribute(name = "id")
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@XmlID
@XmlSchemaType(name = "ID")
protected String id;
@XmlAttribute(name = "profile")
protected String profile;
@XmlAttribute(name = "lang")
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
protected String langAttribute;
@XmlAttribute(name = "lang", namespace = "http://www.w3.org/XML/1998/namespace")
protected String lang;
@XmlAttribute(name = "dir")
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
protected String dir;
/**
* Gets the rest of the content model.
*
*
* You are getting this "catch-all" property because of the following reason:
* The field name "Base" is used by two different parts of a schema. See:
* line 868 of file:/Users/jp/repos/clinical_quality_language/Src/java/quick/schema/v1.4/fhir-xhtml.xsd
* line 855 of file:/Users/jp/repos/clinical_quality_language/Src/java/quick/schema/v1.4/fhir-xhtml.xsd
*
* To get rid of this property, apply a property customization to one
* of both of the following declarations to change their names:
* 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 Base }
* {@link Link }
* {@link Meta }
* {@link org.w3._1999.xhtml.Object }
* {@link Script }
* {@link Style }
* {@link Title }
*
*
*/
public List getContent() {
if (content == null) {
content = new ArrayList();
}
return this.content;
}
/**
* Gets the value of the id property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getId() {
return id;
}
/**
* Sets the value of the id property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setId(String value) {
this.id = value;
}
/**
* Gets the value of the profile property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getProfile() {
return profile;
}
/**
* Sets the value of the profile property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setProfile(String value) {
this.profile = value;
}
/**
* Gets the value of the langAttribute property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getLangAttribute() {
return langAttribute;
}
/**
* Sets the value of the langAttribute property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setLangAttribute(String value) {
this.langAttribute = value;
}
/**
* Gets the value of the lang property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getLang() {
return lang;
}
/**
* Sets the value of the lang property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setLang(String value) {
this.lang = value;
}
/**
* Gets the value of the dir property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDir() {
return dir;
}
/**
* Sets the value of the dir property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDir(String value) {
this.dir = value;
}
public Head withContent(java.lang.Object... values) {
if (values!= null) {
for (java.lang.Object value: values) {
getContent().add(value);
}
}
return this;
}
public Head withContent(Collection values) {
if (values!= null) {
getContent().addAll(values);
}
return this;
}
public Head withId(String value) {
setId(value);
return this;
}
public Head withProfile(String value) {
setProfile(value);
return this;
}
public Head withLangAttribute(String value) {
setLangAttribute(value);
return this;
}
public Head withLang(String value) {
setLang(value);
return this;
}
public Head withDir(String value) {
setDir(value);
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 Head that = ((Head) 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;
}
}
{
String lhsId;
lhsId = this.getId();
String rhsId;
rhsId = that.getId();
if (!strategy.equals(LocatorUtils.property(thisLocator, "id", lhsId), LocatorUtils.property(thatLocator, "id", rhsId), lhsId, rhsId, (this.id!= null), (that.id!= null))) {
return false;
}
}
{
String lhsProfile;
lhsProfile = this.getProfile();
String rhsProfile;
rhsProfile = that.getProfile();
if (!strategy.equals(LocatorUtils.property(thisLocator, "profile", lhsProfile), LocatorUtils.property(thatLocator, "profile", rhsProfile), lhsProfile, rhsProfile, (this.profile!= null), (that.profile!= null))) {
return false;
}
}
{
String lhsLangAttribute;
lhsLangAttribute = this.getLangAttribute();
String rhsLangAttribute;
rhsLangAttribute = that.getLangAttribute();
if (!strategy.equals(LocatorUtils.property(thisLocator, "langAttribute", lhsLangAttribute), LocatorUtils.property(thatLocator, "langAttribute", rhsLangAttribute), lhsLangAttribute, rhsLangAttribute, (this.langAttribute!= null), (that.langAttribute!= null))) {
return false;
}
}
{
String lhsLang;
lhsLang = this.getLang();
String rhsLang;
rhsLang = that.getLang();
if (!strategy.equals(LocatorUtils.property(thisLocator, "lang", lhsLang), LocatorUtils.property(thatLocator, "lang", rhsLang), lhsLang, rhsLang, (this.lang!= null), (that.lang!= null))) {
return false;
}
}
{
String lhsDir;
lhsDir = this.getDir();
String rhsDir;
rhsDir = that.getDir();
if (!strategy.equals(LocatorUtils.property(thisLocator, "dir", lhsDir), LocatorUtils.property(thatLocator, "dir", rhsDir), lhsDir, rhsDir, (this.dir!= null), (that.dir!= null))) {
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())));
}
{
String theId;
theId = this.getId();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "id", theId), currentHashCode, theId, (this.id!= null));
}
{
String theProfile;
theProfile = this.getProfile();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "profile", theProfile), currentHashCode, theProfile, (this.profile!= null));
}
{
String theLangAttribute;
theLangAttribute = this.getLangAttribute();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "langAttribute", theLangAttribute), currentHashCode, theLangAttribute, (this.langAttribute!= null));
}
{
String theLang;
theLang = this.getLang();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "lang", theLang), currentHashCode, theLang, (this.lang!= null));
}
{
String theDir;
theDir = this.getDir();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "dir", theDir), currentHashCode, theDir, (this.dir!= null));
}
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())));
}
{
String theId;
theId = this.getId();
strategy.appendField(locator, this, "id", buffer, theId, (this.id!= null));
}
{
String theProfile;
theProfile = this.getProfile();
strategy.appendField(locator, this, "profile", buffer, theProfile, (this.profile!= null));
}
{
String theLangAttribute;
theLangAttribute = this.getLangAttribute();
strategy.appendField(locator, this, "langAttribute", buffer, theLangAttribute, (this.langAttribute!= null));
}
{
String theLang;
theLang = this.getLang();
strategy.appendField(locator, this, "lang", buffer, theLang, (this.lang!= null));
}
{
String theDir;
theDir = this.getDir();
strategy.appendField(locator, this, "dir", buffer, theDir, (this.dir!= null));
}
return buffer;
}
public void setContent(List value) {
this.content = value;
}
}