|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.novell.admin.ns.BooleanStrategy
Final class that implements the strategy for the 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 |
| Methods inherited from interface com.novell.admin.ns.ValueStrategy |
getSyntax |
| Constructor Detail |
public BooleanStrategy()
| Method Detail |
public boolean canCreateValue(java.lang.Object obj)
canCreateValue in interface ValueStrategyobj - Any object.
public long compare(ValueComponent obj1,
ValueComponent obj2)
compare in interface Strategyobj1 - Must be a BooleanValue.obj2 - Must be a BooleanValue.
ValueComponent.compareTo(ValueComponent)public ValueComponent createValueComponent()
createValueComponent in interface Strategypublic ValueComponent createValueComponent(java.lang.Object obj)
throws ComponentCreationException
createValueComponent in interface Strategyobj - The object used as the initial value.
ComponentCreationException - if 'obj' cannot be used as the
initial value.public boolean equals(ValueComponent obj1,
ValueComponent obj2)
equals in interface Strategyobj1 - Must be a BooleanValue.obj2 - Any other Value type.
ValueComponent.equals(Object)public boolean isWithinBounds(ValueComponent comp,
long lowerBound,
long upperBound)
isWithinBounds in interface Strategycomp - The ValueComponent holding the values.lowerBound - The lower bound.upperBound - The upper bound.
public java.lang.String toString(ValueComponent obj)
toString in interface Strategyobj - Must be a BooleanValue.
ValueComponent.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||