|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.novell.admin.ns.TimeStrategy
Final class that implements the strategy for most TIME syntaxes.
This class is not intended to by used directly by applications.
| Field Summary | |
protected static int |
WITHIN_BOUNDS
Internal Error |
| Constructor Summary | |
TimeStrategy()
|
|
| Method Summary | |
boolean |
canCreateValue(java.lang.Object obj)
Test to see if a Time can be created from the specified object. |
long |
compare(ValueComponent component1,
ValueComponent component2)
Compares two value objects. |
ValueComponent |
createValueComponent()
Creates a new ValueComponent using default values. |
ValueComponent |
createValueComponent(java.lang.Object obj)
Creates a new ValueComponent. |
boolean |
equals(ValueComponent component1,
ValueComponent component2)
Tests to see if two LongValue objects are equal. |
abstract Syntax |
getSyntax()
Returns the syntax associated with this strategy. |
boolean |
isWithinBounds(ValueComponent comp,
long lowerBound,
long upperBound)
Checks if a DateValue is within bounds. |
java.lang.String |
toString(ValueComponent obj)
Converts the value 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 TimeStrategy()
| Method Detail |
public boolean equals(ValueComponent component1,
ValueComponent component2)
component1 - First Value used in 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 boolean canCreateValue(java.lang.Object obj)
obj - Must be an instance of a Number, Date, or String.public ValueComponent createValueComponent()
public ValueComponent createValueComponent(java.lang.Object obj)
throws ComponentCreationException
obj - Must be a Date, Number (meaning milliseconds), or String.public java.lang.String toString(ValueComponent obj)
obj - A DateValue object.public abstract Syntax getSyntax()
public boolean isWithinBounds(ValueComponent comp,
long lowerBound,
long upperBound)
comp - The ValueComponent to check.lowerBound - The lower limit to check in milliseconds.upperLimit - The upper limit to check in milliseconds.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||