Methods Summary |
---|
public boolean | getAttributeBooleanValue(int index, boolean defaultValue)Return the boolean value of attribute at 'index'.
|
public boolean | getAttributeBooleanValue(java.lang.String namespace, java.lang.String attribute, boolean defaultValue)Return the boolean value of 'attribute'.
|
public int | getAttributeCount()Returns the number of attributes available in the set.
|
public float | getAttributeFloatValue(java.lang.String namespace, java.lang.String attribute, float defaultValue)Return the float value of 'attribute'.
|
public float | getAttributeFloatValue(int index, float defaultValue)Return the float value of attribute at 'index'.
|
public int | getAttributeIntValue(java.lang.String namespace, java.lang.String attribute, int defaultValue)Return the integer value of 'attribute'.
|
public int | getAttributeIntValue(int index, int defaultValue)Return the integer value of attribute at 'index'.
|
public int | getAttributeListValue(int index, java.lang.String[] options, int defaultValue)Return the index of the value of attribute at 'index' in the list
'options'.
|
public int | getAttributeListValue(java.lang.String namespace, java.lang.String attribute, java.lang.String[] options, int defaultValue)Return the index of the value of 'attribute' in the list 'options'.
|
public java.lang.String | getAttributeName(int index)Returns the name of the specified attribute.
|
public int | getAttributeNameResource(int index)Return the resource ID associated with the given attribute name. This
will be the identifier for an attribute resource, which can be used by
styles. Returns 0 if there is no resource associated with this
attribute.
Note that this is different than {@link #getAttributeResourceValue}
in that it returns a resource identifier for the attribute name; the
other method returns this attribute's value as a resource identifier.
|
public int | getAttributeResourceValue(int index, int defaultValue)Return the value of attribute at 'index' as a resource identifier.
Note that this is different than {@link #getAttributeNameResource}
in that it returns the value contained in this attribute as a
resource identifier (i.e., a value originally of the form
"@package:type/resource"); the other method returns a resource
identifier that identifies the name of the attribute.
|
public int | getAttributeResourceValue(java.lang.String namespace, java.lang.String attribute, int defaultValue)Return the value of 'attribute' as a resource identifier.
Note that this is different than {@link #getAttributeNameResource}
in that it returns the value contained in this attribute as a
resource identifier (i.e., a value originally of the form
"@package:type/resource"); the other method returns a resource
identifier that identifies the name of the attribute.
|
public int | getAttributeUnsignedIntValue(java.lang.String namespace, java.lang.String attribute, int defaultValue)Return the boolean value of 'attribute' that is formatted as an
unsigned value. In particular, the formats 0xn...n and #n...n are
handled.
|
public int | getAttributeUnsignedIntValue(int index, int defaultValue)Return the integer value of attribute at 'index' that is formatted as an
unsigned value. In particular, the formats 0xn...n and #n...n are
handled.
|
public java.lang.String | getAttributeValue(int index)Returns the value of the specified attribute as a string representation.
|
public java.lang.String | getAttributeValue(java.lang.String namespace, java.lang.String name)Returns the value of the specified attribute as a string representation.
The lookup is performed using the attribute name.
|
public java.lang.String | getClassAttribute()Return the value of the "class" attribute or null if there is not one.
Equivalent to getAttributeValue(null, "class").
|
public java.lang.String | getIdAttribute()Return the value of the "id" attribute or null if there is not one.
Equivalent to getAttributeValue(null, "id").
|
public int | getIdAttributeResourceValue(int defaultValue)Return the integer value of the "id" attribute or defaultValue if there
is none.
Equivalent to getAttributeResourceValue(null, "id", defaultValue);
|
public java.lang.String | getPositionDescription()Returns a description of the current position of the attribute set.
For instance, if the attribute set is loaded from an XML document,
the position description could indicate the current line number.
|
public int | getStyleAttribute()Return the value of the "style" attribute or 0 if there is not one.
Equivalent to getAttributeResourceValue(null, "style").
|