All Packages Class Hierarchy This Package Previous Next Index
Class oracle.xml.parser.v2.SAXAttrList
java.lang.Object
|
+----oracle.xml.parser.v2.SAXAttrList
- public class SAXAttrList
- extends Object
- implements AttributeList
This class implements the SAX AttributeList
interface and
also provides Namespace support. Applications that require Namespace
support can explicitly cast any attribute list returned by an Oracle parser
class to SAXAttrList
and use the methods described here.
-
getExpandedName(int)
- Get the expanded name for an attribute in the list (by position)
-
getLength()
- Return the number of attributes in this list.
-
getLocalName(int)
- Get the local name for an attribute in the list (by position)
-
getName(int)
- Return the name of an attribute in this list (by position).
-
getNamespace(int)
- Get the resolved namespace for an attribute in the list (by position)
-
getPrefix(int)
- Get the namespace prefix for an attribute in the list (by position)
-
getQualifiedName(int)
- Get the qualified name for an attribute in the list (by position)
-
getType(int)
-
-
getType(String)
- Return the type of an attribute in the list (by name).
-
getValue(int)
- Return the value of an attribute in the list (by position).
-
getValue(String)
- Return the value of an attribute in the list (by name).
getLength
public int getLength()
- Return the number of attributes in this list.
The SAX parser may provide attributes in any
arbitrary order, regardless of the order in which they were
declared or specified. The number of attributes may be
zero.
- Returns:
- The number of attributes in the list.
getName
public String getName(int i)
- Return the name of an attribute in this list (by position).
The names must be unique: the SAX parser shall not include the
same attribute twice. Attributes without values (those declared
#IMPLIED without a value specified in the start tag) will be
omitted from the list.
If the attribute name has a namespace prefix, the prefix
will still be attached.
- Parameters:
- i - The index of the attribute in the list (starting at 0).
- Returns:
- The name of the indexed attribute, or null
if the index is out of range.
- See Also:
- getLength
getType
public String getType(int i)
getType
public String getType(String s)
- Return the type of an attribute in the list (by name).
The return value is the same as the return value for
getType(int).
If the attribute name has a namespace prefix in the document,
the application must include the prefix here.
- Parameters:
- name - The name of the attribute.
- Returns:
- The attribute type as a string, or null if no
such attribute exists.
- See Also:
- getType
getValue
public String getValue(int i)
- Return the value of an attribute in the list (by position).
If the attribute value is a list of tokens (IDREFS,
ENTITIES, or NMTOKENS), the tokens will be concatenated
into a single string separated by whitespace.
- Parameters:
- i - The index of the attribute in the list (starting at 0).
- Returns:
- The attribute value as a string, or
null if the index is out of range.
- See Also:
- getLength, getValue
getValue
public String getValue(String s)
- Return the value of an attribute in the list (by name).
The return value is the same as the return value for
getValue(int).
If the attribute name has a namespace prefix in the document,
the application must include the prefix here.
- Parameters:
- i - The index of the attribute in the list.
- Returns:
- The attribute value as a string, or null if
no such attribute exists.
- See Also:
- getValue
getPrefix
public String getPrefix(int i)
- Get the namespace prefix for an attribute in the list (by position)
- Parameters:
- i - The index of the attribute in the list.
- Returns:
- The namespace prefix for the attribute
getQualifiedName
public String getQualifiedName(int i)
- Get the qualified name for an attribute in the list (by position)
- Parameters:
- i - The index of the attribute in the list.
- Returns:
- The qualified name for the attribute
getNamespace
public String getNamespace(int i)
- Get the resolved namespace for an attribute in the list (by position)
- Parameters:
- i - The index of the attribute in the list.
- Returns:
- The resolved namespace for the attribute
getLocalName
public String getLocalName(int i)
- Get the local name for an attribute in the list (by position)
- Parameters:
- i - The index of the attribute in the list.
- Returns:
- The local name for the attribute
getExpandedName
public String getExpandedName(int i)
- Get the expanded name for an attribute in the list (by position)
- Parameters:
- i - The index of the attribute in the list.
- Returns:
- The expanded name for the attribute
All Packages Class Hierarchy This Package Previous Next Index