|
Oracle ADF Model and Business Components API Reference 10.1.2 B14022-01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.jbo.NameValuePairs
Holder of name/value pairs.
This class provides methods for setting and getting values either by index or by name.
Constructor Summary | |
NameValuePairs()
Creates an empty attribute list. |
|
NameValuePairs(int size)
Constructs a new attribute list with a specified initial capacity. |
|
NameValuePairs(java.lang.String[] nameArr,
java.lang.Object[] valArr)
|
Method Summary | |
void |
clear()
|
java.lang.Object |
getAttribute(int index)
Gets the value of an attribute identified by its index. |
java.lang.Object |
getAttribute(java.lang.String name)
Gets the value of an attribute identified by name. |
int |
getAttributeCount()
Counts the attributes. |
int |
getAttributeIndexOf(java.lang.String name)
Gets the index of a named attribute. |
java.lang.String[] |
getAttributeNames()
Returns an array of attribute names in this list. |
java.lang.Object[] |
getAttributeValues()
Returns an array of attribute values in this list. |
void |
setAttribute(int index,
java.lang.Object value)
Sets the value for the specified attribute. |
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Sets the value for the named attribute. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NameValuePairs()
public NameValuePairs(int size)
size
- the initial cacpacity.public NameValuePairs(java.lang.String[] nameArr, java.lang.Object[] valArr)
Method Detail |
public java.lang.Object getAttribute(int index)
getAttribute
in interface AttributeList
index
- the attribute's index.
null
if
index
is out of range.public java.lang.Object getAttribute(java.lang.String name)
getAttribute
in interface AttributeList
name
- the attribute's name.
null
if
index
is out of range.public void setAttribute(int index, java.lang.Object value)
setAttribute
in interface AttributeList
index
- the attribute index.value
- the attribute's new value.public void setAttribute(java.lang.String name, java.lang.Object value)
setAttribute
in interface AttributeList
name
- the attribute name.value
- the attribute's new value.public int getAttributeCount()
getAttributeCount
in interface AttributeList
public int getAttributeIndexOf(java.lang.String name)
getAttributeIndexOf
in interface AttributeList
name
- the attribute's name.
public java.lang.String[] getAttributeNames()
AttributeList
getAttributeNames
in interface AttributeList
public java.lang.Object[] getAttributeValues()
AttributeList
getAttributeValues
in interface AttributeList
public void clear()
|
Oracle ADF Model and Business Components API Reference 10.1.2 B14022-01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.