|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.novell.admin.ns.ValueListFacade
The ValueList facade provides a simple interface to values that correspond to composite syntaxes.
Instead of finding a specific value component by enumerating each component of the ValueList or through the value component's index, the facades provide methods to extract and set specific value components directly to and from the value list.
If a new SyntaxListStrategy is added, this class must be extended by a corresponding new facade.
| Field Summary | |
protected ValueList |
valueList
The list of value components contained in the facade. |
| Constructor Summary | |
ValueListFacade(ValueList valueList)
Constructor. |
|
| Method Summary | |
ValueList |
getValueList()
Returns the ValueList associated with this facade. |
protected void |
replaceBooleanValue(boolean value,
int index)
Helper method that encapsulates the procedure for replacing a specific value in a ValueList with a new component created from a boolean. |
protected void |
replaceHexValue(byte[] value,
int index)
Helper method that encapsulates the procedure for replacing a specific value in a ValueList with a new component created from a byte[]. |
protected void |
replaceLongValue(long value,
int index)
Helper method that encapsulates the procedure for replacing a specific value in a ValueList with a new component created from a long. |
protected void |
replaceStringValue(java.lang.String str,
int index)
Helper method that encapsulates the procedure for replacing a specific value in a ValueList with a new component created from a string. |
protected void |
replaceValueList(ValueList newValue,
int index)
Helper method that encapsulates the procedure for replacing a specific Value in a ValueList with a new component created from a ValueList. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
protected ValueList valueList
| Constructor Detail |
public ValueListFacade(ValueList valueList)
valueList - The ValueList object to associate with this facade.| Method Detail |
public final ValueList getValueList()
protected final void replaceStringValue(java.lang.String str,
int index)
throws java.lang.ArrayIndexOutOfBoundsException
str - The String used to construct the new Value.index - The index of the ValueComponent to replace.
protected final void replaceLongValue(long value,
int index)
throws java.lang.ArrayIndexOutOfBoundsException
value - The long used to construct the new value.index - The index of the ValueComponent to replace.
protected final void replaceHexValue(byte[] value,
int index)
throws java.lang.ArrayIndexOutOfBoundsException
value - The byte[] used to construct the new value.index - The index of the ValueComponent to replace.
protected final void replaceBooleanValue(boolean value,
int index)
throws java.lang.ArrayIndexOutOfBoundsException
value - The boolean used to construct the new Value.index - The index of the ValueComponent to replace.
protected final void replaceValueList(ValueList newValue,
int index)
throws java.lang.ArrayIndexOutOfBoundsException
newValue - The ValueList used to construct the new Value.index - The index of the ValueComponent to replace.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||