|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.digester3.substitution.VariableAttributes
public class VariableAttributes
Wrapper for an 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.
| Constructor Summary | |
|---|---|
VariableAttributes()
|
|
| Method Summary | |
|---|---|
int |
getIndex(String qname)
|
int |
getIndex(String uri,
String localpart)
|
int |
getLength()
|
String |
getLocalName(int index)
|
String |
getQName(int index)
|
String |
getType(int index)
|
String |
getType(String qname)
|
String |
getType(String uri,
String localname)
|
String |
getURI(int index)
|
String |
getValue(int index)
|
String |
getValue(String qname)
|
String |
getValue(String uri,
String localname)
|
void |
init(Attributes attrs,
VariableExpander expander)
Specify which attributes class this object is a proxy for. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public VariableAttributes()
| Method Detail |
|---|
public void init(Attributes attrs,
VariableExpander expander)
attrs - The attributes where variables have to be expanded.expander - The variables expander instance.public String getValue(int index)
getValue in interface Attributespublic String getValue(String qname)
getValue in interface Attributes
public String getValue(String uri,
String localname)
getValue in interface Attributespublic int getIndex(String qname)
getIndex in interface Attributes
public int getIndex(String uri,
String localpart)
getIndex in interface Attributespublic int getLength()
getLength in interface Attributespublic String getLocalName(int index)
getLocalName in interface Attributespublic String getQName(int index)
getQName in interface Attributespublic String getType(int index)
getType in interface Attributespublic String getType(String qname)
getType in interface Attributes
public String getType(String uri,
String localname)
getType in interface Attributespublic String getURI(int index)
getURI in interface Attributes
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||