Package hec.model
Class LogicalOperator
java.lang.Object
hec.model.LogicalOperator
- All Implemented Interfaces:
AsciiSerializable
,FieldAccessor
,Serializable
,Cloneable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final String[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
getFieldObject
(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.int
Returns the operator that this object represents.boolean
setFieldObject
(Field fld, Object fobj) This allows access to fields withing the implementing object to set there data.toString()
-
Field Details
-
NO_OPERATOR
public static final int NO_OPERATOR- See Also:
-
AND_OPERATOR
public static final int AND_OPERATOR- See Also:
-
OR_OPERATOR
public static final int OR_OPERATOR- See Also:
-
TOSTRING_VALUES
-
-
Constructor Details
-
LogicalOperator
public LogicalOperator() -
LogicalOperator
public LogicalOperator(int operator)
-
-
Method Details
-
equals
-
clone
-
getOperator
public int getOperator()Returns the operator that this object represents. The operator will be one of the following, AND_OPERATOR, OR_OPERATOR, or NO_OPERATOR.- Returns:
- int value representing the operator type.
-
toString
-
getFieldObject
Description copied from interface:FieldAccessor
This method allows access to java.lang.reflect.Field objects within the implementing class.- Specified by:
getFieldObject
in interfaceFieldAccessor
- Parameters:
fld
- The field to get.- Returns:
- The data object that is stored in the given field
-
setFieldObject
Description copied from interface:FieldAccessor
This allows access to fields withing the implementing object to set there data.- Specified by:
setFieldObject
in interfaceFieldAccessor
- Parameters:
fld
- The java field object representing the member field to be setfobj
- The data to set in that field- Returns:
- returns true if successful
-