|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.novell.admin.ns.HexStrategy
Final class that implements the strategy for the OCTET_STRING syntax.
This class is not public and no methods should be available to applications.
| Constructor Summary | |
HexStrategy()
|
|
| Method Summary | |
boolean |
canCreateValue(java.lang.Object obj)
Test to see if an object can be created from the specified object. |
long |
compare(ValueComponent obj1,
ValueComponent obj2)
Tests to see how two HexValue compare. |
ValueComponent |
createValueComponent()
Factory a new ValueComponent using default values. |
ValueComponent |
createValueComponent(java.lang.Object obj)
Factory a new HexValue using specified values. |
boolean |
equals(ValueComponent obj1,
ValueComponent obj2)
Tests to see if two ValueComponents are identical. |
boolean |
isWithinBounds(ValueComponent comp,
long lowerBound,
long upperBound)
Used to test if a component is within bounds. |
java.lang.String |
toString(ValueComponent obj)
Converts a HexValue 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 HexStrategy()
| Method Detail |
public boolean canCreateValue(java.lang.Object obj)
canCreateValue in interface ValueStrategyobj - Must be a byte[] or String object.
public long compare(ValueComponent obj1,
ValueComponent obj2)
compare in interface Strategyobj1 - Must be a HexValue.obj2 - Must be a HexValue.
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 - First ValueComponent which must be a HexValue.obj2 - Second ValueComponent.
ValueComponent.equals(Object)public boolean isWithinBounds(ValueComponent comp,
long lowerBound,
long upperBound)
isWithinBounds in interface Strategycomp - ValueComponent that needs to be checked.lowerBound - lower limit to check.upperBound - upper limit to check.
public java.lang.String toString(ValueComponent obj)
toString in interface Strategyobj - The ValueComponent to convert must be a HexValue.
ValueComponent.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||