|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.novell.admin.ns.StreamStrategy
Base class that implements the strategies for most stream syntaxes.
This class is not intended to be used directly by any applications. Please refer to the StreamValue class.
| Constructor Summary | |
StreamStrategy()
|
|
| Method Summary | |
boolean |
canCreateValue(java.lang.Object obj)
Tests to see if a StreamValue can be created from the specified object. |
long |
compare(ValueComponent obj1,
ValueComponent obj2)
Tests to see if two StreamValue objects compare. |
ValueComponent |
createValueComponent()
Creates a new ValueComponent using default values. |
ValueComponent |
createValueComponent(java.lang.Object obj)
Creates a new ValueComponent using specified values. |
boolean |
equals(ValueComponent obj1,
ValueComponent obj2)
Tests to see if two StreamValue objects are equal. |
abstract Syntax |
getSyntax()
Returns the syntax associated with this strategy. |
boolean |
isWithinBounds(ValueComponent comp,
long lowerBound,
long upperBound)
Checks to see if a component is within certain bounds. |
java.lang.String |
toString(ValueComponent obj)
Converts the ValueComponent to a 256 character string. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public StreamStrategy()
| Method Detail |
public boolean canCreateValue(java.lang.Object obj)
canCreateValue in interface ValueStrategyobj - The value to create.
public long compare(ValueComponent obj1,
ValueComponent obj2)
compare in interface Strategyobj1 - Must be a StreamValue.obj2 - Any other Value type.
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 StreamValue.obj2 - Any other Value type.
ValueComponent.equals(Object)public abstract Syntax getSyntax()
getSyntax in interface ValueStrategypublic boolean isWithinBounds(ValueComponent comp,
long lowerBound,
long upperBound)
isWithinBounds in interface Strategycomp - ValueComponent that needs to be checked.lowerBound - The lower limit to check.upperBound - The upper limit to check.
public java.lang.String toString(ValueComponent obj)
toString in interface Strategyobj - Must be a StreamValue.
ValueComponent.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||