cern::laser::client::impl::services::selection::FilterImpl Class Reference

Inheritance diagram for cern::laser::client::impl::services::selection::FilterImpl:
Inheritance graph
[legend]
Collaboration diagram for cern::laser::client::impl::services::selection::FilterImpl:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 FilterImpl ()
 FilterImpl (String newProperty, String newOperator, String newValue)
 FilterImpl (String newProperty, String newOperator, String newValue, boolean multiplePercentAllowed)
String getProperty ()
void setProperty (String newProperty)
String getOperator ()
void setOperator (String newOperator)
String getValue ()
void setValue (String newValue)
boolean equals (Object ref)
int hashCode ()
String toString ()
boolean isBoolean ()
boolean isInteger ()
boolean isDouble ()
boolean isLong ()
boolean isFloat ()
boolean isShort ()
boolean isNumeric ()
boolean isString ()
boolean isByte ()
void validate () throws LaserException

Static Public Member Functions

static final String[] operators ()
static final String[] properties ()

Private Attributes

String property
String operator
String value
boolean multiplePercentAllowed

Static Private Attributes

static final String GREATER_THAN_OPERATOR = ">"
static final String LESS_THAN_OPERATOR = "<"
static final String GREATER_EQUAL_THAN_OPERATOR = ">="
static final String LESS_EQUAL_THAN_OPERATOR = "<="
static final String EQUAL_OPERATOR = "="
static final String NOT_EQUAL_OPERATOR = "<>"
static final String LIKE_OPERATOR = "LIKE"
static final String privateOperators []
static final String ALARM_ID_PROPERTY = "ALARM_ID"
static final String FAULT_FAMILY_PROPERTY = "FAULT_FAMILY"
static final String FAULT_MEMBER_PROPERTY = "FAULT_MEMBER"
static final String FAULT_CODE_PROPERTY = "FAULT_CODE"
static final String PROBLEM_DESCRIPTION_PROPERTY = "PROBLEM_DESCRIPTION"
static final String SITE_PROPERTY = "SITE"
static final String BUILDING_PROPERTY = "BUILDING"
static final String PRIORITY_PROPERTY = "PRIORITY"
static final String SOURCE_NAME_PROPERTY = "SOURCE_NAME"
static final String SAFETY_ZONE_PROPERTY = "SAFETY_ZONE"
static final String RESPONSIBLE_PERSON_PROPERTY = "RESPONSIBLE_PERSON"
static final String SYSTEM_NAME_PROPERTY = "SYSTEM_NAME"
static final String IDENTIFIER_PROPERTY = "IDENTIFIER"
static final String privateProperties []
static final String BOOLEAN_SUFFIX = "_BOOL"
static final String INTEGER_SUFFIX = "_INT"
static final String FLOAT_SUFFIX = "_FLOAT"
static final String DOUBLE_SUFFIX = "_DOUBLE"
static final String SHORT_SUFFIX = "_SHORT"
static final String LONG_SUFFIX = "_LONG"
static final String STRING_SUFFIX = "_STRING"
static final String BYTE_SUFFIX = "_BYTE"
static final String integerProperties []
static final String stringProperties []
static final String numericOperators []
static final String literalOperators [] = { EQUAL_OPERATOR, NOT_EQUAL_OPERATOR, LIKE_OPERATOR}
static final String booleanOperators [] = { EQUAL_OPERATOR, NOT_EQUAL_OPERATOR,}
static final String byteOperators [] = { EQUAL_OPERATOR, NOT_EQUAL_OPERATOR,}

Constructor & Destructor Documentation

cern::laser::client::impl::services::selection::FilterImpl::FilterImpl (  )  [inline]
cern::laser::client::impl::services::selection::FilterImpl::FilterImpl ( String  newProperty,
String  newOperator,
String  newValue 
) [inline]
cern::laser::client::impl::services::selection::FilterImpl::FilterImpl ( String  newProperty,
String  newOperator,
String  newValue,
boolean  multiplePercentAllowed 
) [inline]

References value.


Member Function Documentation

boolean cern::laser::client::impl::services::selection::FilterImpl::equals ( Object  ref  )  [inline]

References toString().

Referenced by validate().

String cern::laser::client::impl::services::selection::FilterImpl::getOperator (  )  [inline, virtual]
String cern::laser::client::impl::services::selection::FilterImpl::getProperty (  )  [inline, virtual]

Accessor method.

Returns:
the alarm property to filter against

Implements cern::laser::client::services::selection::Filter.

References property.

Referenced by cern::laser::client::impl::services::selection::FilterSelectionImpl::toSQLString().

String cern::laser::client::impl::services::selection::FilterImpl::getValue (  )  [inline, virtual]
int cern::laser::client::impl::services::selection::FilterImpl::hashCode (  )  [inline]

References toString().

boolean cern::laser::client::impl::services::selection::FilterImpl::isBoolean (  )  [inline]

References BOOLEAN_SUFFIX, and property.

Referenced by isString(), and validate().

boolean cern::laser::client::impl::services::selection::FilterImpl::isByte (  )  [inline]

References BYTE_SUFFIX, and property.

Referenced by isString(), and validate().

boolean cern::laser::client::impl::services::selection::FilterImpl::isDouble (  )  [inline]

References DOUBLE_SUFFIX, and property.

Referenced by isNumeric(), and validate().

boolean cern::laser::client::impl::services::selection::FilterImpl::isFloat (  )  [inline]

References FLOAT_SUFFIX, and property.

Referenced by isNumeric(), and validate().

boolean cern::laser::client::impl::services::selection::FilterImpl::isInteger (  )  [inline]

References INTEGER_SUFFIX, integerProperties, and property.

Referenced by isNumeric(), and validate().

boolean cern::laser::client::impl::services::selection::FilterImpl::isLong (  )  [inline]

References LONG_SUFFIX, and property.

Referenced by isNumeric(), and validate().

boolean cern::laser::client::impl::services::selection::FilterImpl::isNumeric (  )  [inline]

References isDouble(), isFloat(), isInteger(), isLong(), isShort(), and property.

Referenced by isString(), and validate().

boolean cern::laser::client::impl::services::selection::FilterImpl::isShort (  )  [inline]

References property, and SHORT_SUFFIX.

Referenced by isNumeric(), and validate().

boolean cern::laser::client::impl::services::selection::FilterImpl::isString (  )  [inline]
static final String [] cern::laser::client::impl::services::selection::FilterImpl::operators (  )  [inline, static]

References privateOperators.

static final String [] cern::laser::client::impl::services::selection::FilterImpl::properties (  )  [inline, static]

References privateProperties.

void cern::laser::client::impl::services::selection::FilterImpl::setOperator ( String  newOperator  )  [inline, virtual]

Accessor method.

Parameters:
newOperator Accessor method.

Implements cern::laser::client::services::selection::Filter.

void cern::laser::client::impl::services::selection::FilterImpl::setProperty ( String  newProperty  )  [inline, virtual]

Accessor method.

Parameters:
newProperty the alarm property to filter against

Implements cern::laser::client::services::selection::Filter.

void cern::laser::client::impl::services::selection::FilterImpl::setValue ( String  newValue  )  [inline, virtual]

Accessor method.

Parameters:
newValue the value to filter

Implements cern::laser::client::services::selection::Filter.

References value.

String cern::laser::client::impl::services::selection::FilterImpl::toString (  )  [inline]

References property, and value.

Referenced by equals(), and hashCode().

void cern::laser::client::impl::services::selection::FilterImpl::validate (  )  throws LaserException [inline, virtual]

Member Data Documentation

Predefined numeric property.

Referenced by isBoolean().

The predefined boolean privateOperators array.

Predefined numeric property.

Referenced by isByte().

The predefined byte privateOperators array.

Referenced by validate().

Referenced by isDouble().

Operator.

Predefined numeric property.

Predefined literal property.

Predefined literal property.

Referenced by isFloat().

Operator.

Operator.

Predefined literal property.

Referenced by isInteger().

Operator.

Operator.

Operator.

Referenced by validate().

The predefined literal privateOperators array.

Referenced by validate().

Referenced by isLong().

Referenced by validate().

Operator.

Initial value:

The predefined numeric privateOperators array.

Referenced by validate().

Predefined numeric property.

Predefined literal property.

Predefined literal property.

Predefined numeric property.

Referenced by isShort().

Predefined literal property.

Predefined literal property.

Predefined literal property.


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2