APIdia Launch Partner
Top Fields Constructors Methods
com.sun.org.apache.xalan.internal.xsltc.runtime

public final Class Attributes

extends Object
implements AttributeList
Class Inheritance
All Implemented Interfaces
org.xml.sax.AttributeList
Annotations
@SuppressWarnings:deprecation
Imports
com.sun.org.apache.xalan.internal.xsltc.DOM, org.xml.sax.AttributeList

References Deprecated

AttributeList is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Authors
Jacek Ambroziak, Santiago Pericas-Geertsen

Field Summary

Modifier and TypeField and Description
private DOM
private int

Constructor Summary

AccessConstructor and Description
public
Attributes(DOM document, int element)

Method Summary

Modifier and TypeMethod and Description
public int
getLength()

Implements org.xml.sax.AttributeList.getLength.

Return the number of attributes in this list.

public String
getName(int i)

Implements org.xml.sax.AttributeList.getName.

Return the name of an attribute in this list (by position).

public String
getType(int i)

Implements org.xml.sax.AttributeList.getType.

Return the type of an attribute in the list (by position).

public String
getType(String name)

Implements org.xml.sax.AttributeList.getType.

Return the type of an attribute in the list (by name).

public String
getValue(int i)

Implements org.xml.sax.AttributeList.getValue.

Return the value of an attribute in the list (by position).

public String
getValue(String name)

Implements org.xml.sax.AttributeList.getValue.

Return the value of an attribute in the list (by name).

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_documentback to summary
private DOM _document
_elementback to summary
private int _element

Constructor Detail

Attributesback to summary
public Attributes(DOM document, int element)

Method Detail

getLengthback to summary
public int getLength()

Implements org.xml.sax.AttributeList.getLength.

Doc from org.xml.sax.AttributeList.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.

getNameback to summary
public String getName(int i)

Implements org.xml.sax.AttributeList.getName.

Doc from org.xml.sax.AttributeList.getName.

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.

getTypeback to summary
public String getType(int i)

Implements org.xml.sax.AttributeList.getType.

Doc from org.xml.sax.AttributeList.getType.

Return the type of an attribute in the list (by position).

The attribute type is one of the strings "CDATA", "ID", "IDREF", "IDREFS", "NMTOKEN", "NMTOKENS", "ENTITY", "ENTITIES", or "NOTATION" (always in upper case).

If the parser has not read a declaration for the attribute, or if the parser does not report attribute types, then it must return the value "CDATA" as stated in the XML 1.0 Recommentation (clause 3.3.3, "Attribute-Value Normalization").

For an enumerated attribute that is not a notation, the parser will report the type as "NMTOKEN".

getTypeback to summary
public String getType(String name)

Implements org.xml.sax.AttributeList.getType.

Doc from org.xml.sax.AttributeList.getType.

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.

getValueback to summary
public String getValue(int i)

Implements org.xml.sax.AttributeList.getValue.

Doc from org.xml.sax.AttributeList.getValue.

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.

getValueback to summary
public String getValue(String name)

Implements org.xml.sax.AttributeList.getValue.

Doc from org.xml.sax.AttributeList.getValue.

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.