| java.lang.Object net.sf.saxon.tinytree.TinyAttributeCollection
TinyAttributeCollection | public class TinyAttributeCollection implements AttributeCollection(Code) | | An implementation of the AttributeCollection interface based directly on the
TinyTree data structure.
|
Method Summary | |
public int | getIndex(String uri, String localname) Get the index of an attribute (by name).
Parameters: uri - The namespace uri of the attribute. Parameters: localname - The local name of the attribute. | public int | getIndexByFingerprint(int fingerprint) | public int | getLength() Return the number of attributes in the list. | public int | getLineNumber(int index) Get the line number part of the location of an attribute, at a given index.
Attribute location information is not available from a SAX parser, so this method
is not useful for getting the location of an attribute in a source document. | public String | getLocalName(int index) Get the local name of an attribute (by position).
Parameters: index - The position of the attribute in the list. | public int | getLocationId(int index) Get the locationID of an attribute (by position)
Parameters: index - The position of the attribute in the list. | public int | getNameCode(int index) Get the namecode of an attribute (by position).
Parameters: index - The position of the attribute in the list. | public String | getPrefix(int index) Get the prefix of the name of an attribute (by position).
Parameters: index - The position of the attribute in the list. | public int | getProperties(int index) Get the properties of an attribute (by position)
Parameters: index - The position of the attribute in the list. | public String | getQName(int index) Get the lexical QName of an attribute (by position).
Parameters: index - The position of the attribute in the list. | public String | getSystemId(int index) Get the systemId part of the location of an attribute, at a given index.
Attribute location information is not available from a SAX parser, so this method
is not useful for getting the location of an attribute in a source document. | public int | getTypeAnnotation(int index) Get the type annotation of an attribute (by position).
Parameters: index - The position of the attribute in the list. | public String | getURI(int index) Get the namespace URI of an attribute (by position).
Parameters: index - The position of the attribute in the list. | public String | getValue(String uri, String localname) Get the value of an attribute (by name).
Parameters: uri - The namespace uri of the attribute. Parameters: localname - The local name of the attribute. | public String | getValue(int index) Get the value of an attribute (by position).
Parameters: index - The position of the attribute in the list. | public String | getValueByFingerprint(int fingerprint) | public boolean | isId(int index) | public void | setLocationProvider(LocationProvider provider) Set the location provider. |
firstAttribute | int firstAttribute(Code) | | |
TinyAttributeCollection | public TinyAttributeCollection(TinyTree tree, int element)(Code) | | |
getIndex | public int getIndex(String uri, String localname)(Code) | | Get the index of an attribute (by name).
Parameters: uri - The namespace uri of the attribute. Parameters: localname - The local name of the attribute. The index position of the attribute |
getIndexByFingerprint | public int getIndexByFingerprint(int fingerprint)(Code) | | Get the index, given the fingerprint
|
getLength | public int getLength()(Code) | | Return the number of attributes in the list.
The number of attributes in the list. |
getLineNumber | public int getLineNumber(int index)(Code) | | Get the line number part of the location of an attribute, at a given index.
Attribute location information is not available from a SAX parser, so this method
is not useful for getting the location of an attribute in a source document. However,
in a Saxon result document, the location information represents the location in the
stylesheet of the instruction used to generate this attribute, which is useful for
debugging.
Parameters: index - the required attribute the line number of the location of the attribute |
getLocalName | public String getLocalName(int index)(Code) | | Get the local name of an attribute (by position).
Parameters: index - The position of the attribute in the list. The local name of the attribute as a string, or null if thereis no attribute at that position. |
getLocationId | public int getLocationId(int index)(Code) | | Get the locationID of an attribute (by position)
Parameters: index - The position of the attribute in the list. The location identifier of the attribute. This can be suppliedto a net.sf.saxon.event.LocationProvider in order to obtain theactual system identifier and line number of the relevant location |
getNameCode | public int getNameCode(int index)(Code) | | Get the namecode of an attribute (by position).
Parameters: index - The position of the attribute in the list. The display name of the attribute as a string, or null if thereis no attribute at that position. |
getPrefix | public String getPrefix(int index)(Code) | | Get the prefix of the name of an attribute (by position).
Parameters: index - The position of the attribute in the list. The prefix of the attribute name as a string, or null if thereis no attribute at that position. Returns "" for an attribute thathas no prefix. |
getQName | public String getQName(int index)(Code) | | Get the lexical QName of an attribute (by position).
Parameters: index - The position of the attribute in the list. The lexical QName of the attribute as a string, or null if thereis no attribute at that position. |
getSystemId | public String getSystemId(int index)(Code) | | Get the systemId part of the location of an attribute, at a given index.
Attribute location information is not available from a SAX parser, so this method
is not useful for getting the location of an attribute in a source document. However,
in a Saxon result document, the location information represents the location in the
stylesheet of the instruction used to generate this attribute, which is useful for
debugging.
Parameters: index - the required attribute the systemId of the location of the attribute |
getTypeAnnotation | public int getTypeAnnotation(int index)(Code) | | Get the type annotation of an attribute (by position).
Parameters: index - The position of the attribute in the list. The type annotation of the attribute as the fingerprint of the type name.The bit net.sf.saxon.om.NodeInfo.IS_DTD_TYPE represents a DTD-derived type. |
getURI | public String getURI(int index)(Code) | | Get the namespace URI of an attribute (by position).
Parameters: index - The position of the attribute in the list. The local name of the attribute as a string, or null if thereis no attribute at that position. |
getValue | public String getValue(String uri, String localname)(Code) | | Get the value of an attribute (by name).
Parameters: uri - The namespace uri of the attribute. Parameters: localname - The local name of the attribute. The index position of the attribute |
getValue | public String getValue(int index)(Code) | | Get the value of an attribute (by position).
Parameters: index - The position of the attribute in the list. The attribute value as a string, or null ifthere is no attribute at that position. |
getValueByFingerprint | public String getValueByFingerprint(int fingerprint)(Code) | | Get the attribute value using its fingerprint
|
isId | public boolean isId(int index)(Code) | | Determine whether a given attribute has the is-ID property set
|
setLocationProvider | public void setLocationProvider(LocationProvider provider)(Code) | | Set the location provider. This must be set if the methods getSystemId() and getLineNumber()
are to be used to get location information for an attribute.
|
|
|