package tufts.vue.propertyeditor;
/**
* Condition.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.3 Oct 05, 2005 (05:23:37 EDT) WSDL2Java emitter.
*/
public class Condition implements java.io.Serializable {
private java.lang.String property;
private ComparisonOperator operator;
private java.lang.String value;
public Condition() {
}
public Condition(
java.lang.String property,
ComparisonOperator operator,
java.lang.String value) {
this.property = property;
this.operator = operator;
this.value = value;
}
/**
* Gets the property value for this Condition.
*
* @return property
*/
public java.lang.String getProperty() {
return property;
}
/**
* Sets the property value for this Condition.
*
* @param property
*/
public void setProperty(java.lang.String property) {
this.property = property;
}
/**
* Gets the operator value for this Condition.
*
* @return operator
*/
public ComparisonOperator getOperator() {
return operator;
}
/**
* Sets the operator value for this Condition.
*
* @param operator
*/
public void setOperator(ComparisonOperator operator) {
this.operator = operator;
}
/**
* Gets the value value for this Condition.
*
* @return value
*/
public java.lang.String getValue() {
return value;
}
/**
* Sets the value value for this Condition.
*
* @param value
*/
public void setValue(java.lang.String value) {
this.value = value;
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof Condition)) return false;
Condition other = (Condition) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
((this.property==null && other.getProperty()==null) ||
(this.property!=null &&
this.property.equals(other.getProperty()))) &&
((this.operator==null && other.getOperator()==null) ||
(this.operator!=null &&
this.operator.equals(other.getOperator()))) &&
((this.value==null && other.getValue()==null) ||
(this.value!=null &&
this.value.equals(other.getValue())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
if (getProperty() != null) {
_hashCode += getProperty().hashCode();
}
if (getOperator() != null) {
_hashCode += getOperator().hashCode();
}
if (getValue() != null) {
_hashCode += getValue().hashCode();
}
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
/* private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(Condition.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.fedora.info/definitions/1/0/types/", "Condition"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("property");
elemField.setXmlName(new javax.xml.namespace.QName("", "property"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setNillable(true);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("operator");
elemField.setXmlName(new javax.xml.namespace.QName("", "operator"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.fedora.info/definitions/1/0/types/", "ComparisonOperator"));
elemField.setNillable(true);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("value");
elemField.setXmlName(new javax.xml.namespace.QName("", "value"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setNillable(true);
typeDesc.addFieldDesc(elemField);
}
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}
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);
}
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);
}
*/
}