public class XMLAttributesInDTS.NodeAttributeList
extends net.sf.saxon.tree.util.AttributeCollectionImpl
implements net.sf.saxon.om.AttributeCollection
Constructor and Description |
---|
NodeAttributeList(net.sf.saxon.Configuration config)
Instantiates a new node attribute list.
|
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(net.sf.saxon.om.NodeName nodeName,
net.sf.saxon.type.SimpleType type,
java.lang.String value,
int locationId,
int properties)
Add an attribute to an attribute list.
|
int |
findByNodeName(net.sf.saxon.om.NodeName nameCode)
Find by node name.
|
int |
getIndex(java.lang.String uri,
java.lang.String localname)
Gets the index.
|
int |
getIndexByFingerprint(int fingerprint)
Gets the index by fingerprint.
|
int |
getLength()
Gets the length.
|
int |
getLineNumber(int index)
Gets the line number.
|
java.lang.String |
getLocalName(int index)
Gets the local name.
|
int |
getLocationId(int index)
Gets the location id.
|
int |
getNameCode(int index)
Gets the name code.
|
net.sf.saxon.om.NodeName |
getNodeName(int index)
Gets the node name.
|
java.lang.String |
getPrefix(int index)
Gets the prefix.
|
int |
getProperties(int index)
Gets the properties.
|
java.lang.String |
getQName(int index)
Gets the q name.
|
java.lang.String |
getSystemId(int index)
Gets the system id.
|
net.sf.saxon.type.SimpleType |
getTypeAnnotation(int index)
Gets the type annotation.
|
java.lang.String |
getURI(int index)
Gets the uri.
|
java.lang.String |
getValue(int index)
Gets the value.
|
java.lang.String |
getValue(java.lang.String uri,
java.lang.String localname)
Gets the value.
|
java.lang.String |
getValueByFingerprint(int fingerprint)
Gets the value by fingerprint.
|
boolean |
isDeleted(int index)
Checks if is deleted.
|
boolean |
isId(int index)
Checks if is id.
|
boolean |
isIdref(int index)
Checks if is idref.
|
void |
replaceAttribute(int idx,
java.lang.String attrValue)
Replace attribute.
|
public NodeAttributeList(net.sf.saxon.Configuration config)
config
- the configpublic int getLength()
getLength
in interface net.sf.saxon.om.AttributeCollection
getLength
in interface org.xml.sax.Attributes
getLength
in class net.sf.saxon.tree.util.AttributeCollectionImpl
public net.sf.saxon.om.NodeName getNodeName(int index)
getNodeName
in interface net.sf.saxon.om.AttributeCollection
getNodeName
in class net.sf.saxon.tree.util.AttributeCollectionImpl
index
- the indexpublic int getNameCode(int index)
getNameCode
in interface net.sf.saxon.om.AttributeCollection
getNameCode
in class net.sf.saxon.tree.util.AttributeCollectionImpl
index
- the indexpublic net.sf.saxon.type.SimpleType getTypeAnnotation(int index)
getTypeAnnotation
in interface net.sf.saxon.om.AttributeCollection
getTypeAnnotation
in class net.sf.saxon.tree.util.AttributeCollectionImpl
index
- the indexpublic int getLocationId(int index)
getLocationId
in interface net.sf.saxon.om.AttributeCollection
getLocationId
in class net.sf.saxon.tree.util.AttributeCollectionImpl
index
- the indexpublic java.lang.String getSystemId(int index)
getSystemId
in interface net.sf.saxon.om.AttributeCollection
getSystemId
in class net.sf.saxon.tree.util.AttributeCollectionImpl
index
- the indexpublic int getLineNumber(int index)
getLineNumber
in interface net.sf.saxon.om.AttributeCollection
getLineNumber
in class net.sf.saxon.tree.util.AttributeCollectionImpl
index
- the indexpublic int getProperties(int index)
getProperties
in interface net.sf.saxon.om.AttributeCollection
getProperties
in class net.sf.saxon.tree.util.AttributeCollectionImpl
index
- the indexpublic java.lang.String getPrefix(int index)
getPrefix
in interface net.sf.saxon.om.AttributeCollection
getPrefix
in class net.sf.saxon.tree.util.AttributeCollectionImpl
index
- the indexpublic java.lang.String getQName(int index)
getQName
in interface net.sf.saxon.om.AttributeCollection
getQName
in interface org.xml.sax.Attributes
getQName
in class net.sf.saxon.tree.util.AttributeCollectionImpl
index
- the indexpublic java.lang.String getLocalName(int index)
getLocalName
in interface net.sf.saxon.om.AttributeCollection
getLocalName
in interface org.xml.sax.Attributes
getLocalName
in class net.sf.saxon.tree.util.AttributeCollectionImpl
index
- the indexpublic java.lang.String getURI(int index)
getURI
in interface net.sf.saxon.om.AttributeCollection
getURI
in interface org.xml.sax.Attributes
getURI
in class net.sf.saxon.tree.util.AttributeCollectionImpl
index
- the indexpublic int getIndex(java.lang.String uri, java.lang.String localname)
getIndex
in interface net.sf.saxon.om.AttributeCollection
getIndex
in interface org.xml.sax.Attributes
getIndex
in class net.sf.saxon.tree.util.AttributeCollectionImpl
uri
- the urilocalname
- the localnamepublic int getIndexByFingerprint(int fingerprint)
getIndexByFingerprint
in interface net.sf.saxon.om.AttributeCollection
getIndexByFingerprint
in class net.sf.saxon.tree.util.AttributeCollectionImpl
fingerprint
- the fingerprintpublic java.lang.String getValueByFingerprint(int fingerprint)
getValueByFingerprint
in interface net.sf.saxon.om.AttributeCollection
getValueByFingerprint
in class net.sf.saxon.tree.util.AttributeCollectionImpl
fingerprint
- the fingerprintpublic java.lang.String getValue(java.lang.String uri, java.lang.String localname)
getValue
in interface net.sf.saxon.om.AttributeCollection
getValue
in interface org.xml.sax.Attributes
getValue
in class net.sf.saxon.tree.util.AttributeCollectionImpl
uri
- the urilocalname
- the localnamepublic java.lang.String getValue(int index)
getValue
in interface net.sf.saxon.om.AttributeCollection
getValue
in interface org.xml.sax.Attributes
getValue
in class net.sf.saxon.tree.util.AttributeCollectionImpl
index
- the indexpublic boolean isId(int index)
isId
in interface net.sf.saxon.om.AttributeCollection
isId
in class net.sf.saxon.tree.util.AttributeCollectionImpl
index
- the indexpublic boolean isIdref(int index)
isIdref
in interface net.sf.saxon.om.AttributeCollection
isIdref
in class net.sf.saxon.tree.util.AttributeCollectionImpl
index
- the indexpublic int findByNodeName(net.sf.saxon.om.NodeName nameCode)
findByNodeName
in class net.sf.saxon.tree.util.AttributeCollectionImpl
nameCode
- the name codepublic void addAttribute(net.sf.saxon.om.NodeName nodeName, net.sf.saxon.type.SimpleType type, java.lang.String value, int locationId, int properties)
Receiver.attribute(net.sf.saxon.om.NodeName, net.sf.saxon.type.SimpleType, CharSequence, int, int)
method. There is no check that the name of the attribute is distinct from other attributes
already in the collection: this check must be made by the caller.addAttribute
in class net.sf.saxon.tree.util.AttributeCollectionImpl
nodeName
- Object representing the attribute name.type
- The attribute typevalue
- The attribute value (must not be null)locationId
- Identifies the attribute location.properties
- Attribute propertiespublic void replaceAttribute(int idx, java.lang.String attrValue)
idx
- the idxattrValue
- the attr valuepublic boolean isDeleted(int index)
isDeleted
in class net.sf.saxon.tree.util.AttributeCollectionImpl
index
- the indexCopyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa