public abstract class StreamStrategy extends java.lang.Object implements ValueStrategy
This class is not intended to be used directly by any applications. Please refer to the StreamValue class.
| Constructor and Description |
|---|
StreamStrategy() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public boolean canCreateValue(java.lang.Object obj)
canCreateValue in interface ValueStrategyobj - The value to create.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 long compare(ValueComponent obj1, ValueComponent obj2)
compare in interface Strategyobj1 - Must be a StreamValue.obj2 - Any other Value type.ValueComponent.compareTo(ValueComponent)public java.lang.String toString(ValueComponent obj)
toString in interface Strategyobj - Must be a StreamValue.ValueComponent.toString()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.
API Documentation Copyright © 1998-2004 Novell, Inc. All rights reserved.
NDS is a registered trademark of Novell, Inc. in the United States and other countries.
Generated ${TODAY} ${TSTAMP}.