|
Business Components | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.jbo.server.AttributeListImpl
The middle-tier manager for name/value pairs.
This class provides methods for setting and getting values either by index or by name.
Constructor Summary |
AttributeListImpl()
Creates an empty attribute list. |
AttributeListImpl(int size)
Constructs a new attribute list with a specified initial capacity. |
Method Summary |
Type | Method |
---|---|
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. |
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 AttributeListImpl()
public AttributeListImpl(int size)
size
- the initial cacpacity.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
|
Business Components | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |