|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.novell.admin.ns.ListStrategy
Abstract class for all stategies that support value lists.
ValueList| Field Summary | |
protected static int |
TOSTRING_LIMIT
Max string length returned by toString(). |
| Constructor Summary | |
ListStrategy()
|
|
| Method Summary | |
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 algorithym 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 algorithym 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 algorithym to convert a ValueList 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 TOSTRING_LIMIT
| Constructor Detail |
public ListStrategy()
| Method Detail |
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)
component - ValueComponent to convert. Should be a ValueList.public boolean equals(ValueComponent component1,
ValueComponent component2)
component1 - First ValueComponent which must be a ValueList.component2 - Second ValueComponent.public long compare(ValueComponent component1,
ValueComponent component2)
component1 - First ValueComponent object which must be a ValueList.component2 - Second ValueComponent object which must be a ValueList.public abstract java.lang.Object createFacade(ValueComponent comp)
throws IncompatibleComponentException
comp - The component that the facade is to be associated with.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!
comp - ValueComponent that needs to be checked.lowerBound - lower limit to check.upperBound - upper limit to check.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||