org.javastro.ivoa.entities.resource.applications.ApplicationCapability Maven / Gradle / Ivy
package org.javastro.ivoa.entities.resource.applications;
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 jakarta.annotation.Generated;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlAttribute;
import jakarta.xml.bind.annotation.XmlType;
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;
/**
* generic description of a capability of an application - this
* is different from a service capability because it does not
* have an interface associated - perhaps should be derived
* from a common base class though.
*
* Java class for ApplicationCapability complex type
.
*
* The following schema fragment specifies the expected content contained within this class.
*
* {@code
*
*
*
*
*
*
*
* }
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ApplicationCapability")
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00")
public class ApplicationCapability implements Cloneable, Copyable, PartialCopyable, MergeFrom, ToString
{
@XmlAttribute(name = "standardID")
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00")
protected String standardID;
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00")
protected transient ApplicationCapability.Modifier __cachedModifier__;
/**
* Default no-arg constructor
*
*/
public ApplicationCapability() {
super();
}
/**
* Fully-initialising value constructor
*
*/
public ApplicationCapability(final String standardID) {
this.standardID = standardID;
}
/**
* Gets the value of the standardID 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 getStandardID() {
return standardID;
}
/**
* Sets the value of the standardID 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 setStandardID(String value) {
this.standardID = value;
}
@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 ApplicationCapability that = ((ApplicationCapability) object);
{
String leftStandardID;
leftStandardID = this.getStandardID();
String rightStandardID;
rightStandardID = that.getStandardID();
if (this.standardID!= null) {
if (that.standardID!= null) {
if (!leftStandardID.equals(rightStandardID)) {
return false;
}
} else {
return false;
}
} else {
if (that.standardID!= 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 theStandardID;
theStandardID = this.getStandardID();
if (this.standardID!= null) {
currentHashCode += theStandardID.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 theStandardID;
theStandardID = this.getStandardID();
strategy.appendField(locator, this, "standardID", buffer, theStandardID, (this.standardID!= 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 ApplicationCapability) {
final ApplicationCapability target = this;
final ApplicationCapability leftObject = ((ApplicationCapability) left);
final ApplicationCapability rightObject = ((ApplicationCapability) right);
{
Boolean standardIDShouldBeMergedAndSet = strategy.shouldBeMergedAndSet(leftLocator, rightLocator, (leftObject.standardID!= null), (rightObject.standardID!= null));
if (standardIDShouldBeMergedAndSet == Boolean.TRUE) {
String lhsStandardID;
lhsStandardID = leftObject.getStandardID();
String rhsStandardID;
rhsStandardID = rightObject.getStandardID();
String mergedStandardID = ((String) strategy.merge(LocatorUtils.property(leftLocator, "standardID", lhsStandardID), LocatorUtils.property(rightLocator, "standardID", rhsStandardID), lhsStandardID, rhsStandardID, (leftObject.standardID!= null), (rightObject.standardID!= null)));
target.setStandardID(mergedStandardID);
} else {
if (standardIDShouldBeMergedAndSet == Boolean.FALSE) {
target.standardID = 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 ApplicationCapability();
}
@Override
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00")
public ApplicationCapability clone() {
final ApplicationCapability _newObject;
try {
_newObject = ((ApplicationCapability) 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 ApplicationCapability createCopy() {
final ApplicationCapability _newObject;
try {
_newObject = ((ApplicationCapability) super.clone());
} catch (CloneNotSupportedException e) {
throw new RuntimeException(e);
}
_newObject.standardID = this.standardID;
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 ApplicationCapability createCopy(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
final ApplicationCapability _newObject;
try {
_newObject = ((ApplicationCapability) super.clone());
} catch (CloneNotSupportedException e) {
throw new RuntimeException(e);
}
final PropertyTree standardIDPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("standardID"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(standardIDPropertyTree!= null):((standardIDPropertyTree == null)||(!standardIDPropertyTree.isLeaf())))) {
_newObject.standardID = this.standardID;
}
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 ApplicationCapability 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 ApplicationCapability 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 ApplicationCapability.Modifier modifier() {
if (null == this.__cachedModifier__) {
this.__cachedModifier__ = new ApplicationCapability.Modifier();
}
return ((ApplicationCapability.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 ApplicationCapability.Builder<_B> _other) {
_other.standardID = this.standardID;
}
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00")
public<_B >ApplicationCapability.Builder<_B> newCopyBuilder(final _B _parentBuilder) {
return new ApplicationCapability.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 ApplicationCapability.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 ApplicationCapability.Builder builder() {
return new ApplicationCapability.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 >ApplicationCapability.Builder<_B> copyOf(final ApplicationCapability _other) {
final ApplicationCapability.Builder<_B> _newBuilder = new ApplicationCapability.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 ApplicationCapability.Builder<_B> _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
final PropertyTree standardIDPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("standardID"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(standardIDPropertyTree!= null):((standardIDPropertyTree == null)||(!standardIDPropertyTree.isLeaf())))) {
_other.standardID = this.standardID;
}
}
@Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00")
public<_B >ApplicationCapability.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
return new ApplicationCapability.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 ApplicationCapability.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 >ApplicationCapability.Builder<_B> copyOf(final ApplicationCapability _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
final ApplicationCapability.Builder<_B> _newBuilder = new ApplicationCapability.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 ApplicationCapability.Builder copyExcept(final ApplicationCapability _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 ApplicationCapability.Builder copyOnly(final ApplicationCapability _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 ApplicationCapability visit(final PropertyVisitor _visitor_) {
_visitor_.visit(this);
_visitor_.visit(new SingleProperty<>(ApplicationCapability.PropInfo.STANDARD_ID, this));
return this;
}
public static class Builder<_B >implements Buildable
{
protected final _B _parentBuilder;
protected final ApplicationCapability _storedValue;
private String standardID;
public Builder(final _B _parentBuilder, final ApplicationCapability _other, final boolean _copy) {
this._parentBuilder = _parentBuilder;
if (_other!= null) {
if (_copy) {
_storedValue = null;
this.standardID = _other.standardID;
} else {
_storedValue = _other;
}
} else {
_storedValue = null;
}
}
public Builder(final _B _parentBuilder, final ApplicationCapability _other, final boolean _copy, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) {
this._parentBuilder = _parentBuilder;
if (_other!= null) {
if (_copy) {
_storedValue = null;
final PropertyTree standardIDPropertyTree = ((_propertyTree == null)?null:_propertyTree.get("standardID"));
if (((_propertyTreeUse == PropertyTreeUse.INCLUDE)?(standardIDPropertyTree!= null):((standardIDPropertyTree == null)||(!standardIDPropertyTree.isLeaf())))) {
this.standardID = _other.standardID;
}
} else {
_storedValue = _other;
}
} else {
_storedValue = null;
}
}
public _B end() {
return this._parentBuilder;
}
protected<_P extends ApplicationCapability >_P init(final _P _product) {
_product.standardID = this.standardID;
return _product;
}
/**
* Sets the new value of "standardID" (any previous value will be replaced)
*
* @param standardID
* New value of the "standardID" property.
*/
public ApplicationCapability.Builder<_B> withStandardID(final String standardID) {
this.standardID = standardID;
return this;
}
@Override
public ApplicationCapability build() {
if (_storedValue == null) {
return this.init(new ApplicationCapability());
} else {
return ((ApplicationCapability) _storedValue);
}
}
public ApplicationCapability.Builder<_B> copyOf(final ApplicationCapability _other) {
_other.copyTo(this);
return this;
}
public ApplicationCapability.Builder<_B> copyOf(final ApplicationCapability.Builder _other) {
return copyOf(_other.build());
}
}
public class Modifier {
public void setStandardID(final String standardID) {
ApplicationCapability.this.setStandardID(standardID);
}
}
public static class PropInfo {
public static final transient SinglePropertyInfo STANDARD_ID = new SinglePropertyInfo("standardID", ApplicationCapability.class, String.class, false, null, new QName("", "standardID"), new QName("http://www.ivoa.net/xml/VOResource/v1.0", "IdentifierURI"), true) {
@Override
public String get(final ApplicationCapability _instance_) {
return ((_instance_ == null)?null:_instance_.standardID);
}
@Override
public void set(final ApplicationCapability _instance_, final String _value_) {
if (_instance_!= null) {
_instance_.standardID = _value_;
}
}
}
;
}
public static class Select
extends ApplicationCapability.Selector
{
Select() {
super(null, null, null);
}
public static ApplicationCapability.Select _root() {
return new ApplicationCapability.Select();
}
}
public static class Selector , TParent >
extends com.kscs.util.jaxb.Selector
{
private com.kscs.util.jaxb.Selector> standardID = 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.standardID!= null) {
products.put("standardID", this.standardID.init());
}
return products;
}
public com.kscs.util.jaxb.Selector> standardID() {
return ((this.standardID == null)?this.standardID = new com.kscs.util.jaxb.Selector<>(this._root, this, "standardID"):this.standardID);
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy