
org.w3._1999.xhtml.Script 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 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 javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
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.XmlValue;
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">
* <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
* <attribute name="charset" type="{http://www.w3.org/1999/xhtml}Charset" />
* <attribute name="type" use="required" type="{http://www.w3.org/1999/xhtml}ContentType" />
* <attribute name="src" type="{http://www.w3.org/1999/xhtml}URI" />
* <attribute name="defer">
* <simpleType>
* <restriction base="{http://www.w3.org/2001/XMLSchema}token">
* <enumeration value="defer"/>
* </restriction>
* </simpleType>
* </attribute>
* <attribute ref="{http://www.w3.org/XML/1998/namespace}space fixed="preserve""/>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"content"
})
@XmlRootElement(name = "script")
public class Script implements Equals, HashCode, ToString
{
@XmlValue
protected String content;
@XmlAttribute(name = "id")
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@XmlID
@XmlSchemaType(name = "ID")
protected String id;
@XmlAttribute(name = "charset")
protected String charset;
@XmlAttribute(name = "type", required = true)
protected String type;
@XmlAttribute(name = "src")
protected String src;
@XmlAttribute(name = "defer")
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
protected String defer;
@XmlAttribute(name = "space", namespace = "http://www.w3.org/XML/1998/namespace")
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
protected String space;
/**
* 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 charset property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getCharset() {
return charset;
}
/**
* Sets the value of the charset property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setCharset(String value) {
this.charset = 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 src property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSrc() {
return src;
}
/**
* Sets the value of the src property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setSrc(String value) {
this.src = value;
}
/**
* Gets the value of the defer property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDefer() {
return defer;
}
/**
* Sets the value of the defer property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setDefer(String value) {
this.defer = 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;
}
public Script withContent(String value) {
setContent(value);
return this;
}
public Script withId(String value) {
setId(value);
return this;
}
public Script withCharset(String value) {
setCharset(value);
return this;
}
public Script withType(String value) {
setType(value);
return this;
}
public Script withSrc(String value) {
setSrc(value);
return this;
}
public Script withDefer(String value) {
setDefer(value);
return this;
}
public Script withSpace(String value) {
setSpace(value);
return this;
}
public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, java.lang.Object object, EqualsStrategy strategy) {
if (!(object instanceof Script)) {
return false;
}
if (this == object) {
return true;
}
final Script that = ((Script) 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)) {
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 lhsCharset;
lhsCharset = this.getCharset();
String rhsCharset;
rhsCharset = that.getCharset();
if (!strategy.equals(LocatorUtils.property(thisLocator, "charset", lhsCharset), LocatorUtils.property(thatLocator, "charset", rhsCharset), lhsCharset, rhsCharset)) {
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)) {
return false;
}
}
{
String lhsSrc;
lhsSrc = this.getSrc();
String rhsSrc;
rhsSrc = that.getSrc();
if (!strategy.equals(LocatorUtils.property(thisLocator, "src", lhsSrc), LocatorUtils.property(thatLocator, "src", rhsSrc), lhsSrc, rhsSrc)) {
return false;
}
}
{
String lhsDefer;
lhsDefer = this.getDefer();
String rhsDefer;
rhsDefer = that.getDefer();
if (!strategy.equals(LocatorUtils.property(thisLocator, "defer", lhsDefer), LocatorUtils.property(thatLocator, "defer", rhsDefer), lhsDefer, rhsDefer)) {
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)) {
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;
{
String theContent;
theContent = this.getContent();
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 theCharset;
theCharset = this.getCharset();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "charset", theCharset), currentHashCode, theCharset);
}
{
String theType;
theType = this.getType();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "type", theType), currentHashCode, theType);
}
{
String theSrc;
theSrc = this.getSrc();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "src", theSrc), currentHashCode, theSrc);
}
{
String theDefer;
theDefer = this.getDefer();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "defer", theDefer), currentHashCode, theDefer);
}
{
String theSpace;
theSpace = this.getSpace();
currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "space", theSpace), currentHashCode, theSpace);
}
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) {
{
String theContent;
theContent = this.getContent();
strategy.appendField(locator, this, "content", buffer, theContent);
}
{
String theId;
theId = this.getId();
strategy.appendField(locator, this, "id", buffer, theId);
}
{
String theCharset;
theCharset = this.getCharset();
strategy.appendField(locator, this, "charset", buffer, theCharset);
}
{
String theType;
theType = this.getType();
strategy.appendField(locator, this, "type", buffer, theType);
}
{
String theSrc;
theSrc = this.getSrc();
strategy.appendField(locator, this, "src", buffer, theSrc);
}
{
String theDefer;
theDefer = this.getDefer();
strategy.appendField(locator, this, "defer", buffer, theDefer);
}
{
String theSpace;
theSpace = this.getSpace();
strategy.appendField(locator, this, "space", buffer, theSpace);
}
return buffer;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy