public abstract class ValueListFacade
extends java.lang.Object
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.
| Modifier and Type | Field and Description |
|---|---|
protected ValueList |
valueList
The list of value components contained in the facade.
|
| Constructor and Description |
|---|
ValueListFacade(ValueList valueList)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected ValueList valueList
public ValueListFacade(ValueList valueList)
valueList - The ValueList object to associate with this facade.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.java.lang.ArrayIndexOutOfBoundsException - index is not in the value list.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.java.lang.ArrayIndexOutOfBoundsException - index is not in the value list.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.java.lang.ArrayIndexOutOfBoundsException - index is not in the value list.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.java.lang.ArrayIndexOutOfBoundsException - index is not in the value list.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.java.lang.ArrayIndexOutOfBoundsException - index is not in the value list.
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}.