Class VariableAttributes
java.lang.Object
org.apache.commons.digester.substitution.VariableAttributes
- All Implemented Interfaces:
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
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintintgetLocalName(int index) getQName(int index) getType(int index) getURI(int index) getValue(int index) voidinit(Attributes attrs, VariableExpander expander) Specify which attributes class this object is a proxy for.
-
Field Details
-
values
-
attrs
-
expander
-
-
Constructor Details
-
VariableAttributes
public VariableAttributes()
-
-
Method Details
-
init
Specify which attributes class this object is a proxy for. -
getValue
- Specified by:
getValuein interfaceAttributes
-
getValue
- Specified by:
getValuein interfaceAttributes
-
getValue
- Specified by:
getValuein interfaceAttributes
-
getIndex
- Specified by:
getIndexin interfaceAttributes
-
getIndex
- Specified by:
getIndexin interfaceAttributes
-
getLength
public int getLength()- Specified by:
getLengthin interfaceAttributes
-
getLocalName
- Specified by:
getLocalNamein interfaceAttributes
-
getQName
- Specified by:
getQNamein interfaceAttributes
-
getType
- Specified by:
getTypein interfaceAttributes
-
getType
- Specified by:
getTypein interfaceAttributes
-
getType
- Specified by:
getTypein interfaceAttributes
-
getURI
- Specified by:
getURIin interfaceAttributes
-