com.alarmpoint.servicemanager
Class ServiceManagerQueryField

java.lang.Object
  extended by com.alarmpoint.servicemanager.ServiceManagerQueryField

public class ServiceManagerQueryField
extends java.lang.Object

A utility used to create a part of a Service Manager query for a field, operator and value

Author:
bneate

Constructor Summary
ServiceManagerQueryField()
          Create a new query field
ServiceManagerQueryField(java.lang.String name, ServiceManagerQueryOperator operator, java.lang.String value)
          Create a new query field with the specified field name, operator and field value
 
Method Summary
 java.lang.String getName()
          Get the field name for this field
 ServiceManagerQueryOperator getOperator()
          Get the operator for this query
 java.lang.String getQuery()
          Construct a query for this field
 java.lang.String getValue()
          Set the value to match for the query
 void setName(java.lang.String name)
          Set the field name for this field
 void setOperator(ServiceManagerQueryOperator operator)
          Set the operator for this query
 void setValue(java.lang.String value)
          Get the value to match for the query
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceManagerQueryField

public ServiceManagerQueryField()
Create a new query field


ServiceManagerQueryField

public ServiceManagerQueryField(java.lang.String name,
                                ServiceManagerQueryOperator operator,
                                java.lang.String value)
Create a new query field with the specified field name, operator and field value

Parameters:
name - The name of the field to query
operator - The operator to be used for the query
value - The value of the field to match
Method Detail

getQuery

public java.lang.String getQuery()
Construct a query for this field

Returns:
A Service Manager query for this field

getName

public java.lang.String getName()
Get the field name for this field

Returns:
The field name

setName

public void setName(java.lang.String name)
Set the field name for this field

Parameters:
name - The field name

getOperator

public ServiceManagerQueryOperator getOperator()
Get the operator for this query

Returns:
The operator

setOperator

public void setOperator(ServiceManagerQueryOperator operator)
Set the operator for this query

Parameters:
operator - The operator for the query

getValue

public java.lang.String getValue()
Set the value to match for the query

Returns:
The value to match

setValue

public void setValue(java.lang.String value)
Get the value to match for the query

Parameters:
value - The value to match