org.apache.commons.digester.substitution

Class VariableAttributes

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

Method Summary
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

getIndex

public int getIndex(String qname)

getIndex

public int getIndex(String uri, String localpart)

getLength

public int getLength()

getLocalName

public String getLocalName(int index)

getQName

public String getQName(int index)

getType

public String getType(int index)

getType

public String getType(String qname)

getType

public String getType(String uri, String localname)

getURI

public String getURI(int index)

getValue

public String getValue(int index)

getValue

public String getValue(String qname)

getValue

public String getValue(String uri, String localname)

init

public void init(Attributes attrs, VariableExpander expander)
Specify which attributes class this object is a proxy for.
Copyright © 2001-2010 Apache Software Foundation. All Rights Reserved.