org.javastro.ivoa.entities.uws.ResultReference Maven / Gradle / Ivy
package org.javastro.ivoa.entities.uws;
import java.util.HashMap;
import java.util.Map;
import javax.xml.namespace.QName;
import com.kscs.util.jaxb.Buildable;
import com.kscs.util.jaxb.Copyable;
import com.kscs.util.jaxb.PartialCopyable;
import com.kscs.util.jaxb.PropertyTree;
import com.kscs.util.jaxb.PropertyTreeUse;
import com.kscs.util.jaxb.PropertyVisitor;
import com.kscs.util.jaxb.SingleProperty;
import com.kscs.util.jaxb.SinglePropertyInfo;
import com.kscs.util.jaxb.SinglePropertyInfo;
import com.kscs.util.jaxb.SinglePropertyInfo;
import jakarta.annotation.Generated;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlAnyAttribute;
import jakarta.xml.bind.annotation.XmlAttribute;
import jakarta.xml.bind.annotation.XmlSchemaType;
import jakarta.xml.bind.annotation.XmlType;
import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter;
import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import org.jvnet.jaxb.lang.JAXBMergeStrategy;
import org.jvnet.jaxb.lang.JAXBToStringStrategy;
import org.jvnet.jaxb.lang.MergeFrom;
import org.jvnet.jaxb.lang.MergeStrategy;
import org.jvnet.jaxb.lang.ToString;
import org.jvnet.jaxb.lang.ToStringStrategy;
import org.jvnet.jaxb.locator.ObjectLocator;
import org.jvnet.jaxb.locator.util.LocatorUtils;
/**
* A reference to a UWS result.
*
* Java class for ResultReference complex type
.
*
* The following schema fragment specifies the expected content contained within this class.
*
* {@code
*
*
*
*
*
*
*
*
*
*
*
* }
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ResultReference")
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00")
public class ResultReference implements Cloneable, Copyable, PartialCopyable, MergeFrom, ToString
{
@XmlAttribute(name = "id", required = true)
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00")
protected String id;
@XmlAttribute(name = "size")
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00")
protected Long size;
@XmlAttribute(name = "mime-type")
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00")
protected String mimeType;
@XmlAttribute(name = "type", namespace = "http://www.w3.org/1999/xlink")
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00")
protected String type;
@XmlAttribute(name = "href", namespace = "http://www.w3.org/1999/xlink")
@XmlSchemaType(name = "anyURI")
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00")
protected String href;
@XmlAnyAttribute
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00")
private Map otherAttributes = new HashMap<>();
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00")
protected transient ResultReference.Modifier __cachedModifier__;
/**
* Default no-arg constructor
*
*/
public ResultReference() {
super();
}
/**
* Fully-initialising value constructor
*
*/
public ResultReference(final String id, final Long size, final String mimeType, final String type, final String href, final Map otherAttributes) {
this.id = id;
this.size = size;
this.mimeType = mimeType;
this.type = type;
this.href = href;
this.otherAttributes = otherAttributes;
}
/**
* Gets the value of the id property.
*
* @return
* possible object is
* {@link String }
*
*/
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00")
public String getId() {
return id;
}
/**
* Sets the value of the id property.
*
* @param value
* allowed object is
* {@link String }
*
*/
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00")
public void setId(String value) {
this.id = value;
}
/**
* Gets the value of the size property.
*
* @return
* possible object is
* {@link Long }
*
*/
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00")
public Long getSize() {
return size;
}
/**
* Sets the value of the size property.
*
* @param value
* allowed object is
* {@link Long }
*
*/
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00")
public void setSize(Long value) {
this.size = value;
}
/**
* Gets the value of the mimeType property.
*
* @return
* possible object is
* {@link String }
*
*/
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00")
public String getMimeType() {
return mimeType;
}
/**
* Sets the value of the mimeType property.
*
* @param value
* allowed object is
* {@link String }
*
*/
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00")
public void setMimeType(String value) {
this.mimeType = value;
}
/**
* Gets the value of the type property.
*
* @return
* possible object is
* {@link String }
*
*/
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00")
public String getType() {
if (type == null) {
return "simple";
} else {
return type;
}
}
/**
* Sets the value of the type property.
*
* @param value
* allowed object is
* {@link String }
*
*/
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00")
public void setType(String value) {
this.type = value;
}
/**
* Gets the value of the href property.
*
* @return
* possible object is
* {@link String }
*
*/
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00")
public String getHref() {
return href;
}
/**
* Sets the value of the href property.
*
* @param value
* allowed object is
* {@link String }
*
*/
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00")
public void setHref(String value) {
this.href = value;
}
/**
* Gets a map that contains attributes that aren't bound to any typed property on this class.
*
*
* the map is keyed by the name of the attribute and
* the value is the string value of the attribute.
*
* the map returned by this method is live, and you can add new attribute
* by updating the map directly. Because of this design, there's no setter.
*
*
* @return
* always non-null
*/
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00")
public Map getOtherAttributes() {
return otherAttributes;
}
@Override
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00")
public boolean equals(Object object) {
if ((object == null)||(this.getClass()!= object.getClass())) {
return false;
}
if (this == object) {
return true;
}
final ResultReference that = ((ResultReference) object);
{
String leftId;
leftId = this.getId();
String rightId;
rightId = that.getId();
if (this.id!= null) {
if (that.id!= null) {
if (!leftId.equals(rightId)) {
return false;
}
} else {
return false;
}
} else {
if (that.id!= null) {
return false;
}
}
}
{
Long leftSize;
leftSize = this.getSize();
Long rightSize;
rightSize = that.getSize();
if (this.size!= null) {
if (that.size!= null) {
if (!leftSize.equals(rightSize)) {
return false;
}
} else {
return false;
}
} else {
if (that.size!= null) {
return false;
}
}
}
{
String leftMimeType;
leftMimeType = this.getMimeType();
String rightMimeType;
rightMimeType = that.getMimeType();
if (this.mimeType!= null) {
if (that.mimeType!= null) {
if (!leftMimeType.equals(rightMimeType)) {
return false;
}
} else {
return false;
}
} else {
if (that.mimeType!= null) {
return false;
}
}
}
{
String leftType;
leftType = this.getType();
String rightType;
rightType = that.getType();
if (this.type!= null) {
if (that.type!= null) {
if (!leftType.equals(rightType)) {
return false;
}
} else {
return false;
}
} else {
if (that.type!= null) {
return false;
}
}
}
{
String leftHref;
leftHref = this.getHref();
String rightHref;
rightHref = that.getHref();
if (this.href!= null) {
if (that.href!= null) {
if (!leftHref.equals(rightHref)) {
return false;
}
} else {
return false;
}
} else {
if (that.href!= null) {
return false;
}
}
}
return true;
}
@Override
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00")
public int hashCode() {
int currentHashCode = 1;
{
currentHashCode = (currentHashCode* 31);
String theId;
theId = this.getId();
if (this.id!= null) {
currentHashCode += theId.hashCode();
}
}
{
currentHashCode = (currentHashCode* 31);
Long theSize;
theSize = this.getSize();
if (this.size!= null) {
currentHashCode += theSize.hashCode();
}
}
{
currentHashCode = (currentHashCode* 31);
String theMimeType;
theMimeType = this.getMimeType();
if (this.mimeType!= null) {
currentHashCode += theMimeType.hashCode();
}
}
{
currentHashCode = (currentHashCode* 31);
String theType;
theType = this.getType();
if (this.type!= null) {
currentHashCode += theType.hashCode();
}
}
{
currentHashCode = (currentHashCode* 31);
String theHref;
theHref = this.getHref();
if (this.href!= null) {
currentHashCode += theHref.hashCode();
}
}
return currentHashCode;
}
@Override
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00")
public String toString() {
final ToStringStrategy strategy = JAXBToStringStrategy.getInstance();
final StringBuilder buffer = new StringBuilder();
append(null, buffer, strategy);
return buffer.toString();
}
@Override
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00")
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;
}
@Override
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00")
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
{
String theId;
theId = this.getId();
strategy.appendField(locator, this, "id", buffer, theId, (this.id!= null));
}
{
Long theSize;
theSize = this.getSize();
strategy.appendField(locator, this, "size", buffer, theSize, (this.size!= null));
}
{
String theMimeType;
theMimeType = this.getMimeType();
strategy.appendField(locator, this, "mimeType", buffer, theMimeType, (this.mimeType!= null));
}
{
String theType;
theType = this.getType();
strategy.appendField(locator, this, "type", buffer, theType, (this.type!= null));
}
{
String theHref;
theHref = this.getHref();
strategy.appendField(locator, this, "href", buffer, theHref, (this.href!= null));
}
return buffer;
}
@Override
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00")
public void mergeFrom(Object left, Object right) {
final MergeStrategy strategy = JAXBMergeStrategy.getInstance();
mergeFrom(null, null, left, right, strategy);
}
@Override
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00")
public void mergeFrom(ObjectLocator leftLocator, ObjectLocator rightLocator, Object left, Object right, MergeStrategy strategy) {
if (right instanceof ResultReference) {
final ResultReference target = this;
final ResultReference leftObject = ((ResultReference) left);
final ResultReference rightObject = ((ResultReference) right);
{
Boolean idShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, (leftObject.id!= null), (rightObject.id!= null));
if (idShouldBeMergedAndSet == Boolean.TRUE) {
String lhsId;
lhsId = leftObject.getId();
String rhsId;
rhsId = rightObject.getId();
String mergedId = ((String) strategy.merge(LocatorUtils.property(leftLocator, "id", lhsId), LocatorUtils.property(rightLocator, "id", rhsId), lhsId, rhsId, (leftObject.id!= null), (rightObject.id!= null)));
target.setId(mergedId);
} else {
if (idShouldBeMergedAndSet == Boolean.FALSE) {
target.id = null;
}
}
}
{
Boolean sizeShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, (leftObject.size!= null), (rightObject.size!= null));
if (sizeShouldBeMergedAndSet == Boolean.TRUE) {
Long lhsSize;
lhsSize = leftObject.getSize();
Long rhsSize;
rhsSize = rightObject.getSize();
Long mergedSize = ((Long) strategy.merge(LocatorUtils.property(leftLocator, "size", lhsSize), LocatorUtils.property(rightLocator, "size", rhsSize), lhsSize, rhsSize, (leftObject.size!= null), (rightObject.size!= null)));
target.setSize(mergedSize);
} else {
if (sizeShouldBeMergedAndSet == Boolean.FALSE) {
target.size = null;
}
}
}
{
Boolean mimeTypeShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, (leftObject.mimeType!= null), (rightObject.mimeType!= null));
if (mimeTypeShouldBeMergedAndSet == Boolean.TRUE) {
String lhsMimeType;
lhsMimeType = leftObject.getMimeType();
String rhsMimeType;
rhsMimeType = rightObject.getMimeType();
String mergedMimeType = ((String) strategy.merge(LocatorUtils.property(leftLocator, "mimeType", lhsMimeType), LocatorUtils.property(rightLocator, "mimeType", rhsMimeType), lhsMimeType, rhsMimeType, (leftObject.mimeType!= null), (rightObject.mimeType!= null)));
target.setMimeType(mergedMimeType);
} else {
if (mimeTypeShouldBeMergedAndSet == Boolean.FALSE) {
target.mimeType = null;
}
}
}
{
Boolean typeShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, (leftObject.type!= null), (rightObject.type!= null));
if (typeShouldBeMergedAndSet == Boolean.TRUE) {
String lhsType;
lhsType = leftObject.getType();
String rhsType;
rhsType = rightObject.getType();
String mergedType = ((String) strategy.merge(LocatorUtils.property(leftLocator, "type", lhsType), LocatorUtils.property(rightLocator, "type", rhsType), lhsType, rhsType, (leftObject.type!= null), (rightObject.type!= null)));
target.setType(mergedType);
} else {
if (typeShouldBeMergedAndSet == Boolean.FALSE) {
target.type = null;
}
}
}
{
Boolean hrefShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, (leftObject.href!= null), (rightObject.href!= null));
if (hrefShouldBeMergedAndSet == Boolean.TRUE) {
String lhsHref;
lhsHref = leftObject.getHref();
String rhsHref;
rhsHref = rightObject.getHref();
String mergedHref = ((String) strategy.merge(LocatorUtils.property(leftLocator, "href", lhsHref), LocatorUtils.property(rightLocator, "href", rhsHref), lhsHref, rhsHref, (leftObject.href!= null), (rightObject.href!= null)));
target.setHref(mergedHref);
} else {
if (hrefShouldBeMergedAndSet == Boolean.FALSE) {
target.href = null;
}
}
}
}
}
@Override
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00")
public Object createNewInstance() {
return new ResultReference();
}
@Override
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00")
public ResultReference clone() {
final ResultReference _newObject;
try {
_newObject = ((ResultReference) super.clone());
} catch (CloneNotSupportedException e) {
throw new RuntimeException(e);
}
return _newObject;
}
@Override
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00")
public ResultReference createCopy() {
final ResultReference _newObject;
try {
_newObject = ((ResultReference) super.clone());
} catch (CloneNotSupportedException e) {
throw new RuntimeException(e);
}
_newObject.id = this.id;
_newObject.size = this.size;
_newObject.mimeType = this.mimeType;
_newObject.type = this.type;
_newObject.href = this.href;
return _newObject;
}
@Override
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00")
public ResultReference createCopy(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
final ResultReference _newObject;
try {
_newObject = ((ResultReference) super.clone());
} catch (CloneNotSupportedException e) {
throw new RuntimeException(e);
}
final PropertyTree idPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("id"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(idPropertyTree!= null):((idPropertyTree == null)||(!idPropertyTree.isLeaf())))) {
_newObject.id = this.id;
}
final PropertyTree sizePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("size"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(sizePropertyTree!= null):((sizePropertyTree == null)||(!sizePropertyTree.isLeaf())))) {
_newObject.size = this.size;
}
final PropertyTree mimeTypePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("mimeType"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(mimeTypePropertyTree!= null):((mimeTypePropertyTree == null)||(!mimeTypePropertyTree.isLeaf())))) {
_newObject.mimeType = this.mimeType;
}
final PropertyTree typePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("type"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(typePropertyTree!= null):((typePropertyTree == null)||(!typePropertyTree.isLeaf())))) {
_newObject.type = this.type;
}
final PropertyTree hrefPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("href"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(hrefPropertyTree!= null):((hrefPropertyTree == null)||(!hrefPropertyTree.isLeaf())))) {
_newObject.href = this.href;
}
return _newObject;
}
@Override
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00")
public ResultReference copyExcept(final PropertyTree _propertyTree) {
return createCopy(_propertyTree, PropertyTreeUse.EXCLUDE);
}
@Override
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00")
public ResultReference copyOnly(final PropertyTree _propertyTree) {
return createCopy(_propertyTree, PropertyTreeUse.INCLUDE);
}
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00")
public ResultReference.Modifier modifier() {
if (null == this.__cachedModifier__) {
this.__cachedModifier__ = new ResultReference.Modifier();
}
return ((ResultReference.Modifier) this.__cachedModifier__);
}
/**
* Copies all state of this object to a builder. This method is used by the copyOf
* method and should not be called directly by client code.
*
* @param _other
* A builder instance to which the state of this object will be copied.
*/
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00")
public<_B >void copyTo(final ResultReference.Builder<_B> _other) {
_other.id = this.id;
_other.size = this.size;
_other.mimeType = this.mimeType;
_other.type = this.type;
_other.href = this.href;
}
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00")
public<_B >ResultReference.Builder<_B> newCopyBuilder(final _B _parentBuilder) {
return new ResultReference.Builder<_B>(_parentBuilder, this, true);
}
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00")
public ResultReference.Builder newCopyBuilder() {
return newCopyBuilder(null);
}
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00")
public static ResultReference.Builder builder() {
return new ResultReference.Builder<>(null, null, false);
}
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00")
public static<_B >ResultReference.Builder<_B> copyOf(final ResultReference _other) {
final ResultReference.Builder<_B> _newBuilder = new ResultReference.Builder<>(null, null, false);
_other.copyTo(_newBuilder);
return _newBuilder;
}
/**
* Copies all state of this object to a builder. This method is used by the copyOf
* method and should not be called directly by client code.
*
* @param _other
* A builder instance to which the state of this object will be copied.
*/
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00")
public<_B >void copyTo(final ResultReference.Builder<_B> _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
final PropertyTree idPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("id"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(idPropertyTree!= null):((idPropertyTree == null)||(!idPropertyTree.isLeaf())))) {
_other.id = this.id;
}
final PropertyTree sizePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("size"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(sizePropertyTree!= null):((sizePropertyTree == null)||(!sizePropertyTree.isLeaf())))) {
_other.size = this.size;
}
final PropertyTree mimeTypePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("mimeType"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(mimeTypePropertyTree!= null):((mimeTypePropertyTree == null)||(!mimeTypePropertyTree.isLeaf())))) {
_other.mimeType = this.mimeType;
}
final PropertyTree typePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("type"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(typePropertyTree!= null):((typePropertyTree == null)||(!typePropertyTree.isLeaf())))) {
_other.type = this.type;
}
final PropertyTree hrefPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("href"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(hrefPropertyTree!= null):((hrefPropertyTree == null)||(!hrefPropertyTree.isLeaf())))) {
_other.href = this.href;
}
}
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00")
public<_B >ResultReference.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
return new ResultReference.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse);
}
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00")
public ResultReference.Builder newCopyBuilder(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
return newCopyBuilder(null, _propertyTree, _propertyTreeUse);
}
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00")
public static<_B >ResultReference.Builder<_B> copyOf(final ResultReference _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
final ResultReference.Builder<_B> _newBuilder = new ResultReference.Builder<>(null, null, false);
_other.copyTo(_newBuilder, _propertyTree, _propertyTreeUse);
return _newBuilder;
}
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00")
public static ResultReference.Builder copyExcept(final ResultReference _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.EXCLUDE);
}
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00")
public static ResultReference.Builder copyOnly(final ResultReference _other, final PropertyTree _propertyTree) {
return copyOf(_other, _propertyTree, PropertyTreeUse.INCLUDE);
}
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00")
public ResultReference visit(final PropertyVisitor _visitor_) {
_visitor_.visit(this);
_visitor_.visit(new SingleProperty<>(ResultReference.PropInfo.ID, this));
_visitor_.visit(new SingleProperty<>(ResultReference.PropInfo.SIZE, this));
_visitor_.visit(new SingleProperty<>(ResultReference.PropInfo.MIME_TYPE, this));
_visitor_.visit(new SingleProperty<>(ResultReference.PropInfo.TYPE, this));
_visitor_.visit(new SingleProperty<>(ResultReference.PropInfo.HREF, this));
return this;
}
public static class Builder<_B >implements Buildable
{
protected final _B _parentBuilder;
protected final ResultReference _storedValue;
private String id;
private Long size;
private String mimeType;
private String type = "simple";
private String href;
public Builder(final _B _parentBuilder, final ResultReference _other, final boolean _copy) {
this._parentBuilder = _parentBuilder;
if (_other!= null) {
if (_copy) {
_storedValue = null;
this.id = _other.id;
this.size = _other.size;
this.mimeType = _other.mimeType;
this.type = _other.type;
this.href = _other.href;
} else {
_storedValue = _other;
}
} else {
_storedValue = null;
}
}
public Builder(final _B _parentBuilder, final ResultReference _other, final boolean _copy, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
this._parentBuilder = _parentBuilder;
if (_other!= null) {
if (_copy) {
_storedValue = null;
final PropertyTree idPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("id"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(idPropertyTree!= null):((idPropertyTree == null)||(!idPropertyTree.isLeaf())))) {
this.id = _other.id;
}
final PropertyTree sizePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("size"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(sizePropertyTree!= null):((sizePropertyTree == null)||(!sizePropertyTree.isLeaf())))) {
this.size = _other.size;
}
final PropertyTree mimeTypePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("mimeType"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(mimeTypePropertyTree!= null):((mimeTypePropertyTree == null)||(!mimeTypePropertyTree.isLeaf())))) {
this.mimeType = _other.mimeType;
}
final PropertyTree typePropertyTree = ((_propertyTree == null)?null:_propertyTree.get("type"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(typePropertyTree!= null):((typePropertyTree == null)||(!typePropertyTree.isLeaf())))) {
this.type = _other.type;
}
final PropertyTree hrefPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("href"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(hrefPropertyTree!= null):((hrefPropertyTree == null)||(!hrefPropertyTree.isLeaf())))) {
this.href = _other.href;
}
} else {
_storedValue = _other;
}
} else {
_storedValue = null;
}
}
public _B end() {
return this._parentBuilder;
}
protected<_P extends ResultReference >_P init(final _P _product) {
_product.id = this.id;
_product.size = this.size;
_product.mimeType = this.mimeType;
_product.type = this.type;
_product.href = this.href;
return _product;
}
/**
* Sets the new value of "id" (any previous value will be replaced)
*
* @param id
* New value of the "id" property.
*/
public ResultReference.Builder<_B> withId(final String id) {
this.id = id;
return this;
}
/**
* Sets the new value of "size" (any previous value will be replaced)
*
* @param size
* New value of the "size" property.
*/
public ResultReference.Builder<_B> withSize(final Long size) {
this.size = size;
return this;
}
/**
* Sets the new value of "mimeType" (any previous value will be replaced)
*
* @param mimeType
* New value of the "mimeType" property.
*/
public ResultReference.Builder<_B> withMimeType(final String mimeType) {
this.mimeType = mimeType;
return this;
}
/**
* Sets the new value of "type" (any previous value will be replaced)
*
* @param type
* New value of the "type" property.
*/
public ResultReference.Builder<_B> withType(final String type) {
this.type = type;
return this;
}
/**
* Sets the new value of "href" (any previous value will be replaced)
*
* @param href
* New value of the "href" property.
*/
public ResultReference.Builder<_B> withHref(final String href) {
this.href = href;
return this;
}
@Override
public ResultReference build() {
if (_storedValue == null) {
return this.init(new ResultReference());
} else {
return ((ResultReference) _storedValue);
}
}
public ResultReference.Builder<_B> copyOf(final ResultReference _other) {
_other.copyTo(this);
return this;
}
public ResultReference.Builder<_B> copyOf(final ResultReference.Builder _other) {
return copyOf(_other.build());
}
}
public class Modifier {
public void setId(final String id) {
ResultReference.this.setId(id);
}
public void setSize(final Long size) {
ResultReference.this.setSize(size);
}
public void setMimeType(final String mimeType) {
ResultReference.this.setMimeType(mimeType);
}
public void setType(final String type) {
ResultReference.this.setType(type);
}
public void setHref(final String href) {
ResultReference.this.setHref(href);
}
}
public static class PropInfo {
public static final transient SinglePropertyInfo ID = new SinglePropertyInfo("id", ResultReference.class, String.class, false, null, new QName("", "id"), new QName("http://www.w3.org/2001/XMLSchema", "string"), true) {
@Override
public String get(final ResultReference _instance_) {
return ((_instance_ == null)?null:_instance_.id);
}
@Override
public void set(final ResultReference _instance_, final String _value_) {
if (_instance_!= null) {
_instance_.id = _value_;
}
}
}
;
public static final transient SinglePropertyInfo SIZE = new SinglePropertyInfo("size", ResultReference.class, Long.class, false, null, new QName("", "size"), new QName("http://www.w3.org/2001/XMLSchema", "long"), true) {
@Override
public Long get(final ResultReference _instance_) {
return ((_instance_ == null)?null:_instance_.size);
}
@Override
public void set(final ResultReference _instance_, final Long _value_) {
if (_instance_!= null) {
_instance_.size = _value_;
}
}
}
;
public static final transient SinglePropertyInfo MIME_TYPE = new SinglePropertyInfo("mimeType", ResultReference.class, String.class, false, null, new QName("", "mime-type"), new QName("http://www.w3.org/2001/XMLSchema", "string"), true) {
@Override
public String get(final ResultReference _instance_) {
return ((_instance_ == null)?null:_instance_.mimeType);
}
@Override
public void set(final ResultReference _instance_, final String _value_) {
if (_instance_!= null) {
_instance_.mimeType = _value_;
}
}
}
;
public static final transient SinglePropertyInfo TYPE = new SinglePropertyInfo("type", ResultReference.class, String.class, false, "simple", new QName("http://www.w3.org/1999/xlink", "type"), new QName("http://www.w3.org/1999/xlink", "anonymousAttributeType"), true) {
@Override
public String get(final ResultReference _instance_) {
return ((_instance_ == null)?null:_instance_.type);
}
@Override
public void set(final ResultReference _instance_, final String _value_) {
if (_instance_!= null) {
_instance_.type = _value_;
}
}
}
;
public static final transient SinglePropertyInfo HREF = new SinglePropertyInfo("href", ResultReference.class, String.class, false, null, new QName("http://www.w3.org/1999/xlink", "href"), new QName("http://www.w3.org/2001/XMLSchema", "anyURI"), true) {
@Override
public String get(final ResultReference _instance_) {
return ((_instance_ == null)?null:_instance_.href);
}
@Override
public void set(final ResultReference _instance_, final String _value_) {
if (_instance_!= null) {
_instance_.href = _value_;
}
}
}
;
}
public static class Select
extends ResultReference.Selector
{
Select() {
super(null, null, null);
}
public static ResultReference.Select _root() {
return new ResultReference.Select();
}
}
public static class Selector , TParent >
extends com.kscs.util.jaxb.Selector
{
private com.kscs.util.jaxb.Selector> id = null;
private com.kscs.util.jaxb.Selector> size = null;
private com.kscs.util.jaxb.Selector> mimeType = null;
private com.kscs.util.jaxb.Selector> type = null;
private com.kscs.util.jaxb.Selector> href = null;
public Selector(final TRoot root, final TParent parent, final String propertyName) {
super(root, parent, propertyName);
}
@Override
public Map buildChildren() {
final Map products = new HashMap<>();
products.putAll(super.buildChildren());
if (this.id!= null) {
products.put("id", this.id.init());
}
if (this.size!= null) {
products.put("size", this.size.init());
}
if (this.mimeType!= null) {
products.put("mimeType", this.mimeType.init());
}
if (this.type!= null) {
products.put("type", this.type.init());
}
if (this.href!= null) {
products.put("href", this.href.init());
}
return products;
}
public com.kscs.util.jaxb.Selector> id() {
return ((this.id == null)?this.id = new com.kscs.util.jaxb.Selector<>(this._root, this, "id"):this.id);
}
public com.kscs.util.jaxb.Selector> size() {
return ((this.size == null)?this.size = new com.kscs.util.jaxb.Selector<>(this._root, this, "size"):this.size);
}
public com.kscs.util.jaxb.Selector> mimeType() {
return ((this.mimeType == null)?this.mimeType = new com.kscs.util.jaxb.Selector<>(this._root, this, "mimeType"):this.mimeType);
}
public com.kscs.util.jaxb.Selector> type() {
return ((this.type == null)?this.type = new com.kscs.util.jaxb.Selector<>(this._root, this, "type"):this.type);
}
public com.kscs.util.jaxb.Selector> href() {
return ((this.href == null)?this.href = new com.kscs.util.jaxb.Selector<>(this._root, this, "href"):this.href);
}
}
}