removed old aphia interface

This commit is contained in:
lucio 2020-03-10 13:14:55 +01:00
parent ff1ea51e30
commit 4636c87f02
9 changed files with 0 additions and 2797 deletions

View File

@ -1,16 +0,0 @@
/**
* AphiaNameService.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.2RC2 Nov 16, 2004 (12:19:44 EST) WSDL2Java emitter.
*/
package aphia.v1_0.worms;
public interface AphiaNameService extends javax.xml.rpc.Service {
public java.lang.String getAphiaNameServicePortAddress();
public aphia.v1_0.worms.AphiaNameServicePortType getAphiaNameServicePort() throws javax.xml.rpc.ServiceException;
public aphia.v1_0.worms.AphiaNameServicePortType getAphiaNameServicePort(java.net.URL portAddress) throws javax.xml.rpc.ServiceException;
}

View File

@ -1,647 +0,0 @@
/**
* AphiaNameServiceBindingStub.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.2RC2 Nov 16, 2004 (12:19:44 EST) WSDL2Java emitter.
*/
package aphia.v1_0.worms;
public class AphiaNameServiceBindingStub extends org.apache.axis.client.Stub implements aphia.v1_0.worms.AphiaNameServicePortType {
private java.util.Vector cachedSerClasses = new java.util.Vector();
private java.util.Vector cachedSerQNames = new java.util.Vector();
private java.util.Vector cachedSerFactories = new java.util.Vector();
private java.util.Vector cachedDeserFactories = new java.util.Vector();
static org.apache.axis.description.OperationDesc [] _operations;
static {
_operations = new org.apache.axis.description.OperationDesc[12];
_initOperationDesc1();
_initOperationDesc2();
}
private static void _initOperationDesc1(){
org.apache.axis.description.OperationDesc oper;
oper = new org.apache.axis.description.OperationDesc();
oper.setName("getAphiaID");
oper.addParameter(new javax.xml.namespace.QName("", "scientificname"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, org.apache.axis.description.ParameterDesc.IN, false, false);
oper.addParameter(new javax.xml.namespace.QName("", "marine_only"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"), boolean.class, org.apache.axis.description.ParameterDesc.IN, false, false);
oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
oper.setReturnClass(int.class);
oper.setReturnQName(new javax.xml.namespace.QName("", "return"));
oper.setStyle(org.apache.axis.constants.Style.RPC);
oper.setUse(org.apache.axis.constants.Use.ENCODED);
_operations[0] = oper;
oper = new org.apache.axis.description.OperationDesc();
oper.setName("getAphiaRecords");
oper.addParameter(new javax.xml.namespace.QName("", "scientificname"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, org.apache.axis.description.ParameterDesc.IN, false, false);
oper.addParameter(new javax.xml.namespace.QName("", "like"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"), boolean.class, org.apache.axis.description.ParameterDesc.IN, false, false);
oper.addParameter(new javax.xml.namespace.QName("", "fuzzy"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"), boolean.class, org.apache.axis.description.ParameterDesc.IN, false, false);
oper.addParameter(new javax.xml.namespace.QName("", "marine_only"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"), boolean.class, org.apache.axis.description.ParameterDesc.IN, false, false);
oper.addParameter(new javax.xml.namespace.QName("", "offset"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"), int.class, org.apache.axis.description.ParameterDesc.IN, false, false);
oper.setReturnType(new javax.xml.namespace.QName("http://aphia/v1.0", "AphiaRecords"));
oper.setReturnClass(aphia.v1_0.worms.AphiaRecord[].class);
oper.setReturnQName(new javax.xml.namespace.QName("", "return"));
oper.setStyle(org.apache.axis.constants.Style.RPC);
oper.setUse(org.apache.axis.constants.Use.ENCODED);
_operations[1] = oper;
oper = new org.apache.axis.description.OperationDesc();
oper.setName("getAphiaNameByID");
oper.addParameter(new javax.xml.namespace.QName("", "AphiaID"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"), int.class, org.apache.axis.description.ParameterDesc.IN, false, false);
oper.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
oper.setReturnClass(java.lang.String.class);
oper.setReturnQName(new javax.xml.namespace.QName("", "return"));
oper.setStyle(org.apache.axis.constants.Style.RPC);
oper.setUse(org.apache.axis.constants.Use.ENCODED);
_operations[2] = oper;
oper = new org.apache.axis.description.OperationDesc();
oper.setName("getAphiaRecordByID");
oper.addParameter(new javax.xml.namespace.QName("", "AphiaID"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"), int.class, org.apache.axis.description.ParameterDesc.IN, false, false);
oper.setReturnType(new javax.xml.namespace.QName("http://aphia/v1.0", "AphiaRecord"));
oper.setReturnClass(aphia.v1_0.worms.AphiaRecord.class);
oper.setReturnQName(new javax.xml.namespace.QName("", "return"));
oper.setStyle(org.apache.axis.constants.Style.RPC);
oper.setUse(org.apache.axis.constants.Use.ENCODED);
_operations[3] = oper;
oper = new org.apache.axis.description.OperationDesc();
oper.setName("getAphiaRecordByTSN");
oper.addParameter(new javax.xml.namespace.QName("", "TSN"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"), int.class, org.apache.axis.description.ParameterDesc.IN, false, false);
oper.setReturnType(new javax.xml.namespace.QName("http://aphia/v1.0", "AphiaRecord"));
oper.setReturnClass(aphia.v1_0.worms.AphiaRecord.class);
oper.setReturnQName(new javax.xml.namespace.QName("", "return"));
oper.setStyle(org.apache.axis.constants.Style.RPC);
oper.setUse(org.apache.axis.constants.Use.ENCODED);
_operations[4] = oper;
oper = new org.apache.axis.description.OperationDesc();
oper.setName("getAphiaRecordsByNames");
oper.addParameter(new javax.xml.namespace.QName("", "scientificnames"), new javax.xml.namespace.QName("http://aphia/v1.0", "scientificnames"), java.lang.String[].class, org.apache.axis.description.ParameterDesc.IN, false, false);
oper.addParameter(new javax.xml.namespace.QName("", "like"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"), boolean.class, org.apache.axis.description.ParameterDesc.IN, false, false);
oper.addParameter(new javax.xml.namespace.QName("", "fuzzy"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"), boolean.class, org.apache.axis.description.ParameterDesc.IN, false, false);
oper.addParameter(new javax.xml.namespace.QName("", "marine_only"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"), boolean.class, org.apache.axis.description.ParameterDesc.IN, false, false);
oper.setReturnType(new javax.xml.namespace.QName("http://aphia/v1.0", "AphiaMatches"));
oper.setReturnClass(aphia.v1_0.worms.AphiaRecord[][].class);
oper.setReturnQName(new javax.xml.namespace.QName("", "return"));
oper.setStyle(org.apache.axis.constants.Style.RPC);
oper.setUse(org.apache.axis.constants.Use.ENCODED);
_operations[5] = oper;
oper = new org.apache.axis.description.OperationDesc();
oper.setName("getAphiaRecordsByVernacular");
oper.addParameter(new javax.xml.namespace.QName("", "vernacular"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, org.apache.axis.description.ParameterDesc.IN, false, false);
oper.addParameter(new javax.xml.namespace.QName("", "like"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"), boolean.class, org.apache.axis.description.ParameterDesc.IN, false, false);
oper.addParameter(new javax.xml.namespace.QName("", "offset"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"), int.class, org.apache.axis.description.ParameterDesc.IN, false, false);
oper.setReturnType(new javax.xml.namespace.QName("http://aphia/v1.0", "AphiaRecords"));
oper.setReturnClass(aphia.v1_0.worms.AphiaRecord[].class);
oper.setReturnQName(new javax.xml.namespace.QName("", "return"));
oper.setStyle(org.apache.axis.constants.Style.RPC);
oper.setUse(org.apache.axis.constants.Use.ENCODED);
_operations[6] = oper;
oper = new org.apache.axis.description.OperationDesc();
oper.setName("getAphiaClassificationByID");
oper.addParameter(new javax.xml.namespace.QName("", "AphiaID"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"), int.class, org.apache.axis.description.ParameterDesc.IN, false, false);
oper.setReturnType(new javax.xml.namespace.QName("http://aphia/v1.0", "Classification"));
oper.setReturnClass(aphia.v1_0.worms.Classification.class);
oper.setReturnQName(new javax.xml.namespace.QName("", "return"));
oper.setStyle(org.apache.axis.constants.Style.RPC);
oper.setUse(org.apache.axis.constants.Use.ENCODED);
_operations[7] = oper;
oper = new org.apache.axis.description.OperationDesc();
oper.setName("getSourcesByAphiaID");
oper.addParameter(new javax.xml.namespace.QName("", "AphiaID"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"), int.class, org.apache.axis.description.ParameterDesc.IN, false, false);
oper.setReturnType(new javax.xml.namespace.QName("http://aphia/v1.0", "Sources"));
oper.setReturnClass(aphia.v1_0.worms.Source[].class);
oper.setReturnQName(new javax.xml.namespace.QName("", "return"));
oper.setStyle(org.apache.axis.constants.Style.RPC);
oper.setUse(org.apache.axis.constants.Use.ENCODED);
_operations[8] = oper;
oper = new org.apache.axis.description.OperationDesc();
oper.setName("getAphiaSynonymsByID");
oper.addParameter(new javax.xml.namespace.QName("", "AphiaID"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"), int.class, org.apache.axis.description.ParameterDesc.IN, false, false);
oper.setReturnType(new javax.xml.namespace.QName("http://aphia/v1.0", "AphiaRecords"));
oper.setReturnClass(aphia.v1_0.worms.AphiaRecord[].class);
oper.setReturnQName(new javax.xml.namespace.QName("", "return"));
oper.setStyle(org.apache.axis.constants.Style.RPC);
oper.setUse(org.apache.axis.constants.Use.ENCODED);
_operations[9] = oper;
}
private static void _initOperationDesc2(){
org.apache.axis.description.OperationDesc oper;
oper = new org.apache.axis.description.OperationDesc();
oper.setName("getAphiaVernacularsByID");
oper.addParameter(new javax.xml.namespace.QName("", "AphiaID"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"), int.class, org.apache.axis.description.ParameterDesc.IN, false, false);
oper.setReturnType(new javax.xml.namespace.QName("http://aphia/v1.0", "Vernaculars"));
oper.setReturnClass(aphia.v1_0.worms.Vernacular[].class);
oper.setReturnQName(new javax.xml.namespace.QName("", "return"));
oper.setStyle(org.apache.axis.constants.Style.RPC);
oper.setUse(org.apache.axis.constants.Use.ENCODED);
_operations[10] = oper;
oper = new org.apache.axis.description.OperationDesc();
oper.setName("getAphiaChildrenByID");
oper.addParameter(new javax.xml.namespace.QName("", "AphiaID"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"), int.class, org.apache.axis.description.ParameterDesc.IN, false, false);
oper.addParameter(new javax.xml.namespace.QName("", "offset"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"), int.class, org.apache.axis.description.ParameterDesc.IN, false, false);
oper.setReturnType(new javax.xml.namespace.QName("http://aphia/v1.0", "AphiaRecords"));
oper.setReturnClass(aphia.v1_0.worms.AphiaRecord[].class);
oper.setReturnQName(new javax.xml.namespace.QName("", "return"));
oper.setStyle(org.apache.axis.constants.Style.RPC);
oper.setUse(org.apache.axis.constants.Use.ENCODED);
_operations[11] = oper;
}
public AphiaNameServiceBindingStub() throws org.apache.axis.AxisFault {
this(null);
}
public AphiaNameServiceBindingStub(java.net.URL endpointURL, javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
this(service);
super.cachedEndpoint = endpointURL;
}
public AphiaNameServiceBindingStub(javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
if (service == null) {
super.service = new org.apache.axis.client.Service();
} else {
super.service = service;
}
java.lang.Class cls;
javax.xml.namespace.QName qName;
java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
java.lang.Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
java.lang.Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class;
java.lang.Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
java.lang.Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class;
java.lang.Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
java.lang.Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
java.lang.Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
java.lang.Class simplelistsf = org.apache.axis.encoding.ser.SimpleListSerializerFactory.class;
java.lang.Class simplelistdf = org.apache.axis.encoding.ser.SimpleListDeserializerFactory.class;
qName = new javax.xml.namespace.QName("http://aphia/v1.0", "Sources");
cachedSerQNames.add(qName);
cls = aphia.v1_0.worms.Source[].class;
cachedSerClasses.add(cls);
cachedSerFactories.add(arraysf);
cachedDeserFactories.add(arraydf);
qName = new javax.xml.namespace.QName("http://aphia/v1.0", "AphiaRecords");
cachedSerQNames.add(qName);
cls = aphia.v1_0.worms.AphiaRecord[].class;
cachedSerClasses.add(cls);
cachedSerFactories.add(arraysf);
cachedDeserFactories.add(arraydf);
qName = new javax.xml.namespace.QName("http://aphia/v1.0", "Source");
cachedSerQNames.add(qName);
cls = aphia.v1_0.worms.Source.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(beansf);
cachedDeserFactories.add(beandf);
qName = new javax.xml.namespace.QName("http://aphia/v1.0", "Vernacular");
cachedSerQNames.add(qName);
cls = aphia.v1_0.worms.Vernacular.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(beansf);
cachedDeserFactories.add(beandf);
qName = new javax.xml.namespace.QName("http://aphia/v1.0", "Vernaculars");
cachedSerQNames.add(qName);
cls = aphia.v1_0.worms.Vernacular[].class;
cachedSerClasses.add(cls);
cachedSerFactories.add(arraysf);
cachedDeserFactories.add(arraydf);
qName = new javax.xml.namespace.QName("http://aphia/v1.0", "AphiaRecord");
cachedSerQNames.add(qName);
cls = aphia.v1_0.worms.AphiaRecord.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(beansf);
cachedDeserFactories.add(beandf);
qName = new javax.xml.namespace.QName("http://aphia/v1.0", "Classification");
cachedSerQNames.add(qName);
cls = aphia.v1_0.worms.Classification.class;
cachedSerClasses.add(cls);
cachedSerFactories.add(beansf);
cachedDeserFactories.add(beandf);
qName = new javax.xml.namespace.QName("http://aphia/v1.0", "scientificnames");
cachedSerQNames.add(qName);
cls = java.lang.String[].class;
cachedSerClasses.add(cls);
cachedSerFactories.add(arraysf);
cachedDeserFactories.add(arraydf);
qName = new javax.xml.namespace.QName("http://aphia/v1.0", "AphiaMatches");
cachedSerQNames.add(qName);
cls = aphia.v1_0.worms.AphiaRecord[][].class;
cachedSerClasses.add(cls);
cachedSerFactories.add(arraysf);
cachedDeserFactories.add(arraydf);
}
protected org.apache.axis.client.Call createCall() throws java.rmi.RemoteException {
try {
org.apache.axis.client.Call _call =
(org.apache.axis.client.Call) super.service.createCall();
if (super.maintainSessionSet) {
_call.setMaintainSession(super.maintainSession);
}
if (super.cachedUsername != null) {
_call.setUsername(super.cachedUsername);
}
if (super.cachedPassword != null) {
_call.setPassword(super.cachedPassword);
}
if (super.cachedEndpoint != null) {
_call.setTargetEndpointAddress(super.cachedEndpoint);
}
if (super.cachedTimeout != null) {
_call.setTimeout(super.cachedTimeout);
}
if (super.cachedPortName != null) {
_call.setPortName(super.cachedPortName);
}
java.util.Enumeration keys = super.cachedProperties.keys();
while (keys.hasMoreElements()) {
java.lang.String key = (java.lang.String) keys.nextElement();
_call.setProperty(key, super.cachedProperties.get(key));
}
// All the type mapping information is registered
// when the first call is made.
// The type mapping information is actually registered in
// the TypeMappingRegistry of the service, which
// is the reason why registration is only needed for the first call.
synchronized (this) {
if (firstCall()) {
// must set encoding style before registering serializers
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
_call.setEncodingStyle(org.apache.axis.Constants.URI_SOAP11_ENC);
for (int i = 0; i < cachedSerFactories.size(); ++i) {
java.lang.Class cls = (java.lang.Class) cachedSerClasses.get(i);
javax.xml.namespace.QName qName =
(javax.xml.namespace.QName) cachedSerQNames.get(i);
java.lang.Class sf = (java.lang.Class)
cachedSerFactories.get(i);
java.lang.Class df = (java.lang.Class)
cachedDeserFactories.get(i);
_call.registerTypeMapping(cls, qName, sf, df, false);
}
}
}
return _call;
}
catch (java.lang.Throwable _t) {
throw new org.apache.axis.AxisFault("Failure trying to get the Call object", _t);
}
}
public int getAphiaID(java.lang.String scientificname, boolean marine_only) throws java.rmi.RemoteException {
if (super.cachedEndpoint == null) {
throw new org.apache.axis.NoEndPointException();
}
org.apache.axis.client.Call _call = createCall();
_call.setOperation(_operations[0]);
_call.setUseSOAPAction(true);
//_call.setSOAPActionURI("getAphiaID");
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
_call.setOperationName(new javax.xml.namespace.QName("http://aphia/v1.0/AphiaID", "getAphiaID"));
setRequestHeaders(_call);
setAttachments(_call);
java.lang.Object _resp = _call.invoke(new java.lang.Object[] {scientificname, new java.lang.Boolean(marine_only)});
if (_resp instanceof java.rmi.RemoteException) {
throw (java.rmi.RemoteException)_resp;
}
else {
extractAttachments(_call);
try {
return ((java.lang.Integer) _resp).intValue();
} catch (java.lang.Exception _exception) {
return ((java.lang.Integer) org.apache.axis.utils.JavaUtils.convert(_resp, int.class)).intValue();
}
}
}
public aphia.v1_0.worms.AphiaRecord[] getAphiaRecords(java.lang.String scientificname, boolean like, boolean fuzzy, boolean marine_only, int offset) throws java.rmi.RemoteException {
if (super.cachedEndpoint == null) {
throw new org.apache.axis.NoEndPointException();
}
org.apache.axis.client.Call _call = createCall();
_call.setOperation(_operations[1]);
_call.setUseSOAPAction(true);
//_call.setSOAPActionURI("getAphiaRecords");
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
_call.setOperationName(new javax.xml.namespace.QName("http://aphia/v1.0/AphiaRecords", "getAphiaRecords"));
setRequestHeaders(_call);
setAttachments(_call);
java.lang.Object _resp = _call.invoke(new java.lang.Object[] {scientificname, new java.lang.Boolean(like), new java.lang.Boolean(fuzzy), new java.lang.Boolean(marine_only), new java.lang.Integer(offset)});
if (_resp instanceof java.rmi.RemoteException) {
throw (java.rmi.RemoteException)_resp;
}
else {
extractAttachments(_call);
try {
return (aphia.v1_0.worms.AphiaRecord[]) _resp;
} catch (java.lang.Exception _exception) {
return (aphia.v1_0.worms.AphiaRecord[]) org.apache.axis.utils.JavaUtils.convert(_resp, aphia.v1_0.worms.AphiaRecord[].class);
}
}
}
public java.lang.String getAphiaNameByID(int aphiaID) throws java.rmi.RemoteException {
if (super.cachedEndpoint == null) {
throw new org.apache.axis.NoEndPointException();
}
org.apache.axis.client.Call _call = createCall();
_call.setOperation(_operations[2]);
_call.setUseSOAPAction(true);
//_call.setSOAPActionURI("getAphiaNameByID");
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
_call.setOperationName(new javax.xml.namespace.QName("http://aphia/v1.0/AphiaName", "getAphiaNameByID"));
setRequestHeaders(_call);
setAttachments(_call);
java.lang.Object _resp = _call.invoke(new java.lang.Object[] {new java.lang.Integer(aphiaID)});
if (_resp instanceof java.rmi.RemoteException) {
throw (java.rmi.RemoteException)_resp;
}
else {
extractAttachments(_call);
try {
return (java.lang.String) _resp;
} catch (java.lang.Exception _exception) {
return (java.lang.String) org.apache.axis.utils.JavaUtils.convert(_resp, java.lang.String.class);
}
}
}
public aphia.v1_0.worms.AphiaRecord getAphiaRecordByID(int aphiaID) throws java.rmi.RemoteException {
if (super.cachedEndpoint == null) {
throw new org.apache.axis.NoEndPointException();
}
org.apache.axis.client.Call _call = createCall();
_call.setOperation(_operations[3]);
_call.setUseSOAPAction(true);
//_call.setSOAPActionURI("getAphiaRecordByID");
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
_call.setOperationName(new javax.xml.namespace.QName("http://aphia/v1.0/AphiaRecord", "getAphiaRecordByID"));
setRequestHeaders(_call);
setAttachments(_call);
java.lang.Object _resp = _call.invoke(new java.lang.Object[] {new java.lang.Integer(aphiaID)});
if (_resp instanceof java.rmi.RemoteException) {
throw (java.rmi.RemoteException)_resp;
}
else {
extractAttachments(_call);
try {
return (aphia.v1_0.worms.AphiaRecord) _resp;
} catch (java.lang.Exception _exception) {
return (aphia.v1_0.worms.AphiaRecord) org.apache.axis.utils.JavaUtils.convert(_resp, aphia.v1_0.worms.AphiaRecord.class);
}
}
}
public aphia.v1_0.worms.AphiaRecord getAphiaRecordByTSN(int TSN) throws java.rmi.RemoteException {
if (super.cachedEndpoint == null) {
throw new org.apache.axis.NoEndPointException();
}
org.apache.axis.client.Call _call = createCall();
_call.setOperation(_operations[4]);
_call.setUseSOAPAction(true);
//_call.setSOAPActionURI("getAphiaRecordByTSN");
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
_call.setOperationName(new javax.xml.namespace.QName("http://aphia/v1.0/AphiaRecord", "getAphiaRecordByTSN"));
setRequestHeaders(_call);
setAttachments(_call);
java.lang.Object _resp = _call.invoke(new java.lang.Object[] {new java.lang.Integer(TSN)});
if (_resp instanceof java.rmi.RemoteException) {
throw (java.rmi.RemoteException)_resp;
}
else {
extractAttachments(_call);
try {
return (aphia.v1_0.worms.AphiaRecord) _resp;
} catch (java.lang.Exception _exception) {
return (aphia.v1_0.worms.AphiaRecord) org.apache.axis.utils.JavaUtils.convert(_resp, aphia.v1_0.worms.AphiaRecord.class);
}
}
}
public aphia.v1_0.worms.AphiaRecord[][] getAphiaRecordsByNames(java.lang.String[] scientificnames, boolean like, boolean fuzzy, boolean marine_only) throws java.rmi.RemoteException {
if (super.cachedEndpoint == null) {
throw new org.apache.axis.NoEndPointException();
}
org.apache.axis.client.Call _call = createCall();
_call.setOperation(_operations[5]);
_call.setUseSOAPAction(true);
//_call.setSOAPActionURI("getAphiaRecordsByNames");
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
_call.setOperationName(new javax.xml.namespace.QName("http://aphia/v1.0/AphiaMatches", "getAphiaRecordsByNames"));
setRequestHeaders(_call);
setAttachments(_call);
java.lang.Object _resp = _call.invoke(new java.lang.Object[] {scientificnames, new java.lang.Boolean(like), new java.lang.Boolean(fuzzy), new java.lang.Boolean(marine_only)});
if (_resp instanceof java.rmi.RemoteException) {
throw (java.rmi.RemoteException)_resp;
}
else {
extractAttachments(_call);
try {
return (aphia.v1_0.worms.AphiaRecord[][]) _resp;
} catch (java.lang.Exception _exception) {
return (aphia.v1_0.worms.AphiaRecord[][]) org.apache.axis.utils.JavaUtils.convert(_resp, aphia.v1_0.worms.AphiaRecord[][].class);
}
}
}
public aphia.v1_0.worms.AphiaRecord[] getAphiaRecordsByVernacular(java.lang.String vernacular, boolean like, int offset) throws java.rmi.RemoteException {
if (super.cachedEndpoint == null) {
throw new org.apache.axis.NoEndPointException();
}
org.apache.axis.client.Call _call = createCall();
_call.setOperation(_operations[6]);
_call.setUseSOAPAction(true);
//_call.setSOAPActionURI("getAphiaRecordsByVernacular");
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
_call.setOperationName(new javax.xml.namespace.QName("http://aphia/v1.0/AphiaRecords", "getAphiaRecordsByVernacular"));
setRequestHeaders(_call);
setAttachments(_call);
java.lang.Object _resp = _call.invoke(new java.lang.Object[] {vernacular, new java.lang.Boolean(like), new java.lang.Integer(offset)});
if (_resp instanceof java.rmi.RemoteException) {
throw (java.rmi.RemoteException)_resp;
}
else {
extractAttachments(_call);
try {
return (aphia.v1_0.worms.AphiaRecord[]) _resp;
} catch (java.lang.Exception _exception) {
return (aphia.v1_0.worms.AphiaRecord[]) org.apache.axis.utils.JavaUtils.convert(_resp, aphia.v1_0.worms.AphiaRecord[].class);
}
}
}
public aphia.v1_0.worms.Classification getAphiaClassificationByID(int aphiaID) throws java.rmi.RemoteException {
if (super.cachedEndpoint == null) {
throw new org.apache.axis.NoEndPointException();
}
org.apache.axis.client.Call _call = createCall();
_call.setOperation(_operations[7]);
_call.setUseSOAPAction(true);
//_call.setSOAPActionURI("getAphiaClassificationByID");
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
_call.setOperationName(new javax.xml.namespace.QName("http://aphia/v1.0/Classification", "getAphiaClassificationByID"));
setRequestHeaders(_call);
setAttachments(_call);
java.lang.Object _resp = _call.invoke(new java.lang.Object[] {new java.lang.Integer(aphiaID)});
if (_resp instanceof java.rmi.RemoteException) {
throw (java.rmi.RemoteException)_resp;
}
else {
extractAttachments(_call);
try {
return (aphia.v1_0.worms.Classification) _resp;
} catch (java.lang.Exception _exception) {
return (aphia.v1_0.worms.Classification) org.apache.axis.utils.JavaUtils.convert(_resp, aphia.v1_0.worms.Classification.class);
}
}
}
public aphia.v1_0.worms.Source[] getSourcesByAphiaID(int aphiaID) throws java.rmi.RemoteException {
if (super.cachedEndpoint == null) {
throw new org.apache.axis.NoEndPointException();
}
org.apache.axis.client.Call _call = createCall();
_call.setOperation(_operations[8]);
_call.setUseSOAPAction(true);
//_call.setSOAPActionURI("getSourcesByAphiaID");
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
_call.setOperationName(new javax.xml.namespace.QName("http://aphia/v1.0/Sources", "getSourcesByAphiaID"));
setRequestHeaders(_call);
setAttachments(_call);
java.lang.Object _resp = _call.invoke(new java.lang.Object[] {new java.lang.Integer(aphiaID)});
if (_resp instanceof java.rmi.RemoteException) {
throw (java.rmi.RemoteException)_resp;
}
else {
extractAttachments(_call);
try {
return (aphia.v1_0.worms.Source[]) _resp;
} catch (java.lang.Exception _exception) {
return (aphia.v1_0.worms.Source[]) org.apache.axis.utils.JavaUtils.convert(_resp, aphia.v1_0.worms.Source[].class);
}
}
}
public aphia.v1_0.worms.AphiaRecord[] getAphiaSynonymsByID(int aphiaID) throws java.rmi.RemoteException {
if (super.cachedEndpoint == null) {
throw new org.apache.axis.NoEndPointException();
}
org.apache.axis.client.Call _call = createCall();
_call.setOperation(_operations[9]);
_call.setUseSOAPAction(true);
//_call.setSOAPActionURI("getAphiaSynonymsByID");
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
_call.setOperationName(new javax.xml.namespace.QName("http://aphia/v1.0/AphiaRecords", "getAphiaSynonymsByID"));
setRequestHeaders(_call);
setAttachments(_call);
java.lang.Object _resp = _call.invoke(new java.lang.Object[] {new java.lang.Integer(aphiaID)});
if (_resp instanceof java.rmi.RemoteException) {
throw (java.rmi.RemoteException)_resp;
}
else {
extractAttachments(_call);
try {
return (aphia.v1_0.worms.AphiaRecord[]) _resp;
} catch (java.lang.Exception _exception) {
return (aphia.v1_0.worms.AphiaRecord[]) org.apache.axis.utils.JavaUtils.convert(_resp, aphia.v1_0.worms.AphiaRecord[].class);
}
}
}
public aphia.v1_0.worms.Vernacular[] getAphiaVernacularsByID(int aphiaID) throws java.rmi.RemoteException {
if (super.cachedEndpoint == null) {
throw new org.apache.axis.NoEndPointException();
}
org.apache.axis.client.Call _call = createCall();
_call.setOperation(_operations[10]);
_call.setUseSOAPAction(true);
//_call.setSOAPActionURI("getAphiaVernacularsByID");
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
_call.setOperationName(new javax.xml.namespace.QName("http://aphia/v1.0/AphiaVernaculars", "getAphiaVernacularsByID"));
setRequestHeaders(_call);
setAttachments(_call);
java.lang.Object _resp = _call.invoke(new java.lang.Object[] {new java.lang.Integer(aphiaID)});
if (_resp instanceof java.rmi.RemoteException) {
throw (java.rmi.RemoteException)_resp;
}
else {
extractAttachments(_call);
try {
return (aphia.v1_0.worms.Vernacular[]) _resp;
} catch (java.lang.Exception _exception) {
return (aphia.v1_0.worms.Vernacular[]) org.apache.axis.utils.JavaUtils.convert(_resp, aphia.v1_0.worms.Vernacular[].class);
}
}
}
public aphia.v1_0.worms.AphiaRecord[] getAphiaChildrenByID(int aphiaID, int offset) throws java.rmi.RemoteException {
if (super.cachedEndpoint == null) {
throw new org.apache.axis.NoEndPointException();
}
org.apache.axis.client.Call _call = createCall();
_call.setOperation(_operations[11]);
_call.setUseSOAPAction(true);
//_call.setSOAPActionURI("getAphiaChildrenByID");
_call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
_call.setOperationName(new javax.xml.namespace.QName("http://aphia/v1.0/AphiaRecords", "getAphiaChildrenByID"));
setRequestHeaders(_call);
setAttachments(_call);
java.lang.Object _resp = _call.invoke(new java.lang.Object[] {new java.lang.Integer(aphiaID), new java.lang.Integer(offset)});
if (_resp instanceof java.rmi.RemoteException) {
throw (java.rmi.RemoteException)_resp;
}
else {
extractAttachments(_call);
try {
return (aphia.v1_0.worms.AphiaRecord[]) _resp;
} catch (java.lang.Exception _exception) {
return (aphia.v1_0.worms.AphiaRecord[]) org.apache.axis.utils.JavaUtils.convert(_resp, aphia.v1_0.worms.AphiaRecord[].class);
}
}
}
}

View File

@ -1,137 +0,0 @@
/**
* AphiaNameServiceLocator.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.2RC2 Nov 16, 2004 (12:19:44 EST) WSDL2Java emitter.
*/
package aphia.v1_0.worms;
import org.gcube.data.spd.wormsplugin.*;
public class AphiaNameServiceLocator extends org.apache.axis.client.Service implements aphia.v1_0.worms.AphiaNameService {
public AphiaNameServiceLocator() {
}
public AphiaNameServiceLocator(org.apache.axis.EngineConfiguration config) {
super(config);
}
// Use to get a proxy class for AphiaNameServicePort
private java.lang.String AphiaNameServicePort_address = WormsPlugin.baseurl;
public java.lang.String getAphiaNameServicePortAddress() {
return AphiaNameServicePort_address;
}
// The WSDD service name defaults to the port name.
private java.lang.String AphiaNameServicePortWSDDServiceName = "AphiaNameServicePort";
public java.lang.String getAphiaNameServicePortWSDDServiceName() {
return AphiaNameServicePortWSDDServiceName;
}
public void setAphiaNameServicePortWSDDServiceName(java.lang.String name) {
AphiaNameServicePortWSDDServiceName = name;
}
public aphia.v1_0.worms.AphiaNameServicePortType getAphiaNameServicePort() throws javax.xml.rpc.ServiceException {
java.net.URL endpoint;
try {
endpoint = new java.net.URL(AphiaNameServicePort_address);
}
catch (java.net.MalformedURLException e) {
throw new javax.xml.rpc.ServiceException(e);
}
return getAphiaNameServicePort(endpoint);
}
public aphia.v1_0.worms.AphiaNameServicePortType getAphiaNameServicePort(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
try {
aphia.v1_0.worms.AphiaNameServiceBindingStub _stub = new aphia.v1_0.worms.AphiaNameServiceBindingStub(portAddress, this);
_stub.setPortName(getAphiaNameServicePortWSDDServiceName());
return _stub;
}
catch (org.apache.axis.AxisFault e) {
return null;
}
}
public void setAphiaNameServicePortEndpointAddress(java.lang.String address) {
AphiaNameServicePort_address = address;
}
/**
* For the given interface, get the stub implementation.
* If this service has no port for the given interface,
* then ServiceException is thrown.
*/
public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
try {
if (aphia.v1_0.worms.AphiaNameServicePortType.class.isAssignableFrom(serviceEndpointInterface)) {
aphia.v1_0.worms.AphiaNameServiceBindingStub _stub = new aphia.v1_0.worms.AphiaNameServiceBindingStub(new java.net.URL(AphiaNameServicePort_address), this);
_stub.setPortName(getAphiaNameServicePortWSDDServiceName());
return _stub;
}
}
catch (java.lang.Throwable t) {
throw new javax.xml.rpc.ServiceException(t);
}
throw new javax.xml.rpc.ServiceException("There is no stub implementation for the interface: " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName()));
}
/**
* For the given interface, get the stub implementation.
* If this service has no port for the given interface,
* then ServiceException is thrown.
*/
public java.rmi.Remote getPort(javax.xml.namespace.QName portName, Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
if (portName == null) {
return getPort(serviceEndpointInterface);
}
java.lang.String inputPortName = portName.getLocalPart();
if ("AphiaNameServicePort".equals(inputPortName)) {
return getAphiaNameServicePort();
}
else {
java.rmi.Remote _stub = getPort(serviceEndpointInterface);
((org.apache.axis.client.Stub) _stub).setPortName(portName);
return _stub;
}
}
public javax.xml.namespace.QName getServiceName() {
return new javax.xml.namespace.QName("http://aphia/v1.0", "AphiaNameService");
}
private java.util.HashSet ports = null;
public java.util.Iterator getPorts() {
if (ports == null) {
ports = new java.util.HashSet();
ports.add(new javax.xml.namespace.QName("http://aphia/v1.0", "AphiaNameServicePort"));
}
return ports.iterator();
}
/**
* Set the endpoint address for the specified port name.
*/
public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {
if ("AphiaNameServicePort".equals(portName)) {
setAphiaNameServicePortEndpointAddress(address);
}
else { // Unknown Port Name
throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName);
}
}
/**
* Set the endpoint address for the specified port name.
*/
public void setEndpointAddress(javax.xml.namespace.QName portName, java.lang.String address) throws javax.xml.rpc.ServiceException {
setEndpointAddress(portName.getLocalPart(), address);
}
}

View File

@ -1,112 +0,0 @@
/**
* AphiaNameServicePortType.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.2RC2 Nov 16, 2004 (12:19:44 EST) WSDL2Java emitter.
*/
package aphia.v1_0.worms;
public interface AphiaNameServicePortType extends java.rmi.Remote {
/**
* <strong>Get the (first) exact matching AphiaID for a given
* name.<br/>Parameters:
* <ul>
* <li><u>marine_only</u>: limit to marine taxa. Default=true.</li>
* </ul>
* </strong>
*/
public int getAphiaID(java.lang.String scientificname, boolean marine_only) throws java.rmi.RemoteException;
/**
* <strong>Get one or more matching (max. 50) AphiaRecords for
* a given name.<br/>Parameters:
* <ul>
* <li><u>like</u>: add a '%'-sign added after the ScientificName
* (SQL LIKE function). Default=true.</li>
* <li><u>fuzzy</u>: fuzzy matching. Default=true.</li>
* <li><u>marine_only</u>: limit to marine taxa. Default=true.</li>
* <li><u>offset</u>: starting recordnumber, when retrieving next chunck
* of (50) records. Default=1.</li>
* </ul>
* </strong>
*/
public aphia.v1_0.worms.AphiaRecord[] getAphiaRecords(java.lang.String scientificname, boolean like, boolean fuzzy, boolean marine_only, int offset) throws java.rmi.RemoteException;
/**
* <strong>Get the correct name for a given AphiaID</strong>.
*/
public java.lang.String getAphiaNameByID(int aphiaID) throws java.rmi.RemoteException;
/**
* <strong>Get the complete Aphia Record for a given AphiaID.</strong>
*/
public aphia.v1_0.worms.AphiaRecord getAphiaRecordByID(int aphiaID) throws java.rmi.RemoteException;
/**
* <strong>Get the Aphia Record for a given TSN (ITIS Taxonomic
* Serial Number).</strong>
*/
public aphia.v1_0.worms.AphiaRecord getAphiaRecordByTSN(int TSN) throws java.rmi.RemoteException;
/**
* <strong>For each given scientific name, try to find one or
* more AphiaRecords.<br/>
* This allows you to match multiple names in one call. Limited to
* 500 names at once for performance reasons.
* <br/>Parameters:
* <ul>
* <li><u>like</u>: add a '%'-sign after the ScientificName (SQL
* LIKE function). Default=false.</li>
* <li><u>fuzzy</u>: fuzzy matching. Default=true.</li>
* <li><u>marine_only</u>: limit to marine taxa. Default=true.</li>
* </ul></strong>
*/
public aphia.v1_0.worms.AphiaRecord[][] getAphiaRecordsByNames(java.lang.String[] scientificnames, boolean like, boolean fuzzy, boolean marine_only) throws java.rmi.RemoteException;
/**
* <strong>Get one or more Aphia Records (max. 50) for a given
* vernacular.</strong><br/>Parameters:
* <ul>
* <li><u>like</u>: add a '%'-sign before and after the input (SQL
* LIKE '%vernacular%' function). Default=false.</li>
* <li><u>offset</u>: starting record number, when retrieving next chunck
* of (50) records. Default=1.</li>
* </ul>
* </strong>
*/
public aphia.v1_0.worms.AphiaRecord[] getAphiaRecordsByVernacular(java.lang.String vernacular, boolean like, int offset) throws java.rmi.RemoteException;
/**
* <strong>Get the complete classification for one taxon. This
* also includes any sub or super ranks.</strong>
*/
public aphia.v1_0.worms.Classification getAphiaClassificationByID(int aphiaID) throws java.rmi.RemoteException;
/**
* <strong>Get one or more sources/references including links,
* for one AphiaID</strong>
*/
public aphia.v1_0.worms.Source[] getSourcesByAphiaID(int aphiaID) throws java.rmi.RemoteException;
/**
* <strong>Get all synonyms for a given AphiaID.</strong>
*/
public aphia.v1_0.worms.AphiaRecord[] getAphiaSynonymsByID(int aphiaID) throws java.rmi.RemoteException;
/**
* <strong>Get all vernaculars for a given AphiaID.</strong>
*/
public aphia.v1_0.worms.Vernacular[] getAphiaVernacularsByID(int aphiaID) throws java.rmi.RemoteException;
/**
* <strong>Get the direct children (max. 50) for a given AphiaID.</strong><br
* />Parameters:
* <ul>
* <li><u>offset</u>: starting record number, when retrieving next chunck
* of (50) records. Default=1.</li>
* </ul>
*/
public aphia.v1_0.worms.AphiaRecord[] getAphiaChildrenByID(int aphiaID, int offset) throws java.rmi.RemoteException;
}

View File

@ -1,830 +0,0 @@
/**
* AphiaRecord.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.2RC2 Nov 16, 2004 (12:19:44 EST) WSDL2Java emitter.
*/
package aphia.v1_0.worms;
public class AphiaRecord implements java.io.Serializable {
private int aphiaID;
private java.lang.String url;
private java.lang.String scientificname;
private java.lang.String authority;
private java.lang.String rank;
private java.lang.String status;
private int valid_AphiaID;
private java.lang.String valid_name;
private java.lang.String valid_authority;
private java.lang.String unacceptreason;
private java.lang.String kingdom;
private java.lang.String phylum;
private java.lang.String _class;
private java.lang.String order;
private java.lang.String family;
private java.lang.String genus;
private java.lang.String citation;
private java.lang.String lsid;
private int isMarine;
private int isFreshwater;
private int isBrackish;
private int isTerrestrial;
private int isExtinct;
private java.lang.String match_type;
private java.lang.String modified;
public AphiaRecord() {
}
public AphiaRecord(
int aphiaID,
java.lang.String url,
java.lang.String scientificname,
java.lang.String authority,
java.lang.String rank,
java.lang.String status,
java.lang.String unacceptreason,
int valid_AphiaID,
java.lang.String valid_name,
java.lang.String valid_authority,
java.lang.String kingdom,
java.lang.String phylum,
java.lang.String _class,
java.lang.String order,
java.lang.String family,
java.lang.String genus,
java.lang.String citation,
java.lang.String lsid,
int isMarine,
int isBrackish,
int isFreshwater,
int isTerrestrial,
int isExtinct,
java.lang.String match_type,
java.lang.String modified) {
this.aphiaID = aphiaID;
this.url = url;
this.scientificname = scientificname;
this.authority = authority;
this.rank = rank;
this.status = status;
this.unacceptreason = unacceptreason;
this.valid_AphiaID = valid_AphiaID;
this.valid_name = valid_name;
this.valid_authority = valid_authority;
this.kingdom = kingdom;
this.phylum = phylum;
this._class = _class;
this.order = order;
this.family = family;
this.genus = genus;
this.citation = citation;
this.lsid = lsid;
this.isMarine = isMarine;
this.isBrackish = isBrackish;
this.isFreshwater = isFreshwater;
this.isTerrestrial = isTerrestrial;
this.isExtinct = isExtinct;
this.match_type = match_type;
this.modified = modified;
}
/**
* @return the isMarine
*/
public int getIsMarine() {
return isMarine;
}
/**
* @param isMarine the isMarine to set
*/
public void setIsMarine(int isMarine) {
this.isMarine = isMarine;
}
/**
* Gets the aphiaID value for this AphiaRecord.
*
* @return aphiaID
*/
public int getAphiaID() {
return aphiaID;
}
/**
* Sets the aphiaID value for this AphiaRecord.
*
* @param aphiaID
*/
public void setAphiaID(int aphiaID) {
this.aphiaID = aphiaID;
}
/**
* Gets the url value for this AphiaRecord.
*
* @return url
*/
public java.lang.String getUrl() {
return url;
}
/**
* Sets the url value for this AphiaRecord.
*
* @param url
*/
public void setUrl(java.lang.String url) {
this.url = url;
}
/**
* Gets the scientificname value for this AphiaRecord.
*
* @return scientificname
*/
public java.lang.String getScientificname() {
return scientificname;
}
/**
* Sets the scientificname value for this AphiaRecord.
*
* @param scientificname
*/
public void setScientificname(java.lang.String scientificname) {
this.scientificname = scientificname;
}
/**
* Gets the authority value for this AphiaRecord.
*
* @return authority
*/
public java.lang.String getAuthority() {
return authority;
}
/**
* Sets the authority value for this AphiaRecord.
*
* @param authority
*/
public void setAuthority(java.lang.String authority) {
this.authority = authority;
}
/**
* Gets the rank value for this AphiaRecord.
*
* @return rank
*/
public java.lang.String getRank() {
return rank;
}
/**
* Sets the rank value for this AphiaRecord.
*
* @param rank
*/
public void setRank(java.lang.String rank) {
this.rank = rank;
}
/**
* Gets the status value for this AphiaRecord.
*
* @return status
*/
public java.lang.String getStatus() {
return status;
}
/**
* Sets the status value for this AphiaRecord.
*
* @param status
*/
public void setStatus(java.lang.String status) {
this.status = status;
}
/**
* Gets the valid_AphiaID value for this AphiaRecord.
*
* @return valid_AphiaID
*/
public int getValid_AphiaID() {
return valid_AphiaID;
}
/**
* Sets the valid_AphiaID value for this AphiaRecord.
*
* @param valid_AphiaID
*/
public void setValid_AphiaID(int valid_AphiaID) {
this.valid_AphiaID = valid_AphiaID;
}
/**
* Gets the valid_name value for this AphiaRecord.
*
* @return valid_name
*/
public java.lang.String getValid_name() {
return valid_name;
}
/**
* Sets the valid_name value for this AphiaRecord.
*
* @param valid_name
*/
public void setValid_name(java.lang.String valid_name) {
this.valid_name = valid_name;
}
public void setUnacceptreason(java.lang.String unacceptreason) {
this.unacceptreason = unacceptreason;
}
/**
* Gets the valid_authority value for this AphiaRecord.
*
* @return valid_authority
*/
public java.lang.String getValid_authority() {
return valid_authority;
}
/**
* Sets the valid_authority value for this AphiaRecord.
*
* @param valid_authority
*/
public void setValid_authority(java.lang.String valid_authority) {
this.valid_authority = valid_authority;
}
/**
* Gets the kingdom value for this AphiaRecord.
*
* @return kingdom
*/
public java.lang.String getKingdom() {
return kingdom;
}
/**
* Sets the kingdom value for this AphiaRecord.
*
* @param kingdom
*/
public void setKingdom(java.lang.String kingdom) {
this.kingdom = kingdom;
}
/**
* Gets the phylum value for this AphiaRecord.
*
* @return phylum
*/
public java.lang.String getPhylum() {
return phylum;
}
/**
* Sets the phylum value for this AphiaRecord.
*
* @param phylum
*/
public void setPhylum(java.lang.String phylum) {
this.phylum = phylum;
}
/**
* Gets the _class value for this AphiaRecord.
*
* @return _class
*/
public java.lang.String get_class() {
return _class;
}
/**
* Sets the _class value for this AphiaRecord.
*
* @param _class
*/
public void set_class(java.lang.String _class) {
this._class = _class;
}
/**
* Gets the order value for this AphiaRecord.
*
* @return order
*/
public java.lang.String getOrder() {
return order;
}
/**
* Sets the order value for this AphiaRecord.
*
* @param order
*/
public void setOrder(java.lang.String order) {
this.order = order;
}
/**
* Gets the family value for this AphiaRecord.
*
* @return family
*/
public java.lang.String getFamily() {
return family;
}
/**
* Sets the family value for this AphiaRecord.
*
* @param family
*/
public void setFamily(java.lang.String family) {
this.family = family;
}
/**
* Gets the genus value for this AphiaRecord.
*
* @return genus
*/
public java.lang.String getGenus() {
return genus;
}
/**
* Sets the genus value for this AphiaRecord.
*
* @param genus
*/
public void setGenus(java.lang.String genus) {
this.genus = genus;
}
/**
* Gets the citation value for this AphiaRecord.
*
* @return citation
*/
public java.lang.String getCitation() {
return citation;
}
/**
* Sets the citation value for this AphiaRecord.
*
* @param citation
*/
public void setCitation(java.lang.String citation) {
this.citation = citation;
}
/**
* Gets the lsid value for this AphiaRecord.
*
* @return lsid
*/
public java.lang.String getLsid() {
return lsid;
}
public java.lang.String getUnacceptreason() {
return unacceptreason;
}
/**
* Sets the lsid value for this AphiaRecord.
*
* @param lsid
*/
public void setLsid(java.lang.String lsid) {
this.lsid = lsid;
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof AphiaRecord)) return false;
AphiaRecord other = (AphiaRecord) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
this.aphiaID == other.getAphiaID() &&
((this.url==null && other.getUrl()==null) ||
(this.url!=null &&
this.url.equals(other.getUrl()))) &&
((this.scientificname==null && other.getScientificname()==null) ||
(this.scientificname!=null &&
this.scientificname.equals(other.getScientificname()))) &&
((this.authority==null && other.getAuthority()==null) ||
(this.authority!=null &&
this.authority.equals(other.getAuthority()))) &&
((this.rank==null && other.getRank()==null) ||
(this.rank!=null &&
this.rank.equals(other.getRank()))) &&
((this.status==null && other.getStatus()==null) ||
(this.status!=null &&
this.status.equals(other.getStatus()))) &&
this.valid_AphiaID == other.getValid_AphiaID() &&
((this.valid_name==null && other.getValid_name()==null) ||
(this.valid_name!=null &&
this.valid_name.equals(other.getValid_name()))) &&
((this.valid_authority==null && other.getValid_authority()==null) ||
(this.valid_authority!=null &&
this.valid_authority.equals(other.getValid_authority()))) &&
((this.kingdom==null && other.getKingdom()==null) ||
(this.kingdom!=null &&
this.kingdom.equals(other.getKingdom()))) &&
((this.phylum==null && other.getPhylum()==null) ||
(this.phylum!=null &&
this.phylum.equals(other.getPhylum()))) &&
((this._class==null && other.get_class()==null) ||
(this._class!=null &&
this._class.equals(other.get_class()))) &&
((this.order==null && other.getOrder()==null) ||
(this.order!=null &&
this.order.equals(other.getOrder()))) &&
((this.family==null && other.getFamily()==null) ||
(this.family!=null &&
this.family.equals(other.getFamily()))) &&
((this.genus==null && other.getGenus()==null) ||
(this.genus!=null &&
this.genus.equals(other.getGenus()))) &&
((this.citation==null && other.getCitation()==null) ||
(this.citation!=null &&
this.citation.equals(other.getCitation()))) &&
((this.unacceptreason==null && other.getUnacceptreason()==null) ||
(this.unacceptreason!=null &&
this.unacceptreason.equals(other.getUnacceptreason()))) &&
this.isMarine == other.getIsMarine() &&
this.isFreshwater == other.getIsFreshwater() &&
this.isBrackish == other.getIsBrackish() &&
this.isTerrestrial == other.getIsTerrestrial() &&
this.isExtinct == other.getIsExtinct() &&
((this.match_type==null && other.getMatch_type()==null) ||
(this.match_type!=null &&
this.match_type.equals(other.getMatch_type()))) &&
((this.modified==null && other.getModified()==null) ||
(this.modified!=null &&
this.modified.equals(other.getModified()))) &&
((this.lsid==null && other.getLsid()==null) ||
(this.lsid!=null &&
this.lsid.equals(other.getLsid())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
_hashCode += getAphiaID();
if (getUrl() != null) {
_hashCode += getUrl().hashCode();
}
if (getScientificname() != null) {
_hashCode += getScientificname().hashCode();
}
if (getAuthority() != null) {
_hashCode += getAuthority().hashCode();
}
if (getRank() != null) {
_hashCode += getRank().hashCode();
}
if (getStatus() != null) {
_hashCode += getStatus().hashCode();
}
_hashCode += getValid_AphiaID();
if (getValid_name() != null) {
_hashCode += getValid_name().hashCode();
}
if (getValid_authority() != null) {
_hashCode += getValid_authority().hashCode();
}
if (getKingdom() != null) {
_hashCode += getKingdom().hashCode();
}
if (getPhylum() != null) {
_hashCode += getPhylum().hashCode();
}
if (get_class() != null) {
_hashCode += get_class().hashCode();
}
if (getOrder() != null) {
_hashCode += getOrder().hashCode();
}
if (getFamily() != null) {
_hashCode += getFamily().hashCode();
}
if (getGenus() != null) {
_hashCode += getGenus().hashCode();
}
if (getCitation() != null) {
_hashCode += getCitation().hashCode();
}
if (getLsid() != null) {
_hashCode += getLsid().hashCode();
}
if (getUnacceptreason() != null) {
_hashCode += getUnacceptreason().hashCode();
}
_hashCode += getIsMarine();
_hashCode += getIsFreshwater();
_hashCode += getIsBrackish();
_hashCode += getIsTerrestrial();
_hashCode += getIsExtinct();
if (getMatch_type() != null) {
_hashCode += getMatch_type().hashCode();
}
if (getModified() != null) {
_hashCode += getModified().hashCode();
}
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(AphiaRecord.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("http://aphia/v1.0", "AphiaRecord"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("aphiaID");
elemField.setXmlName(new javax.xml.namespace.QName("", "AphiaID"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("url");
elemField.setXmlName(new javax.xml.namespace.QName("", "url"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("scientificname");
elemField.setXmlName(new javax.xml.namespace.QName("", "scientificname"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("authority");
elemField.setXmlName(new javax.xml.namespace.QName("", "authority"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("rank");
elemField.setXmlName(new javax.xml.namespace.QName("", "rank"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("status");
elemField.setXmlName(new javax.xml.namespace.QName("", "status"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("valid_AphiaID");
elemField.setXmlName(new javax.xml.namespace.QName("", "valid_AphiaID"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("valid_name");
elemField.setXmlName(new javax.xml.namespace.QName("", "valid_name"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("valid_authority");
elemField.setXmlName(new javax.xml.namespace.QName("", "valid_authority"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("kingdom");
elemField.setXmlName(new javax.xml.namespace.QName("", "kingdom"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("phylum");
elemField.setXmlName(new javax.xml.namespace.QName("", "phylum"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("_class");
elemField.setXmlName(new javax.xml.namespace.QName("", "class"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("order");
elemField.setXmlName(new javax.xml.namespace.QName("", "order"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("family");
elemField.setXmlName(new javax.xml.namespace.QName("", "family"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("genus");
elemField.setXmlName(new javax.xml.namespace.QName("", "genus"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("citation");
elemField.setXmlName(new javax.xml.namespace.QName("", "citation"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("lsid");
elemField.setXmlName(new javax.xml.namespace.QName("", "lsid"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("unacceptreason");
elemField.setXmlName(new javax.xml.namespace.QName("", "unacceptreason"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("isMarine");
elemField.setXmlName(new javax.xml.namespace.QName("", "isMarine"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("isFreshwater");
elemField.setXmlName(new javax.xml.namespace.QName("", "isFreshwater"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("isBrackish");
elemField.setXmlName(new javax.xml.namespace.QName("", "isBrackish"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("isTerrestrial");
elemField.setXmlName(new javax.xml.namespace.QName("", "isTerrestrial"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("isExtinct");
elemField.setXmlName(new javax.xml.namespace.QName("", "isExtinct"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("match_type");
elemField.setXmlName(new javax.xml.namespace.QName("", "match_type"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("modified");
elemField.setXmlName(new javax.xml.namespace.QName("", "modified"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
typeDesc.addFieldDesc(elemField);
}
/**
* Return type metadata object
*/
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}
/**
* Get Custom Serializer
*/
public static org.apache.axis.encoding.Serializer getSerializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanSerializer(
_javaType, _xmlType, typeDesc);
}
/**
* Get Custom Deserializer
*/
public static org.apache.axis.encoding.Deserializer getDeserializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
public java.lang.String getModified() {
return modified;
}
public void setModified(java.lang.String modified) {
this.modified = modified;
}
public java.lang.String getMatch_type() {
return match_type;
}
public void setMatch_type(java.lang.String match_type) {
this.match_type = match_type;
}
public int getIsExtinct() {
return isExtinct;
}
public void setIsExtinct(int isExtinct) {
this.isExtinct = isExtinct;
}
public int getIsTerrestrial() {
return isTerrestrial;
}
public void setIsTerrestrial(int isTerrestrial) {
this.isTerrestrial = isTerrestrial;
}
public int getIsBrackish() {
return isBrackish;
}
public void setIsBrackish(int isBrackish) {
this.isBrackish = isBrackish;
}
public int getIsFreshwater() {
return isFreshwater;
}
public void setIsFreshwater(int isFreshwater) {
this.isFreshwater = isFreshwater;
}
}

View File

@ -1,216 +0,0 @@
/**
* Classification.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.2RC2 Nov 16, 2004 (12:19:44 EST) WSDL2Java emitter.
*/
package aphia.v1_0.worms;
public class Classification implements java.io.Serializable {
private int aphiaID;
private java.lang.String rank;
private java.lang.String scientificname;
private aphia.v1_0.worms.Classification child;
public Classification() {
}
public Classification(
int aphiaID,
java.lang.String rank,
java.lang.String scientificname,
aphia.v1_0.worms.Classification child) {
this.aphiaID = aphiaID;
this.rank = rank;
this.scientificname = scientificname;
this.child = child;
}
/**
* Gets the aphiaID value for this Classification.
*
* @return aphiaID
*/
public int getAphiaID() {
return aphiaID;
}
/**
* Sets the aphiaID value for this Classification.
*
* @param aphiaID
*/
public void setAphiaID(int aphiaID) {
this.aphiaID = aphiaID;
}
/**
* Gets the rank value for this Classification.
*
* @return rank
*/
public java.lang.String getRank() {
return rank;
}
/**
* Sets the rank value for this Classification.
*
* @param rank
*/
public void setRank(java.lang.String rank) {
this.rank = rank;
}
/**
* Gets the scientificname value for this Classification.
*
* @return scientificname
*/
public java.lang.String getScientificname() {
return scientificname;
}
/**
* Sets the scientificname value for this Classification.
*
* @param scientificname
*/
public void setScientificname(java.lang.String scientificname) {
this.scientificname = scientificname;
}
/**
* Gets the child value for this Classification.
*
* @return child
*/
public aphia.v1_0.worms.Classification getChild() {
return child;
}
/**
* Sets the child value for this Classification.
*
* @param child
*/
public void setChild(aphia.v1_0.worms.Classification child) {
this.child = child;
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof Classification)) return false;
Classification other = (Classification) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
this.aphiaID == other.getAphiaID() &&
((this.rank==null && other.getRank()==null) ||
(this.rank!=null &&
this.rank.equals(other.getRank()))) &&
((this.scientificname==null && other.getScientificname()==null) ||
(this.scientificname!=null &&
this.scientificname.equals(other.getScientificname()))) &&
((this.child==null && other.getChild()==null) ||
(this.child!=null &&
this.child.equals(other.getChild())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
_hashCode += getAphiaID();
if (getRank() != null) {
_hashCode += getRank().hashCode();
}
if (getScientificname() != null) {
_hashCode += getScientificname().hashCode();
}
if (getChild() != null) {
_hashCode += getChild().hashCode();
}
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(Classification.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("http://aphia/v1.0", "Classification"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("aphiaID");
elemField.setXmlName(new javax.xml.namespace.QName("", "AphiaID"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("rank");
elemField.setXmlName(new javax.xml.namespace.QName("", "rank"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("scientificname");
elemField.setXmlName(new javax.xml.namespace.QName("", "scientificname"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("child");
elemField.setXmlName(new javax.xml.namespace.QName("", "child"));
elemField.setXmlType(new javax.xml.namespace.QName("http://aphia/v1.0", "Classification"));
typeDesc.addFieldDesc(elemField);
}
/**
* Return type metadata object
*/
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}
/**
* Get Custom Serializer
*/
public static org.apache.axis.encoding.Serializer getSerializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanSerializer(
_javaType, _xmlType, typeDesc);
}
/**
* Get Custom Deserializer
*/
public static org.apache.axis.encoding.Deserializer getDeserializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}

View File

@ -1,329 +0,0 @@
/**
* Source.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.2RC2 Nov 16, 2004 (12:19:44 EST) WSDL2Java emitter.
*/
package aphia.v1_0.worms;
public class Source implements java.io.Serializable {
private int source_id;
private java.lang.String use;
private java.lang.String reference;
private java.lang.String page;
private java.lang.String url;
private java.lang.String link;
private java.lang.String fulltext;
private java.lang.String doi;
public Source() {
}
public Source(
int source_id,
java.lang.String use,
java.lang.String reference,
java.lang.String page,
java.lang.String url,
java.lang.String link,
java.lang.String fulltext,
java.lang.String doi) {
this.source_id = source_id;
this.use = use;
this.reference = reference;
this.page = page;
this.url = url;
this.link = link;
this.fulltext = fulltext;
this.doi = doi;
}
/**
* Gets the source_id value for this Source.
*
* @return source_id
*/
public int getSource_id() {
return source_id;
}
/**
* Sets the source_id value for this Source.
*
* @param source_id
*/
public void setSource_id(int source_id) {
this.source_id = source_id;
}
/**
* Gets the use value for this Source.
*
* @return use
*/
public java.lang.String getUse() {
return use;
}
/**
* Sets the use value for this Source.
*
* @param use
*/
public void setUse(java.lang.String use) {
this.use = use;
}
/**
* Gets the reference value for this Source.
*
* @return reference
*/
public java.lang.String getReference() {
return reference;
}
/**
* Sets the reference value for this Source.
*
* @param reference
*/
public void setReference(java.lang.String reference) {
this.reference = reference;
}
/**
* Gets the page value for this Source.
*
* @return page
*/
public java.lang.String getPage() {
return page;
}
/**
* Sets the page value for this Source.
*
* @param page
*/
public void setPage(java.lang.String page) {
this.page = page;
}
/**
* Gets the url value for this Source.
*
* @return url
*/
public java.lang.String getUrl() {
return url;
}
/**
* Sets the url value for this Source.
*
* @param url
*/
public void setUrl(java.lang.String url) {
this.url = url;
}
/**
* Gets the link value for this Source.
*
* @return link
*/
public java.lang.String getLink() {
return link;
}
/**
* Sets the link value for this Source.
*
* @param link
*/
public void setLink(java.lang.String link) {
this.link = link;
}
/**
* Gets the fulltext value for this Source.
*
* @return fulltext
*/
public java.lang.String getFulltext() {
return fulltext;
}
public java.lang.String getDoi() {
return doi;
}
public void setDoi(java.lang.String doi) {
this.doi = doi;
}
/**
* Sets the fulltext value for this Source.
*
* @param fulltext
*/
public void setFulltext(java.lang.String fulltext) {
this.fulltext = fulltext;
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof Source)) return false;
Source other = (Source) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
this.source_id == other.getSource_id() &&
((this.use==null && other.getUse()==null) ||
(this.use!=null &&
this.use.equals(other.getUse()))) &&
((this.reference==null && other.getReference()==null) ||
(this.reference!=null &&
this.reference.equals(other.getReference()))) &&
((this.page==null && other.getPage()==null) ||
(this.page!=null &&
this.page.equals(other.getPage()))) &&
((this.url==null && other.getUrl()==null) ||
(this.url!=null &&
this.url.equals(other.getUrl()))) &&
((this.link==null && other.getLink()==null) ||
(this.link!=null &&
this.link.equals(other.getLink()))) &&
((this.fulltext==null && other.getFulltext()==null) ||
(this.fulltext!=null &&
this.fulltext.equals(other.getFulltext())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
_hashCode += getSource_id();
if (getUse() != null) {
_hashCode += getUse().hashCode();
}
if (getReference() != null) {
_hashCode += getReference().hashCode();
}
if (getPage() != null) {
_hashCode += getPage().hashCode();
}
if (getUrl() != null) {
_hashCode += getUrl().hashCode();
}
if (getLink() != null) {
_hashCode += getLink().hashCode();
}
if (getFulltext() != null) {
_hashCode += getFulltext().hashCode();
}
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(Source.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("http://aphia/v1.0", "Source"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("source_id");
elemField.setXmlName(new javax.xml.namespace.QName("", "source_id"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("use");
elemField.setXmlName(new javax.xml.namespace.QName("", "use"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("reference");
elemField.setXmlName(new javax.xml.namespace.QName("", "reference"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("page");
elemField.setXmlName(new javax.xml.namespace.QName("", "page"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("url");
elemField.setXmlName(new javax.xml.namespace.QName("", "url"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("link");
elemField.setXmlName(new javax.xml.namespace.QName("", "link"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("fulltext");
elemField.setXmlName(new javax.xml.namespace.QName("", "fulltext"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
typeDesc.addFieldDesc(elemField);
}
/**
* Return type metadata object
*/
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}
/**
* Get Custom Serializer
*/
public static org.apache.axis.encoding.Serializer getSerializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanSerializer(
_javaType, _xmlType, typeDesc);
}
/**
* Get Custom Deserializer
*/
public static org.apache.axis.encoding.Deserializer getDeserializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}

View File

@ -1,186 +0,0 @@
/**
* Vernacular.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.2RC2 Nov 16, 2004 (12:19:44 EST) WSDL2Java emitter.
*/
package aphia.v1_0.worms;
public class Vernacular implements java.io.Serializable {
private java.lang.String vernacular;
private java.lang.String language_code;
private java.lang.String language;
public Vernacular() {
}
public Vernacular(
java.lang.String vernacular,
java.lang.String language_code,
java.lang.String language) {
this.vernacular = vernacular;
this.language_code = language_code;
this.language = language;
}
/**
* Gets the vernacular value for this Vernacular.
*
* @return vernacular
*/
public java.lang.String getVernacular() {
return vernacular;
}
/**
* Sets the vernacular value for this Vernacular.
*
* @param vernacular
*/
public void setVernacular(java.lang.String vernacular) {
this.vernacular = vernacular;
}
/**
* Gets the language_code value for this Vernacular.
*
* @return language_code
*/
public java.lang.String getLanguage_code() {
return language_code;
}
/**
* Sets the language_code value for this Vernacular.
*
* @param language_code
*/
public void setLanguage_code(java.lang.String language_code) {
this.language_code = language_code;
}
/**
* Gets the language value for this Vernacular.
*
* @return language
*/
public java.lang.String getLanguage() {
return language;
}
/**
* Sets the language value for this Vernacular.
*
* @param language
*/
public void setLanguage(java.lang.String language) {
this.language = language;
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof Vernacular)) return false;
Vernacular other = (Vernacular) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
((this.vernacular==null && other.getVernacular()==null) ||
(this.vernacular!=null &&
this.vernacular.equals(other.getVernacular()))) &&
((this.language_code==null && other.getLanguage_code()==null) ||
(this.language_code!=null &&
this.language_code.equals(other.getLanguage_code()))) &&
((this.language==null && other.getLanguage()==null) ||
(this.language!=null &&
this.language.equals(other.getLanguage())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
if (getVernacular() != null) {
_hashCode += getVernacular().hashCode();
}
if (getLanguage_code() != null) {
_hashCode += getLanguage_code().hashCode();
}
if (getLanguage() != null) {
_hashCode += getLanguage().hashCode();
}
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(Vernacular.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("http://aphia/v1.0", "Vernacular"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("vernacular");
elemField.setXmlName(new javax.xml.namespace.QName("", "vernacular"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("language_code");
elemField.setXmlName(new javax.xml.namespace.QName("", "language_code"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("language");
elemField.setXmlName(new javax.xml.namespace.QName("", "language"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
typeDesc.addFieldDesc(elemField);
}
/**
* Return type metadata object
*/
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}
/**
* Get Custom Serializer
*/
public static org.apache.axis.encoding.Serializer getSerializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanSerializer(
_javaType, _xmlType, typeDesc);
}
/**
* Get Custom Deserializer
*/
public static org.apache.axis.encoding.Deserializer getDeserializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}

View File

@ -1,324 +0,0 @@
/**
* AphiaNameServiceTestCase.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.2RC2 Nov 16, 2004 (12:19:44 EST) WSDL2Java emitter.
*/
package org.gcube.data.spd.wormsplugin;
import static org.gcube.resources.discovery.icclient.ICFactory.clientFor;
import static org.gcube.resources.discovery.icclient.ICFactory.queryFor;
import java.util.List;
import javax.xml.rpc.ServiceException;
import org.gcube.common.resources.gcore.ServiceEndpoint;
import org.gcube.common.scope.api.ScopeProvider;
import org.gcube.resources.discovery.client.api.DiscoveryClient;
import org.gcube.resources.discovery.client.queries.api.SimpleQuery;
import static org.junit.Assert.*;
public class AphiaNameServiceTestCase {
public AphiaNameServiceTestCase(java.lang.String name) throws ServiceException {
SimpleQuery query = queryFor(ServiceEndpoint.class);
query.addCondition("$resource/Profile/Category/text() eq 'BiodiversityRepository' and $resource/Profile/Name eq 'WoRMS' ");
ScopeProvider.instance.set("/gcube/devsec");
DiscoveryClient<ServiceEndpoint> client = clientFor(ServiceEndpoint.class);
List<ServiceEndpoint> resources = client.submit(query);
// System.out.println(resources.size());
WormsPlugin a = new WormsPlugin();
if(resources.size() != 0) {
try {
a.initialize(resources.get(0));
} catch (Exception e) {
e.printStackTrace();
}
}
WormsPlugin.binding = (aphia.v1_0.worms.AphiaNameServiceBindingStub)
new aphia.v1_0.worms.AphiaNameServiceLocator().getAphiaNameServicePort();
}
public void testAphiaNameServicePortWSDL() throws Exception {
javax.xml.rpc.ServiceFactory serviceFactory = javax.xml.rpc.ServiceFactory.newInstance();
java.net.URL url = new java.net.URL(new aphia.v1_0.worms.AphiaNameServiceLocator().getAphiaNameServicePortAddress() + "&wsdl=1");
javax.xml.rpc.Service service = serviceFactory.createService(url, new aphia.v1_0.worms.AphiaNameServiceLocator().getServiceName());
assertTrue(service != null);
}
public void test1AphiaNameServicePortGetAphiaID() throws Exception {
aphia.v1_0.worms.AphiaNameServiceBindingStub binding;
try {
binding = (aphia.v1_0.worms.AphiaNameServiceBindingStub)
new aphia.v1_0.worms.AphiaNameServiceLocator().getAphiaNameServicePort();
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
jre.getLinkedCause().printStackTrace();
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
}
assertNotNull("binding is null", binding);
// Time out after a minute
binding.setTimeout(60000);
// Test operation
int value = -3;
value = binding.getAphiaID("solea solea", true);
// TBD - validate results
}
public void test2AphiaNameServicePortGetAphiaRecords() throws Exception {
aphia.v1_0.worms.AphiaNameServiceBindingStub binding;
try {
binding = (aphia.v1_0.worms.AphiaNameServiceBindingStub)
new aphia.v1_0.worms.AphiaNameServiceLocator().getAphiaNameServicePort();
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
jre.getLinkedCause().printStackTrace();
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
}
assertNotNull("binding is null", binding);
// Time out after a minute
binding.setTimeout(60000);
// Test operation
aphia.v1_0.worms.AphiaRecord[] value = null;
value = binding.getAphiaRecords(new java.lang.String(), true, true, true, 0);
// TBD - validate results
}
public void test3AphiaNameServicePortGetAphiaNameByID() throws Exception {
aphia.v1_0.worms.AphiaNameServiceBindingStub binding;
try {
binding = (aphia.v1_0.worms.AphiaNameServiceBindingStub)
new aphia.v1_0.worms.AphiaNameServiceLocator().getAphiaNameServicePort();
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
jre.getLinkedCause().printStackTrace();
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
}
assertNotNull("binding is null", binding);
// Time out after a minute
binding.setTimeout(60000);
// Test operation
java.lang.String value = null;
value = binding.getAphiaNameByID(0);
// TBD - validate results
}
public void test4AphiaNameServicePortGetAphiaRecordByID() throws Exception {
aphia.v1_0.worms.AphiaNameServiceBindingStub binding;
try {
binding = (aphia.v1_0.worms.AphiaNameServiceBindingStub)
new aphia.v1_0.worms.AphiaNameServiceLocator().getAphiaNameServicePort();
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
jre.getLinkedCause().printStackTrace();
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
}
assertNotNull("binding is null", binding);
// Time out after a minute
binding.setTimeout(60000);
// Test operation
aphia.v1_0.worms.AphiaRecord value = null;
value = binding.getAphiaRecordByID(0);
// TBD - validate results
}
public void test5AphiaNameServicePortGetAphiaRecordByTSN() throws Exception {
aphia.v1_0.worms.AphiaNameServiceBindingStub binding;
try {
binding = (aphia.v1_0.worms.AphiaNameServiceBindingStub)
new aphia.v1_0.worms.AphiaNameServiceLocator().getAphiaNameServicePort();
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
jre.getLinkedCause().printStackTrace();
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
}
assertNotNull("binding is null", binding);
// Time out after a minute
binding.setTimeout(60000);
// Test operation
aphia.v1_0.worms.AphiaRecord value = null;
value = binding.getAphiaRecordByTSN(0);
// TBD - validate results
}
public void test6AphiaNameServicePortGetAphiaRecordsByNames() throws Exception {
aphia.v1_0.worms.AphiaNameServiceBindingStub binding;
try {
binding = (aphia.v1_0.worms.AphiaNameServiceBindingStub)
new aphia.v1_0.worms.AphiaNameServiceLocator().getAphiaNameServicePort();
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
jre.getLinkedCause().printStackTrace();
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
}
assertNotNull("binding is null", binding);
// Time out after a minute
binding.setTimeout(60000);
// Test operation
aphia.v1_0.worms.AphiaRecord[][] value = null;
value = binding.getAphiaRecordsByNames(new java.lang.String[0], true, true, true);
// TBD - validate results
}
public void test7AphiaNameServicePortGetAphiaRecordsByVernacular() throws Exception {
aphia.v1_0.worms.AphiaNameServiceBindingStub binding;
try {
binding = (aphia.v1_0.worms.AphiaNameServiceBindingStub)
new aphia.v1_0.worms.AphiaNameServiceLocator().getAphiaNameServicePort();
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
jre.getLinkedCause().printStackTrace();
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
}
assertNotNull("binding is null", binding);
// Time out after a minute
binding.setTimeout(60000);
// Test operation
aphia.v1_0.worms.AphiaRecord[] value = null;
value = binding.getAphiaRecordsByVernacular(new java.lang.String(), true, 0);
// TBD - validate results
}
public void test8AphiaNameServicePortGetAphiaClassificationByID() throws Exception {
aphia.v1_0.worms.AphiaNameServiceBindingStub binding;
try {
binding = (aphia.v1_0.worms.AphiaNameServiceBindingStub)
new aphia.v1_0.worms.AphiaNameServiceLocator().getAphiaNameServicePort();
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
jre.getLinkedCause().printStackTrace();
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
}
assertNotNull("binding is null", binding);
// Time out after a minute
binding.setTimeout(60000);
// Test operation
aphia.v1_0.worms.Classification value = null;
value = binding.getAphiaClassificationByID(0);
// TBD - validate results
}
public void test9AphiaNameServicePortGetSourcesByAphiaID() throws Exception {
aphia.v1_0.worms.AphiaNameServiceBindingStub binding;
try {
binding = (aphia.v1_0.worms.AphiaNameServiceBindingStub)
new aphia.v1_0.worms.AphiaNameServiceLocator().getAphiaNameServicePort();
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
jre.getLinkedCause().printStackTrace();
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
}
assertNotNull("binding is null", binding);
// Time out after a minute
binding.setTimeout(60000);
// Test operation
aphia.v1_0.worms.Source[] value = null;
value = binding.getSourcesByAphiaID(0);
// TBD - validate results
}
public void test10AphiaNameServicePortGetAphiaSynonymsByID() throws Exception {
aphia.v1_0.worms.AphiaNameServiceBindingStub binding;
try {
binding = (aphia.v1_0.worms.AphiaNameServiceBindingStub)
new aphia.v1_0.worms.AphiaNameServiceLocator().getAphiaNameServicePort();
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
jre.getLinkedCause().printStackTrace();
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
}
assertNotNull("binding is null", binding);
// Time out after a minute
binding.setTimeout(60000);
// Test operation
aphia.v1_0.worms.AphiaRecord[] value = null;
value = binding.getAphiaSynonymsByID(0);
// TBD - validate results
}
public void test11AphiaNameServicePortGetAphiaVernacularsByID() throws Exception {
aphia.v1_0.worms.AphiaNameServiceBindingStub binding;
try {
binding = (aphia.v1_0.worms.AphiaNameServiceBindingStub)
new aphia.v1_0.worms.AphiaNameServiceLocator().getAphiaNameServicePort();
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
jre.getLinkedCause().printStackTrace();
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
}
assertNotNull("binding is null", binding);
// Time out after a minute
binding.setTimeout(60000);
// Test operation
aphia.v1_0.worms.Vernacular[] value = null;
value = binding.getAphiaVernacularsByID(0);
// TBD - validate results
}
public void test12AphiaNameServicePortGetAphiaChildrenByID() throws Exception {
aphia.v1_0.worms.AphiaNameServiceBindingStub binding;
try {
binding = (aphia.v1_0.worms.AphiaNameServiceBindingStub)
new aphia.v1_0.worms.AphiaNameServiceLocator().getAphiaNameServicePort();
}
catch (javax.xml.rpc.ServiceException jre) {
if(jre.getLinkedCause()!=null)
jre.getLinkedCause().printStackTrace();
throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
}
assertNotNull("binding is null", binding);
// Time out after a minute
binding.setTimeout(60000);
// Test operation
aphia.v1_0.worms.AphiaRecord[] value = null;
value = binding.getAphiaChildrenByID(0, 0);
// TBD - validate results
}
}