Class VariableAttributes
- java.lang.Object
-
- org.apache.commons.digester.substitution.VariableAttributes
-
- All Implemented Interfaces:
org.xml.sax.Attributes
public class VariableAttributes extends java.lang.Object implements org.xml.sax.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(java.lang.String qname)intgetIndex(java.lang.String uri, java.lang.String localpart)intgetLength()java.lang.StringgetLocalName(int index)java.lang.StringgetQName(int index)java.lang.StringgetType(int index)java.lang.StringgetType(java.lang.String qname)java.lang.StringgetType(java.lang.String uri, java.lang.String localname)java.lang.StringgetURI(int index)java.lang.StringgetValue(int index)java.lang.StringgetValue(java.lang.String qname)java.lang.StringgetValue(java.lang.String uri, java.lang.String localname)voidinit(org.xml.sax.Attributes attrs, VariableExpander expander)Specify which attributes class this object is a proxy for.
-
-
-
Constructor Detail
-
VariableAttributes
public VariableAttributes()
-
-
Method Detail
-
init
public void init(org.xml.sax.Attributes attrs, VariableExpander expander)
Specify which attributes class this object is a proxy for.
-
getValue
public java.lang.String getValue(int index)
- Specified by:
getValuein interfaceorg.xml.sax.Attributes
-
getValue
public java.lang.String getValue(java.lang.String qname)
- Specified by:
getValuein interfaceorg.xml.sax.Attributes
-
getValue
public java.lang.String getValue(java.lang.String uri, java.lang.String localname)
- Specified by:
getValuein interfaceorg.xml.sax.Attributes
-
getIndex
public int getIndex(java.lang.String qname)
- Specified by:
getIndexin interfaceorg.xml.sax.Attributes
-
getIndex
public int getIndex(java.lang.String uri, java.lang.String localpart)
- Specified by:
getIndexin interfaceorg.xml.sax.Attributes
-
getLength
public int getLength()
- Specified by:
getLengthin interfaceorg.xml.sax.Attributes
-
getLocalName
public java.lang.String getLocalName(int index)
- Specified by:
getLocalNamein interfaceorg.xml.sax.Attributes
-
getQName
public java.lang.String getQName(int index)
- Specified by:
getQNamein interfaceorg.xml.sax.Attributes
-
getType
public java.lang.String getType(int index)
- Specified by:
getTypein interfaceorg.xml.sax.Attributes
-
getType
public java.lang.String getType(java.lang.String qname)
- Specified by:
getTypein interfaceorg.xml.sax.Attributes
-
getType
public java.lang.String getType(java.lang.String uri, java.lang.String localname)
- Specified by:
getTypein interfaceorg.xml.sax.Attributes
-
getURI
public java.lang.String getURI(int index)
- Specified by:
getURIin interfaceorg.xml.sax.Attributes
-
-