Files
alfresco-community-repo/source/generated/org/alfresco/repo/webservice/action/ParameterDefinition.java
Roy Wetherall 8182711dda - Added action web service implementation and WSDL
- Web service client code moved into separate project, removing all depandencies on other projects removed
- Added a number of utility classe to help with common client tasks
- Added framework so the target web service server can be easily changed
- Test data is now created via web service API, thus the bootstrap process that was confussing people has been removed.
- Refactored all unit tests and samples to work with new test data and utility classes
- Added action service unit tests

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2131 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
2006-01-18 09:51:53 +00:00

221 lines
6.8 KiB
Java

/**
* ParameterDefinition.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.2.1 Jun 14, 2005 (09:15:57 EDT) WSDL2Java emitter.
*/
package org.alfresco.repo.webservice.action;
public class ParameterDefinition implements java.io.Serializable {
private java.lang.String name;
private java.lang.String type;
private boolean isMandatory;
private java.lang.String displayLabel;
public ParameterDefinition() {
}
public ParameterDefinition(
java.lang.String name,
java.lang.String type,
boolean isMandatory,
java.lang.String displayLabel) {
this.name = name;
this.type = type;
this.isMandatory = isMandatory;
this.displayLabel = displayLabel;
}
/**
* Gets the name value for this ParameterDefinition.
*
* @return name
*/
public java.lang.String getName() {
return name;
}
/**
* Sets the name value for this ParameterDefinition.
*
* @param name
*/
public void setName(java.lang.String name) {
this.name = name;
}
/**
* Gets the type value for this ParameterDefinition.
*
* @return type
*/
public java.lang.String getType() {
return type;
}
/**
* Sets the type value for this ParameterDefinition.
*
* @param type
*/
public void setType(java.lang.String type) {
this.type = type;
}
/**
* Gets the isMandatory value for this ParameterDefinition.
*
* @return isMandatory
*/
public boolean isIsMandatory() {
return isMandatory;
}
/**
* Sets the isMandatory value for this ParameterDefinition.
*
* @param isMandatory
*/
public void setIsMandatory(boolean isMandatory) {
this.isMandatory = isMandatory;
}
/**
* Gets the displayLabel value for this ParameterDefinition.
*
* @return displayLabel
*/
public java.lang.String getDisplayLabel() {
return displayLabel;
}
/**
* Sets the displayLabel value for this ParameterDefinition.
*
* @param displayLabel
*/
public void setDisplayLabel(java.lang.String displayLabel) {
this.displayLabel = displayLabel;
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof ParameterDefinition)) return false;
ParameterDefinition other = (ParameterDefinition) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
((this.name==null && other.getName()==null) ||
(this.name!=null &&
this.name.equals(other.getName()))) &&
((this.type==null && other.getType()==null) ||
(this.type!=null &&
this.type.equals(other.getType()))) &&
this.isMandatory == other.isIsMandatory() &&
((this.displayLabel==null && other.getDisplayLabel()==null) ||
(this.displayLabel!=null &&
this.displayLabel.equals(other.getDisplayLabel())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
if (getName() != null) {
_hashCode += getName().hashCode();
}
if (getType() != null) {
_hashCode += getType().hashCode();
}
_hashCode += (isIsMandatory() ? Boolean.TRUE : Boolean.FALSE).hashCode();
if (getDisplayLabel() != null) {
_hashCode += getDisplayLabel().hashCode();
}
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(ParameterDefinition.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "ParameterDefinition"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("name");
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "name"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("type");
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "type"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("isMandatory");
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "isMandatory"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("displayLabel");
elemField.setXmlName(new javax.xml.namespace.QName("http://www.alfresco.org/ws/service/action/1.0", "displayLabel"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setNillable(true);
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);
}
}