Class VariableAttributes
- java.lang.Object
-
- org.apache.commons.digester.substitution.VariableAttributes
-
- All Implemented Interfaces:
Attributes
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.
- Since:
- 1.6
-
-
Constructor Summary
Constructors Constructor Description VariableAttributes()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
init
public void init(Attributes attrs, VariableExpander expander)
Specify which attributes class this object is a proxy for.
-
getValue
public String getValue(int index)
- Specified by:
getValue
in interfaceAttributes
-
getValue
public String getValue(String qname)
- Specified by:
getValue
in interfaceAttributes
-
getValue
public String getValue(String uri, String localname)
- Specified by:
getValue
in interfaceAttributes
-
getIndex
public int getIndex(String qname)
- Specified by:
getIndex
in interfaceAttributes
-
getIndex
public int getIndex(String uri, String localpart)
- Specified by:
getIndex
in interfaceAttributes
-
getLength
public int getLength()
- Specified by:
getLength
in interfaceAttributes
-
getLocalName
public String getLocalName(int index)
- Specified by:
getLocalName
in interfaceAttributes
-
getQName
public String getQName(int index)
- Specified by:
getQName
in interfaceAttributes
-
getType
public String getType(int index)
- Specified by:
getType
in interfaceAttributes
-
getType
public String getType(String qname)
- Specified by:
getType
in interfaceAttributes
-
getType
public String getType(String uri, String localname)
- Specified by:
getType
in interfaceAttributes
-
getURI
public String getURI(int index)
- Specified by:
getURI
in interfaceAttributes
-
-