All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.w3._1999.xhtml.Head Maven / Gradle / Ivy

Go to download

The quick library for the Clinical Quality Language Java reference implementation

There is a newer version: 3.15.0
Show newest version
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.4.0-b180830.0438 
// See https://javaee.github.io/jaxb-v2/ 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2023.10.25 at 10:12:25 AM MDT 
//


package org.w3._1999.xhtml;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlElementRefs;
import javax.xml.bind.annotation.XmlID;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.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/nasrinsultana/IdeaProjects/cqframework/clinical_quality_language/Src/java/quick/schema/v1.4/fhir-xhtml.xsd * line 855 of file:/Users/nasrinsultana/IdeaProjects/cqframework/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 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 Script } * {@link Style } * {@link Meta } * {@link Link } * {@link org.w3._1999.xhtml.Object } * {@link Title } * {@link Base } * * */ 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; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy