protected class ProgrammaticViewObjectImpl.DataProviderAttributeList extends java.lang.Object implements AttributeList
Modifier and Type | Field and Description |
---|---|
protected java.util.List |
attributeList |
protected java.lang.Object |
dataProvider |
protected ProgrammaticViewObjectImpl |
mVO |
Constructor and Description |
---|
DataProviderAttributeList(AttributeDefImpl[] attrDefList,
java.lang.Object obj,
ProgrammaticViewObjectImpl vo) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getAttribute(int index)
Selects the attribute at the given index.
|
java.lang.Object |
getAttribute(java.lang.String name)
Selects the attribute with the given name.
|
int |
getAttributeCount()
Counts the number of attributes.
|
int |
getAttributeIndexOf(java.lang.String name)
Finds the index (0-based) of the 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 of an attribute.
|
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Set the value for the named attribute.
|
protected java.lang.Object dataProvider
protected ProgrammaticViewObjectImpl mVO
protected java.util.List attributeList
public DataProviderAttributeList(AttributeDefImpl[] attrDefList, java.lang.Object obj, ProgrammaticViewObjectImpl vo)
public java.lang.Object getAttribute(int index)
AttributeList
getAttribute
in interface AttributeList
index
- an integer in the range 0
to getAttributeCount() - 1
.index
.public java.lang.Object getAttribute(java.lang.String name)
AttributeList
getAttribute
in interface AttributeList
name
- an attribute name.name
.public void setAttribute(int index, java.lang.Object value)
AttributeList
setAttribute
in interface AttributeList
index
- the attribute's index.value
- the value to be assigned to the attribute.public void setAttribute(java.lang.String name, java.lang.Object value)
AttributeList
setAttribute
in interface AttributeList
name
- the attribute's name.value
- the value to be assigned to the attribute.public int getAttributeCount()
AttributeList
getAttributeCount
in interface AttributeList
public int getAttributeIndexOf(java.lang.String name)
AttributeList
getAttributeIndexOf
in interface AttributeList
name
- the attribute's name.0
to getAttributeCount() - 1
.
If the named attribute is not found, it returns -1.public java.lang.String[] getAttributeNames()
AttributeList
getAttributeNames
in interface AttributeList
public java.lang.Object[] getAttributeValues()
AttributeList
getAttributeValues
in interface AttributeList