|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.novell.admin.ns.IntegerStrategy
Abstract class that may be extended for syntax strategies that use integer as the value type.
Methods in this class and any subclasses are not intended to be used directly by an application. These methods are intended to be use by ValueComponent and syntax classes.
| Field Summary | |
protected static int |
WITHIN_BOUNDS
Internal Error |
| Constructor Summary | |
IntegerStrategy()
|
|
| Method Summary | |
boolean |
canCreateValue(java.lang.Object obj)
Tests to see if a LongValue can be created. |
long |
compare(ValueComponent component1,
ValueComponent component2)
Compares two value objects. |
ValueComponent |
createValueComponent()
Creates a new LongValue using zero as the default initial data. |
ValueComponent |
createValueComponent(java.lang.Object obj)
Creates a new LongValue using specified initial data. |
boolean |
equals(ValueComponent component1,
ValueComponent component2)
Tests to see if two LongValue objects are equal. |
boolean |
isWithinBounds(ValueComponent comp,
long lowerBound,
long upperBound)
Algorithm to test if a LongValue is within bounds. |
java.lang.String |
toString(ValueComponent obj)
Converts a LongValue object to a String. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
protected static final int WITHIN_BOUNDS
| Constructor Detail |
public IntegerStrategy()
| Method Detail |
public boolean equals(ValueComponent component1,
ValueComponent component2)
component1 - First Value used in the test, which must be LongValue.component2 - Second Value used in test.public long compare(ValueComponent component1,
ValueComponent component2)
component1 - First value used in comparison, which must be a LongValue.component2 - Second value used in comparison, which must be a LongValue.public java.lang.String toString(ValueComponent obj)
obj - Component to convert. Should be a LongValue instance.public boolean canCreateValue(java.lang.Object obj)
obj - An Object to create the value from.public ValueComponent createValueComponent(java.lang.Object obj)
throws ComponentCreationException
obj - Must be either a Number or String instance.public ValueComponent createValueComponent()
public boolean isWithinBounds(ValueComponent comp,
long lowerBound,
long upperBound)
comp - The ValueComponent to check.lowerBound - The lower limit to check.upperLimit - The upper limit to check.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||