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.22.0
Show newest version
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11 
// See http://java.sun.com/xml/jaxb 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2018.01.12 at 11:04:27 AM MST 
//


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.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.JAXBEqualsStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy;
import org.jvnet.jaxb2_commons.lang.ToString;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy;
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 Equals, HashCode, ToString { @XmlElementRefs({ @XmlElementRef(name = "title", namespace = "http://www.w3.org/1999/xhtml", type = Title.class, required = false), @XmlElementRef(name = "meta", namespace = "http://www.w3.org/1999/xhtml", type = Meta.class, required = false), @XmlElementRef(name = "base", namespace = "http://www.w3.org/1999/xhtml", type = Base.class, required = false), @XmlElementRef(name = "style", namespace = "http://www.w3.org/1999/xhtml", type = Style.class, required = false), @XmlElementRef(name = "object", namespace = "http://www.w3.org/1999/xhtml", type = org.w3._1999.xhtml.Object.class, required = false), @XmlElementRef(name = "link", namespace = "http://www.w3.org/1999/xhtml", type = Link.class, required = false), @XmlElementRef(name = "script", namespace = "http://www.w3.org/1999/xhtml", type = Script.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:/C:/Users/Bryn/Documents/Src/SS/CQL/Src/java/quick/schema/v1.4/fhir-xhtml.xsd * line 855 of file:/C:/Users/Bryn/Documents/Src/SS/CQL/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 Title } * {@link Meta } * {@link Base } * {@link Style } * {@link org.w3._1999.xhtml.Object } * {@link Link } * {@link Script } * * */ 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; } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, java.lang.Object object, EqualsStrategy strategy) { if (!(object instanceof Head)) { 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)) { 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)) { 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)) { 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)) { 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)) { 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)) { 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.content!= null)&&(!this.content.isEmpty()))?this.getContent():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "content", theContent), currentHashCode, theContent); } { String theId; theId = this.getId(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "id", theId), currentHashCode, theId); } { String theProfile; theProfile = this.getProfile(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "profile", theProfile), currentHashCode, theProfile); } { String theLangAttribute; theLangAttribute = this.getLangAttribute(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "langAttribute", theLangAttribute), currentHashCode, theLangAttribute); } { String theLang; theLang = this.getLang(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "lang", theLang), currentHashCode, theLang); } { String theDir; theDir = this.getDir(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "dir", theDir), currentHashCode, theDir); } return currentHashCode; } public int hashCode() { final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); } public String toString() { final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE; final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); } public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { strategy.appendStart(locator, this, buffer); appendFields(locator, buffer, strategy); strategy.appendEnd(locator, this, buffer); return buffer; } public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { { List theContent; theContent = (((this.content!= null)&&(!this.content.isEmpty()))?this.getContent():null); strategy.appendField(locator, this, "content", buffer, theContent); } { String theId; theId = this.getId(); strategy.appendField(locator, this, "id", buffer, theId); } { String theProfile; theProfile = this.getProfile(); strategy.appendField(locator, this, "profile", buffer, theProfile); } { String theLangAttribute; theLangAttribute = this.getLangAttribute(); strategy.appendField(locator, this, "langAttribute", buffer, theLangAttribute); } { String theLang; theLang = this.getLang(); strategy.appendField(locator, this, "lang", buffer, theLang); } { String theDir; theDir = this.getDir(); strategy.appendField(locator, this, "dir", buffer, theDir); } return buffer; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy