public class VariableAttributes extends Object implements Attributes
Wrapper for an org.xml.sax.Attributes object which expands any "variables" referenced in the attribute value via ${foo} or similar. This is only done when something actually asks for the attribute value, thereby imposing no performance penalty if the attribute is not used.
Constructor and Description |
---|
VariableAttributes() |
Modifier and Type | Method and Description |
---|---|
int |
getIndex(String qname) |
int |
getIndex(String uri,
String localpart) |
int |
getLength() |
String |
getLocalName(int index) |
String |
getQName(int index) |
String |
getType(int index) |
String |
getType(String qname) |
String |
getType(String uri,
String localname) |
String |
getURI(int index) |
String |
getValue(int index) |
String |
getValue(String qname) |
String |
getValue(String uri,
String localname) |
void |
init(Attributes attrs,
VariableExpander expander)
Specify which attributes class this object is a proxy for.
|
public void init(Attributes attrs, VariableExpander expander)
public String getValue(int index)
getValue
in interface Attributes
public String getValue(String qname)
getValue
in interface Attributes
public String getValue(String uri, String localname)
getValue
in interface Attributes
public int getIndex(String qname)
getIndex
in interface Attributes
public int getIndex(String uri, String localpart)
getIndex
in interface Attributes
public int getLength()
getLength
in interface Attributes
public String getLocalName(int index)
getLocalName
in interface Attributes
public String getQName(int index)
getQName
in interface Attributes
public String getType(int index)
getType
in interface Attributes
public String getType(String qname)
getType
in interface Attributes
public String getType(String uri, String localname)
getType
in interface Attributes
public String getURI(int index)
getURI
in interface Attributes
Copyright © 2001–2015 The Apache Software Foundation. All rights reserved.