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 intstatic final intstatic final intstatic final String[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleangetFieldObject(Field fld) This method allows access to java.lang.reflect.Field objects within the implementing class.intReturns the operator that this object represents.booleansetFieldObject(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:FieldAccessorThis method allows access to java.lang.reflect.Field objects within the implementing class.- Specified by:
getFieldObjectin interfaceFieldAccessor- Parameters:
fld- The field to get.- Returns:
- The data object that is stored in the given field
-
setFieldObject
Description copied from interface:FieldAccessorThis allows access to fields withing the implementing object to set there data.- Specified by:
setFieldObjectin 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
-