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.


Method Index

 o getExpandedName(int)
Get the expanded name for an attribute in the list (by position)
 o getLength()
Return the number of attributes in this list.
 o getLocalName(int)
Get the local name for an attribute in the list (by position)
 o getName(int)
Return the name of an attribute in this list (by position).
 o getNamespace(int)
Get the resolved namespace for an attribute in the list (by position)
 o getPrefix(int)
Get the namespace prefix for an attribute in the list (by position)
 o getQualifiedName(int)
Get the qualified name for an attribute in the list (by position)
 o getType(int)
 o getType(String)
Return the type of an attribute in the list (by name).
 o getValue(int)
Return the value of an attribute in the list (by position).
 o getValue(String)
Return the value of an attribute in the list (by name).

Methods

 o 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.
 o 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
 o getType
 public String getType(int i)
 o 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
 o 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
 o 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
 o 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
 o 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
 o 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
 o 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
 o 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