|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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 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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.novell.admin.ns.Strategy |
createValueComponent, createValueComponent |
| Field Detail |
protected static final int TOSTRING_LIMIT
| Constructor Detail |
public ListStrategy()
| Method Detail |
public boolean canInsertComponent(ValueList list,
ValueComponent comp)
comp - ValueComponent to test.
public boolean canRemoveComponent(ValueList list,
ValueComponent comp)
comp - ValueComponent to test.
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 equals(ValueComponent component1,
ValueComponent component2)
equals in interface Strategycomponent1 - First ValueComponent which must be a ValueList.component2 - Second ValueComponent.
ValueComponent.equals(Object)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 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.
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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||