org.w3._1999.xhtml.Html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quick Show documentation
Show all versions of quick Show documentation
The quick library for the Clinical Quality Language Java reference implementation
//
// 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 jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlAttribute;
import jakarta.xml.bind.annotation.XmlElement;
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>
* <element ref="{http://www.w3.org/1999/xhtml}head"/>
* <element ref="{http://www.w3.org/1999/xhtml}body"/>
* </sequence>
* <attGroup ref="{http://www.w3.org/1999/xhtml}i18n"/>
* <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"head",
"body"
})
@XmlRootElement(name = "html")
public class Html implements Equals2, HashCode2, ToString2
{
@XmlElement(required = true)
protected Head head;
@XmlElement(required = true)
protected Body body;
@XmlAttribute(name = "id")
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@XmlID
@XmlSchemaType(name = "ID")
protected String id;
@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 value of the head property.
*
* @return
* possible object is
* {@link Head }
*
*/
public Head getHead() {
return head;
}
/**
* Sets the value of the head property.
*
* @param value
* allowed object is
* {@link Head }
*
*/
public void setHead(Head value) {
this.head = value;
}
/**
* Gets the value of the body property.
*
* @return
* possible object is
* {@link Body }
*
*/
public Body getBody() {
return body;
}
/**
* Sets the value of the body property.
*
* @param value
* allowed object is
* {@link Body }
*
*/
public void setBody(Body value) {
this.body = value;
}
/**
* 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 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 Html withHead(Head value) {
setHead(value);
return this;
}
public Html withBody(Body value) {
setBody(value);
return this;
}
public Html withId(String value) {
setId(value);
return this;
}
public Html withLangAttribute(String value) {
setLangAttribute(value);
return this;
}
public Html withLang(String value) {
setLang(value);
return this;
}
public Html 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 Html that = ((Html) object);
{
Head lhsHead;
lhsHead = this.getHead();
Head rhsHead;
rhsHead = that.getHead();
if (!strategy.equals(LocatorUtils.property(thisLocator, "head", lhsHead), LocatorUtils.property(thatLocator, "head", rhsHead), lhsHead, rhsHead, (this.head!= null), (that.head!= null))) {
return false;
}
}
{
Body lhsBody;
lhsBody = this.getBody();
Body rhsBody;
rhsBody = that.getBody();
if (!strategy.equals(LocatorUtils.property(thisLocator, "body", lhsBody), LocatorUtils.property(thatLocator, "body", rhsBody), lhsBody, rhsBody, (this.body!= null), (that.body!= null))) {
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 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;
{
Head theHead;
theHead = this.getHead();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "head", theHead), currentHashCode, theHead, (this.head!= null));
}
{
Body theBody;
theBody = this.getBody();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "body", theBody), currentHashCode, theBody, (this.body!= null));
}
{
String theId;
theId = this.getId();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "id", theId), currentHashCode, theId, (this.id!= 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) {
{
Head theHead;
theHead = this.getHead();
strategy.appendField(locator, this, "head", buffer, theHead, (this.head!= null));
}
{
Body theBody;
theBody = this.getBody();
strategy.appendField(locator, this, "body", buffer, theBody, (this.body!= null));
}
{
String theId;
theId = this.getId();
strategy.appendField(locator, this, "id", buffer, theId, (this.id!= 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;
}
}