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 intgetIndex(String qname)intgetIndex(String uri, String localpart)intgetLength()StringgetLocalName(int index)StringgetQName(int index)StringgetType(int index)StringgetType(String qname)StringgetType(String uri, String localname)StringgetURI(int index)StringgetValue(int index)StringgetValue(String qname)StringgetValue(String uri, String localname)voidinit(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:
getValuein interfaceAttributes
-
getValue
public String getValue(String qname)
- Specified by:
getValuein interfaceAttributes
-
getValue
public String getValue(String uri, String localname)
- Specified by:
getValuein interfaceAttributes
-
getIndex
public int getIndex(String qname)
- Specified by:
getIndexin interfaceAttributes
-
getIndex
public int getIndex(String uri, String localpart)
- Specified by:
getIndexin interfaceAttributes
-
getLength
public int getLength()
- Specified by:
getLengthin interfaceAttributes
-
getLocalName
public String getLocalName(int index)
- Specified by:
getLocalNamein interfaceAttributes
-
getQName
public String getQName(int index)
- Specified by:
getQNamein interfaceAttributes
-
getType
public String getType(int index)
- Specified by:
getTypein interfaceAttributes
-
getType
public String getType(String qname)
- Specified by:
getTypein interfaceAttributes
-
getType
public String getType(String uri, String localname)
- Specified by:
getTypein interfaceAttributes
-
getURI
public String getURI(int index)
- Specified by:
getURIin interfaceAttributes
-
-