com.novell.admin.ns.nds
Class OctetListFacade
java.lang.Object
|
+--com.novell.admin.ns.ValueListFacade
|
+--com.novell.admin.ns.nds.OctetListFacade
- public final class OctetListFacade
- extends ValueListFacade
Facade for the NDS Octet list syntax.
|
Method Summary |
void |
addOctet(byte[] octet)
Adds an octet to the list. |
static ValueList |
createValueList(byte[][] octets)
Creates an NDS octet list ValueList. |
byte[] |
getOctet(int index)
Retrieves an octet in the list. |
byte[][] |
getOctets()
Retrieves the octet list. |
void |
removeOctet(int index)
Removes an octet from the list. |
void |
replaceOctet(byte[] octet,
int index)
Replace an octet in the list. |
void |
setOctet(byte[] newOctet,
int index)
Sets an octet in the list. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
OctetListFacade
public OctetListFacade(ValueList comp)
throws IncompatibleComponentException
- Facade constructor
- Parameters:
valueList - The ValueList that represents the Octet list data.- Throws:
- IncompatibleComponentException - Thrown if the ValueList syntax is
not NDSSyntax.SYN_OCTET_LIST.
createValueList
public static ValueList createValueList(byte[][] octets)
- Creates an NDS octet list ValueList.
- Parameters:
octets - Refer to NDS Schema Reference.- Returns:
- A new octet list ValueList.
getOctets
public byte[][] getOctets()
- Retrieves the octet list.
- Returns:
- The octet list.
getOctet
public byte[] getOctet(int index)
throws java.lang.ArrayIndexOutOfBoundsException
- Retrieves an octet in the list.
- Parameters:
index - The index of the octet to retrieve.- Returns:
- The octet.
- Throws:
- java.lang.ArrayIndexOutOfBoundsException - index in not in range of list.
setOctet
public void setOctet(byte[] newOctet,
int index)
throws java.lang.ArrayIndexOutOfBoundsException
- Sets an octet in the list.
- Parameters:
newOctet - The octet to set.index - The index of the octet to set.- Throws:
- java.lang.ArrayIndexOutOfBoundsException - index in not in range of list.
addOctet
public void addOctet(byte[] octet)
- Adds an octet to the list.
- Parameters:
octet - The octet to add.
removeOctet
public void removeOctet(int index)
throws java.lang.ArrayIndexOutOfBoundsException
- Removes an octet from the list.
- Parameters:
index - The index of the octet to remove.- Throws:
- java.lang.ArrayIndexOutOfBoundsException - index in not in range of list.
replaceOctet
public void replaceOctet(byte[] octet,
int index)
throws java.lang.ArrayIndexOutOfBoundsException
- Replace an octet in the list.
- Parameters:
octet - The new octet.index - The index of the octet to be replaced.- Throws:
- java.lang.ArrayIndexOutOfBoundsException - index in not in range of list.
API Documentation Copyright © 1998-2003 Novell, Inc. All rights reserved.
ConsoleOne is a registered trademark of Novell Inc.
Generated December 9 2003 1727.