| Modifier and Type | Field and Description |
|---|---|
protected static int |
TOSTRING_LIMIT
Max string length returned by toString().
|
| Constructor and Description |
|---|
ListStrategy() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canInsertComponent(ValueList list,
ValueComponent comp)
Default test to see if the associated ValueList can have a specific
type of ValueComponent inserted as an aggregate.
|
boolean |
canRemoveComponent(ValueList list,
ValueComponent comp)
Default test to see if a specific ValueComponent can be removed from
the associated ValueList.
|
long |
compare(ValueComponent component1,
ValueComponent component2)
Default algorithm to compare two ValueComponent objects.
|
abstract java.lang.Object |
createFacade(ValueComponent comp)
Create a facade for the syntax associated with this strategy.
|
boolean |
equals(ValueComponent component1,
ValueComponent component2)
Default algorithm to test if two ValueComponent objects are identical.
|
java.util.Vector |
getAddableSyntaxes(ValueList list)
Get a Vector of all possible syntaxes that can be constructed and added
as aggregates of the associated ValueList.
|
boolean |
isWithinBounds(ValueComponent comp,
long lowerBound,
long upperBound)
Used to test if a component is within bounds.
|
java.lang.String |
toString(ValueComponent component)
Default algorithm to convert a ValueList to a String.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateValueComponent, createValueComponentprotected static final int TOSTRING_LIMIT
public java.util.Vector getAddableSyntaxes(ValueList list)
By default, an empty vector is returned. Composite syntaxes that allow components to be aggregated must override this method and supply an appropriately populated vector.
public boolean canInsertComponent(ValueList list, ValueComponent comp)
comp - ValueComponent to test.public boolean canRemoveComponent(ValueList list, ValueComponent comp)
comp - ValueComponent to test.public java.lang.String toString(ValueComponent component)
The length of the string returned for a ValueList object by this method is limited to 256 bytes.
toString in interface Strategycomponent - ValueComponent to convert. Should be a ValueList.ValueComponent.toString()public boolean equals(ValueComponent component1, ValueComponent component2)
equals in interface Strategycomponent1 - First ValueComponent which must be a ValueList.component2 - Second ValueComponent.ValueComponent.equals(Object)public long compare(ValueComponent component1, ValueComponent component2)
compare in interface Strategycomponent1 - First ValueComponent object which must be a ValueList.component2 - Second ValueComponent object which must be a ValueList.ValueComponent.compareTo(ValueComponent)public abstract java.lang.Object createFacade(ValueComponent comp) throws IncompatibleComponentException
comp - The component that the facade is to be associated with.IncompatibleComponentException - 'comp' was not of the proper
syntax.public boolean isWithinBounds(ValueComponent comp, long lowerBound, long upperBound)
Most composite syntaxes do not support limits. Therefore, the default behavior is to return false. This behavior must be overridden when needed!
isWithinBounds in interface Strategycomp - ValueComponent that needs to be checked.lowerBound - lower limit to check.upperBound - 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}.