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

org.javastro.ivoa.entities.resource.registry.OAIHTTP Maven / Gradle / Ivy


package org.javastro.ivoa.entities.resource.registry;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
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 jakarta.annotation.Generated;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlType;
import org.javastro.ivoa.entities.resource.AccessURL;
import org.javastro.ivoa.entities.resource.MirrorURL;
import org.javastro.ivoa.entities.resource.SecurityMethod;
import org.javastro.ivoa.entities.resource.ServiceInterface;
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;


/**
 * the accessURL child element is the base URL for the OAI
 *            service as defined in section 3.1.1 of the OAI PMH
 *            standard.
 * 
 * 

Java class for OAIHTTP complex type

. * *

The following schema fragment specifies the expected content contained within this class.

* *
{@code
 * 
 *   
 *     
 *       
 *       
 *     
 *   
 * 
 * }
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "OAIHTTP") @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") public class OAIHTTP extends ServiceInterface implements Cloneable, Copyable, PartialCopyable, MergeFrom, ToString { /** * Default no-arg constructor * */ public OAIHTTP() { super(); } /** * Fully-initialising value constructor * */ public OAIHTTP(final List accessURLs, final List mirrorURLs, final SecurityMethod securityMethod, final String testQueryString, final String version, final String role) { super(accessURLs, mirrorURLs, securityMethod, testQueryString, version, role); } @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; } if (!super.equals(object)) { 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)+ super.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) { super.appendFields(locator, buffer, strategy); 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) { super.mergeFrom(leftLocator, rightLocator, 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 Object createNewInstance() { return new OAIHTTP(); } @Override @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") public OAIHTTP clone() { final OAIHTTP _newObject; _newObject = ((OAIHTTP) super.clone()); 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 OAIHTTP createCopy() { final OAIHTTP _newObject = ((OAIHTTP) super.createCopy()); 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 OAIHTTP createCopy(final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final OAIHTTP _newObject = ((OAIHTTP) super.createCopy(_propertyTree, _propertyTreeUse)); 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 OAIHTTP 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 OAIHTTP 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 OAIHTTP.Modifier modifier() { if (null == this.__cachedModifier__) { this.__cachedModifier__ = new OAIHTTP.Modifier(); } return ((OAIHTTP.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 OAIHTTP.Builder<_B> _other) { super.copyTo(_other); } @Override @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") public<_B >OAIHTTP.Builder<_B> newCopyBuilder(final _B _parentBuilder) { return new OAIHTTP.Builder<_B>(_parentBuilder, this, true); } @Override @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") public OAIHTTP.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 OAIHTTP.Builder builder() { return new OAIHTTP.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 >OAIHTTP.Builder<_B> copyOf(final ServiceInterface _other) { final OAIHTTP.Builder<_B> _newBuilder = new OAIHTTP.Builder<>(null, null, false); _other.copyTo(_newBuilder); 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<_B >OAIHTTP.Builder<_B> copyOf(final OAIHTTP _other) { final OAIHTTP.Builder<_B> _newBuilder = new OAIHTTP.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 OAIHTTP.Builder<_B> _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { super.copyTo(_other, _propertyTree, _propertyTreeUse); } @Override @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") public<_B >OAIHTTP.Builder<_B> newCopyBuilder(final _B _parentBuilder, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { return new OAIHTTP.Builder<_B>(_parentBuilder, this, true, _propertyTree, _propertyTreeUse); } @Override @Generated(value = "com.sun.tools.xjc.Driver", comments = "JAXB RI v4.0.4", date = "2024-10-20T18:15:02+01:00") public OAIHTTP.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 >OAIHTTP.Builder<_B> copyOf(final ServiceInterface _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final OAIHTTP.Builder<_B> _newBuilder = new OAIHTTP.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<_B >OAIHTTP.Builder<_B> copyOf(final OAIHTTP _other, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { final OAIHTTP.Builder<_B> _newBuilder = new OAIHTTP.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 OAIHTTP.Builder copyExcept(final ServiceInterface _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 OAIHTTP.Builder copyExcept(final OAIHTTP _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 OAIHTTP.Builder copyOnly(final ServiceInterface _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 static OAIHTTP.Builder copyOnly(final OAIHTTP _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 OAIHTTP visit(final PropertyVisitor _visitor_) { super.visit(_visitor_); return this; } public static class Builder<_B > extends ServiceInterface.Builder<_B> implements Buildable { public Builder(final _B _parentBuilder, final OAIHTTP _other, final boolean _copy) { super(_parentBuilder, _other, _copy); if (_other!= null) { } } public Builder(final _B _parentBuilder, final OAIHTTP _other, final boolean _copy, final PropertyTree _propertyTree, final PropertyTreeUse _propertyTreeUse) { super(_parentBuilder, _other, _copy, _propertyTree, _propertyTreeUse); if (_other!= null) { } } protected<_P extends OAIHTTP >_P init(final _P _product) { return super.init(_product); } /** * Adds the given items to the value of "accessURLs" * * @param accessURLs * Items to add to the value of the "accessURLs" property */ @Override public OAIHTTP.Builder<_B> addAccessURLs(final Iterable accessURLs) { super.addAccessURLs(accessURLs); return this; } /** * Adds the given items to the value of "accessURLs" * * @param accessURLs * Items to add to the value of the "accessURLs" property */ @Override public OAIHTTP.Builder<_B> addAccessURLs(AccessURL... accessURLs) { super.addAccessURLs(accessURLs); return this; } /** * Sets the new value of "accessURLs" (any previous value will be replaced) * * @param accessURLs * New value of the "accessURLs" property. */ @Override public OAIHTTP.Builder<_B> withAccessURLs(final Iterable accessURLs) { super.withAccessURLs(accessURLs); return this; } /** * Sets the new value of "accessURLs" (any previous value will be replaced) * * @param accessURLs * New value of the "accessURLs" property. */ @Override public OAIHTTP.Builder<_B> withAccessURLs(AccessURL... accessURLs) { super.withAccessURLs(accessURLs); return this; } /** * Adds the given items to the value of "mirrorURLs" * * @param mirrorURLs * Items to add to the value of the "mirrorURLs" property */ @Override public OAIHTTP.Builder<_B> addMirrorURLs(final Iterable mirrorURLs) { super.addMirrorURLs(mirrorURLs); return this; } /** * Adds the given items to the value of "mirrorURLs" * * @param mirrorURLs * Items to add to the value of the "mirrorURLs" property */ @Override public OAIHTTP.Builder<_B> addMirrorURLs(MirrorURL... mirrorURLs) { super.addMirrorURLs(mirrorURLs); return this; } /** * Sets the new value of "mirrorURLs" (any previous value will be replaced) * * @param mirrorURLs * New value of the "mirrorURLs" property. */ @Override public OAIHTTP.Builder<_B> withMirrorURLs(final Iterable mirrorURLs) { super.withMirrorURLs(mirrorURLs); return this; } /** * Sets the new value of "mirrorURLs" (any previous value will be replaced) * * @param mirrorURLs * New value of the "mirrorURLs" property. */ @Override public OAIHTTP.Builder<_B> withMirrorURLs(MirrorURL... mirrorURLs) { super.withMirrorURLs(mirrorURLs); return this; } /** * Sets the new value of "securityMethod" (any previous value will be replaced) * * @param securityMethod * New value of the "securityMethod" property. */ @Override public OAIHTTP.Builder<_B> withSecurityMethod(final SecurityMethod securityMethod) { super.withSecurityMethod(securityMethod); return this; } /** * Returns the existing builder or a new builder to build the value of the * "securityMethod" property. * Use {@link org.javastro.ivoa.entities.resource.SecurityMethod.Builder#end()} to * return to the current builder. * * @return * A new builder to build the value of the "securityMethod" property. * Use {@link org.javastro.ivoa.entities.resource.SecurityMethod.Builder#end()} to * return to the current builder. */ public SecurityMethod.Builder> withSecurityMethod() { return ((SecurityMethod.Builder> ) super.withSecurityMethod()); } /** * Sets the new value of "testQueryString" (any previous value will be replaced) * * @param testQueryString * New value of the "testQueryString" property. */ @Override public OAIHTTP.Builder<_B> withTestQueryString(final String testQueryString) { super.withTestQueryString(testQueryString); return this; } /** * Sets the new value of "version" (any previous value will be replaced) * * @param version * New value of the "version" property. */ @Override public OAIHTTP.Builder<_B> withVersion(final String version) { super.withVersion(version); return this; } /** * Sets the new value of "role" (any previous value will be replaced) * * @param role * New value of the "role" property. */ @Override public OAIHTTP.Builder<_B> withRole(final String role) { super.withRole(role); return this; } @Override public OAIHTTP build() { if (_storedValue == null) { return this.init(new OAIHTTP()); } else { return ((OAIHTTP) _storedValue); } } public OAIHTTP.Builder<_B> copyOf(final OAIHTTP _other) { _other.copyTo(this); return this; } public OAIHTTP.Builder<_B> copyOf(final OAIHTTP.Builder _other) { return copyOf(_other.build()); } } public class Modifier extends ServiceInterface.Modifier { } public static class PropInfo { } public static class Select extends OAIHTTP.Selector { Select() { super(null, null, null); } public static OAIHTTP.Select _root() { return new OAIHTTP.Select(); } } public static class Selector , TParent > extends ServiceInterface.Selector { 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()); return products; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy