|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.novell.admin.ns.BooleanStrategy
Final class that implements the strategy for the NDS boolean syntax.
This class is not public and no methods should be available to applications.
Constructor Summary | |
BooleanStrategy()
|
Method Summary | |
boolean |
canCreateValue(java.lang.Object obj)
Test to see if a BooleanValue can be created from the specified object. |
long |
compare(ValueComponent obj1,
ValueComponent obj2)
Tests to see how two BooleanValues compare. |
ValueComponent |
createValueComponent()
Factory a new ValueComponent using default values. |
ValueComponent |
createValueComponent(java.lang.Object obj)
Factory a new ValueComponent using specified values. |
boolean |
equals(ValueComponent obj1,
ValueComponent obj2)
Tests to see if two BooleanValues are identical. |
boolean |
isWithinBounds(ValueComponent comp,
long lowerBound,
long upperBound)
Check to see if a BooleanComponent is within certain bounds. |
java.lang.String |
toString(ValueComponent obj)
Converts the ValueComponent to a string. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public BooleanStrategy()
Method Detail |
public boolean canCreateValue(java.lang.Object obj)
obj
- Any object.public ValueComponent createValueComponent()
public ValueComponent createValueComponent(java.lang.Object obj) throws ComponentCreationException
obj
- The object used as the initial value.public boolean equals(ValueComponent obj1, ValueComponent obj2)
obj1
- Must be a BooleanValue.obj2
- Any other Value type.public long compare(ValueComponent obj1, ValueComponent obj2)
obj1
- Must be a BooleanValue.obj2
- Must be a BooleanValue.public java.lang.String toString(ValueComponent obj)
obj
- Must be a BooleanValue.public boolean isWithinBounds(ValueComponent comp, long lowerBound, long upperBound)
com
- The ValueComponent holding the values.lowerBound
- The lower bound.upperBound
- The upper bound.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |