|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<NamedStringArray.NamedString>
com.bea.wsrp.ext.holders.NamedStringArray
public class NamedStringArray
This class holds an ordered set of string name/value pairs and corresponds to the WSRP 2.0 type "NamedStringArray"; when used as an event payload over WSRP 2.0, it will be bound to this standard WSRP 2.0 type which may allow for better interoperability with third-party producers or consumers that support WSRP 2.0 eventing. When used as an event payload over WSRP 1.0, it will get serialized as a Java object. NamedStringArray cannot contain null name/value pairs (NamedString) and the name portion of each NamedString cannot be null, but the value may be null.
| Nested Class Summary | |
|---|---|
static class |
NamedStringArray.NamedStringThis class represents a single name/value pair in a NamedStringArray, where the name is a non-null string and value is a nullable string. |
| Field Summary |
|---|
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
NamedStringArray()Constructs a new, empty NamedStringArray. |
|
NamedStringArray(Element root)Constructs a new NamedStringArray from the specified DOM element, which should be the root "NamedStringArray" element. |
|
NamedStringArray(int size)Constructs a new, empty NamedStringArray of the specified initial size. |
|
| Method Summary | |
|---|---|
void |
add(int index, NamedStringArray.NamedString element)Inserts the specified NamedString at the specified position in this NamedStringArray. |
void |
add(int index, String name, String value)Inserts the specified name/value pair at the specified position in this NamedStringArray. |
void |
add(String name, String value)Appends the specified name/value pair to the end of this NamedStringArray. |
void |
clear()Removes all entries from this NamedStringArray. |
boolean |
equals(Object o) |
NamedStringArray.NamedString |
get(int index)Gets the NamedString at the specified index. |
String |
getName(int index)Gets the name of the NamedString at the specified index. |
String |
getValue(int index)Gets the value of the NamedString at the specified index. |
List<String> |
getValues(String name)Returns all values associated with the specified name, in the same order they appear in the NamedStringArray. |
int |
hashCode() |
NamedStringArray.NamedString |
remove(int index)Removes the name/value pair at the specified index, shifting any entries beyond that position to the right (removing one from their indicies). |
void |
remove(String name)Removes all name/value pairs in this NamedStringArray with the specified name. |
NamedStringArray.NamedString |
set(int index, NamedStringArray.NamedString element)Replaces the NamedString at the specified position in this NamedStringArray with the specified NamedString. |
void |
set(int index, String name, String value)Replaces the name/value pair at the specified index with the specified name and value. |
int |
size()Returns the number of entries in this NamedStringArray. |
String |
toString() |
void |
writeTo(Element root)Writes this NamedStringArray to the specified DOM element, which is the root element of the NamedStringArray. |
| Methods inherited from class java.util.AbstractList |
|---|
add, addAll, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray |
| Constructor Detail |
|---|
public NamedStringArray()
public NamedStringArray(int size)
size - the initial capacity for this NamedStringArray.public NamedStringArray(Element root)
root - the root DOM element of the NamedStringArray, whose child elements consist of "NamedString" elements.IllegalArgumentException - if the argument is null.| Method Detail |
|---|
public int size()
size in interface Collection<NamedStringArray.NamedString>size in interface List<NamedStringArray.NamedString>size in class AbstractCollection<NamedStringArray.NamedString>public NamedStringArray.NamedString get(int index)
get in interface List<NamedStringArray.NamedString>get in class AbstractList<NamedStringArray.NamedString>index - the index of the NamedString in the NamedStringArray to get.IndexOutOfBoundsException - if the index is out of range (index < 0 || index >= size())public String getName(int index)
index - the index of the NamedString in the NamedStringArray to get the name of.IndexOutOfBoundsException - if the index is out of range (index < 0 || index >= size())public String getValue(int index)
index - the index of the NamedString in the NamedStringArray to get the value of.IndexOutOfBoundsException - if the index is out of range (index < 0 || index >= size())public List<String> getValues(String name)
name - the name to get all the values for.
public void add(String name,
String value)
name - the name of the NamedString to add to the end of the NamedStringArrayvalue - the value of the NamedString to add to the end of the NamedStringArray.IllegalArgumentException - if name is null.NullPointerException - if the name argument is null.
public void add(int index,
NamedStringArray.NamedString element)
add in interface List<NamedStringArray.NamedString>add in class AbstractList<NamedStringArray.NamedString>index - the index at which the specified element is to be inserted.element - the NamedString to be inserted.NullPointerException - if element is nullIndexOutOfBoundsExcepion - if the index is out of range (index < 0 || index >= size())
public void add(int index,
String name,
String value)
index - the index at which the specified name/value pair is to be inserted.name - the name to insertvalue - the value to insertIllegalArgumentException - if name is null.IndexOutOfBoundsException - if the index is out of range (index < 0 || index >= size())NullPointerException - if the name argument is null.
public void set(int index,
String name,
String value)
index - the index to replace with the specified name/value pair.name - the name to replace withvalue - the value to replace withIllegalArgumentException - if name is null.IndexOutOfBoundsException - if the index is out of range (index < 0 || index >= size())NullPointerException - if the specified name is null.
public NamedStringArray.NamedString set(int index,
NamedStringArray.NamedString element)
set in interface List<NamedStringArray.NamedString>set in class AbstractList<NamedStringArray.NamedString>index - the index of the element to replace.element - the NamedString to be stored at the specified position.IndexOutOfBoundsExcepion - if the index is out of range (index < 0 || index >= size())NullPointerException - if the element argument is null.public NamedStringArray.NamedString remove(int index)
remove in interface List<NamedStringArray.NamedString>remove in class AbstractList<NamedStringArray.NamedString>index - the index of the name/value pair to remove.IndexOutOfBoundsException - if the index is out of range (index < 0 || index >= size())public void remove(String name)
name - the name of all name/value pairs to remove.public void clear()
clear in interface Collection<NamedStringArray.NamedString>clear in interface List<NamedStringArray.NamedString>clear in class AbstractList<NamedStringArray.NamedString>public void writeTo(Element root)
root - the root DOM element to write the NamedString elements to.public String toString()
toString in class AbstractCollection<NamedStringArray.NamedString>public boolean equals(Object o)
equals in interface Collection<NamedStringArray.NamedString>equals in interface List<NamedStringArray.NamedString>equals in class AbstractList<NamedStringArray.NamedString>public int hashCode()
hashCode in interface Collection<NamedStringArray.NamedString>hashCode in interface List<NamedStringArray.NamedString>hashCode in class AbstractList<NamedStringArray.NamedString>
|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright © 2010, Oracle. All rights reserved.