|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.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 have the same syntax. |
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)
obj - The value to create.public ValueComponent createValueComponent()
public ValueComponent createValueComponent(java.lang.Object obj)
throws ComponentCreationException
obj - The object used as the initial value.public boolean equals(ValueComponent obj1,
ValueComponent obj2)
obj1 - Must be a StreamValue.obj2 - Any other Value type.public long compare(ValueComponent obj1,
ValueComponent obj2)
obj1 - Must be a StreamValue.obj2 - Any other Value type.public java.lang.String toString(ValueComponent obj)
obj - Must be a StreamValue.public abstract Syntax getSyntax()
public boolean isWithinBounds(ValueComponent comp,
long lowerBound,
long upperBound)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||