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

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

Go to download

The quick library for the Clinical Quality Language Java reference implementation

There is a newer version: 3.18.0
Show newest version
//
// 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.01.18 at 08:26:13 AM MST 
//


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.XmlID;
import jakarta.xml.bind.annotation.XmlRootElement;
import jakarta.xml.bind.annotation.XmlSchemaType;
import jakarta.xml.bind.annotation.XmlType;
import jakarta.xml.bind.annotation.XmlValue;
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">
 *       <attGroup ref="{http://www.w3.org/1999/xhtml}i18n"/>
 *       <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
 *       <attribute name="type" use="required" type="{http://www.w3.org/1999/xhtml}ContentType" />
 *       <attribute name="media" type="{http://www.w3.org/1999/xhtml}MediaDesc" />
 *       <attribute name="title" type="{http://www.w3.org/1999/xhtml}Text" />
 *       <attribute ref="{http://www.w3.org/XML/1998/namespace}space fixed="preserve""/>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "content" }) @XmlRootElement(name = "style") public class Style implements Equals2, HashCode2, ToString2 { @XmlValue protected String content; @XmlAttribute(name = "id") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlID @XmlSchemaType(name = "ID") protected String id; @XmlAttribute(name = "type", required = true) protected String type; @XmlAttribute(name = "media") protected String media; @XmlAttribute(name = "title") protected String title; @XmlAttribute(name = "space", namespace = "http://www.w3.org/XML/1998/namespace") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) protected String space; @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 content property. * * @return * possible object is * {@link String } * */ public String getContent() { return content; } /** * Sets the value of the content property. * * @param value * allowed object is * {@link String } * */ public void setContent(String value) { this.content = 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 type property. * * @return * possible object is * {@link String } * */ public String getType() { return type; } /** * Sets the value of the type property. * * @param value * allowed object is * {@link String } * */ public void setType(String value) { this.type = value; } /** * Gets the value of the media property. * * @return * possible object is * {@link String } * */ public String getMedia() { return media; } /** * Sets the value of the media property. * * @param value * allowed object is * {@link String } * */ public void setMedia(String value) { this.media = value; } /** * Gets the value of the title property. * * @return * possible object is * {@link String } * */ public String getTitle() { return title; } /** * Sets the value of the title property. * * @param value * allowed object is * {@link String } * */ public void setTitle(String value) { this.title = value; } /** * Gets the value of the space property. * * @return * possible object is * {@link String } * */ public String getSpace() { if (space == null) { return "preserve"; } else { return space; } } /** * Sets the value of the space property. * * @param value * allowed object is * {@link String } * */ public void setSpace(String value) { this.space = 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 Style withContent(String value) { setContent(value); return this; } public Style withId(String value) { setId(value); return this; } public Style withType(String value) { setType(value); return this; } public Style withMedia(String value) { setMedia(value); return this; } public Style withTitle(String value) { setTitle(value); return this; } public Style withSpace(String value) { setSpace(value); return this; } public Style withLangAttribute(String value) { setLangAttribute(value); return this; } public Style withLang(String value) { setLang(value); return this; } public Style 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 Style that = ((Style) object); { String lhsContent; lhsContent = this.getContent(); String rhsContent; rhsContent = that.getContent(); if (!strategy.equals(LocatorUtils.property(thisLocator, "content", lhsContent), LocatorUtils.property(thatLocator, "content", rhsContent), lhsContent, rhsContent, (this.content!= null), (that.content!= 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 lhsType; lhsType = this.getType(); String rhsType; rhsType = that.getType(); if (!strategy.equals(LocatorUtils.property(thisLocator, "type", lhsType), LocatorUtils.property(thatLocator, "type", rhsType), lhsType, rhsType, (this.type!= null), (that.type!= null))) { return false; } } { String lhsMedia; lhsMedia = this.getMedia(); String rhsMedia; rhsMedia = that.getMedia(); if (!strategy.equals(LocatorUtils.property(thisLocator, "media", lhsMedia), LocatorUtils.property(thatLocator, "media", rhsMedia), lhsMedia, rhsMedia, (this.media!= null), (that.media!= null))) { return false; } } { String lhsTitle; lhsTitle = this.getTitle(); String rhsTitle; rhsTitle = that.getTitle(); if (!strategy.equals(LocatorUtils.property(thisLocator, "title", lhsTitle), LocatorUtils.property(thatLocator, "title", rhsTitle), lhsTitle, rhsTitle, (this.title!= null), (that.title!= null))) { return false; } } { String lhsSpace; lhsSpace = this.getSpace(); String rhsSpace; rhsSpace = that.getSpace(); if (!strategy.equals(LocatorUtils.property(thisLocator, "space", lhsSpace), LocatorUtils.property(thatLocator, "space", rhsSpace), lhsSpace, rhsSpace, (this.space!= null), (that.space!= 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; { String theContent; theContent = this.getContent(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "content", theContent), currentHashCode, theContent, (this.content!= null)); } { String theId; theId = this.getId(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "id", theId), currentHashCode, theId, (this.id!= null)); } { String theType; theType = this.getType(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "type", theType), currentHashCode, theType, (this.type!= null)); } { String theMedia; theMedia = this.getMedia(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "media", theMedia), currentHashCode, theMedia, (this.media!= null)); } { String theTitle; theTitle = this.getTitle(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "title", theTitle), currentHashCode, theTitle, (this.title!= null)); } { String theSpace; theSpace = this.getSpace(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "space", theSpace), currentHashCode, theSpace, (this.space!= 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) { { String theContent; theContent = this.getContent(); strategy.appendField(locator, this, "content", buffer, theContent, (this.content!= null)); } { String theId; theId = this.getId(); strategy.appendField(locator, this, "id", buffer, theId, (this.id!= null)); } { String theType; theType = this.getType(); strategy.appendField(locator, this, "type", buffer, theType, (this.type!= null)); } { String theMedia; theMedia = this.getMedia(); strategy.appendField(locator, this, "media", buffer, theMedia, (this.media!= null)); } { String theTitle; theTitle = this.getTitle(); strategy.appendField(locator, this, "title", buffer, theTitle, (this.title!= null)); } { String theSpace; theSpace = this.getSpace(); strategy.appendField(locator, this, "space", buffer, theSpace, (this.space!= 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