org.apache.commons.digester.substitution
Class VariableAttributes
java.lang.Object
   org.apache.commons.digester.substitution.VariableAttributes
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
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
VariableAttributes
public VariableAttributes()
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 interface- Attributes
 
- 
 
getValue
public String getValue(String qname)
- 
- Specified by:
- getValuein interface- Attributes
 
- 
 
getValue
public String getValue(String uri,
                       String localname)
- 
- Specified by:
- getValuein interface- Attributes
 
- 
 
getIndex
public int getIndex(String qname)
- 
- Specified by:
- getIndexin interface- Attributes
 
- 
 
getIndex
public int getIndex(String uri,
                    String localpart)
- 
- Specified by:
- getIndexin interface- Attributes
 
- 
 
getLength
public int getLength()
- 
- Specified by:
- getLengthin interface- Attributes
 
- 
 
getLocalName
public String getLocalName(int index)
- 
- Specified by:
- getLocalNamein interface- Attributes
 
- 
 
getQName
public String getQName(int index)
- 
- Specified by:
- getQNamein interface- Attributes
 
- 
 
getType
public String getType(int index)
- 
- Specified by:
- getTypein interface- Attributes
 
- 
 
getType
public String getType(String qname)
- 
- Specified by:
- getTypein interface- Attributes
 
- 
 
getType
public String getType(String uri,
                      String localname)
- 
- Specified by:
- getTypein interface- Attributes
 
- 
 
getURI
public String getURI(int index)
- 
- Specified by:
- getURIin interface- Attributes
 
- 
 
Copyright © 2001-2009 The Apache Software Foundation. All Rights Reserved.