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

org.w3._1999.xhtml.Script 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: 2023.12.06 at 03:09:41 PM 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">
 *       <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 Equals2, HashCode2, ToString2 { @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; } @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 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, (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 lhsCharset; lhsCharset = this.getCharset(); String rhsCharset; rhsCharset = that.getCharset(); if (!strategy.equals(LocatorUtils.property(thisLocator, "charset", lhsCharset), LocatorUtils.property(thatLocator, "charset", rhsCharset), lhsCharset, rhsCharset, (this.charset!= null), (that.charset!= 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 lhsSrc; lhsSrc = this.getSrc(); String rhsSrc; rhsSrc = that.getSrc(); if (!strategy.equals(LocatorUtils.property(thisLocator, "src", lhsSrc), LocatorUtils.property(thatLocator, "src", rhsSrc), lhsSrc, rhsSrc, (this.src!= null), (that.src!= null))) { 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, (this.defer!= null), (that.defer!= 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; } } 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 theCharset; theCharset = this.getCharset(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "charset", theCharset), currentHashCode, theCharset, (this.charset!= null)); } { String theType; theType = this.getType(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "type", theType), currentHashCode, theType, (this.type!= null)); } { String theSrc; theSrc = this.getSrc(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "src", theSrc), currentHashCode, theSrc, (this.src!= null)); } { String theDefer; theDefer = this.getDefer(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "defer", theDefer), currentHashCode, theDefer, (this.defer!= null)); } { String theSpace; theSpace = this.getSpace(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "space", theSpace), currentHashCode, theSpace, (this.space!= 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 theCharset; theCharset = this.getCharset(); strategy.appendField(locator, this, "charset", buffer, theCharset, (this.charset!= null)); } { String theType; theType = this.getType(); strategy.appendField(locator, this, "type", buffer, theType, (this.type!= null)); } { String theSrc; theSrc = this.getSrc(); strategy.appendField(locator, this, "src", buffer, theSrc, (this.src!= null)); } { String theDefer; theDefer = this.getDefer(); strategy.appendField(locator, this, "defer", buffer, theDefer, (this.defer!= null)); } { String theSpace; theSpace = this.getSpace(); strategy.appendField(locator, this, "space", buffer, theSpace, (this.space!= null)); } return buffer; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy