|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xalan.templates.AVT
Class to hold an Attribute Value Template.
Field Summary | |
private String |
m_name
The name of the attribute. |
private Vector |
m_parts
If the AVT is complex, hold a Vector of AVTParts. |
private String |
m_rawName
The name of the attribute. |
private String |
m_simpleString
If the AVT is not complex, just hold the simple string. |
private String |
m_uri
The namespace URI of the owning attribute. |
Constructor Summary | |
AVT(StylesheetHandler handler,
String uri,
String name,
String rawName,
String stringedValue,
ElemTemplateElement owner)
Construct an AVT by parsing the string, and either constructing a vector of AVTParts, or simply hold on to the string if the AVT is simple. |
Method Summary | |
void |
callVisitors(XSLTVisitor visitor)
This will traverse the heararchy, calling the visitor for each member. |
boolean |
canTraverseOutsideSubtree()
Tell if this expression or it's subexpressions can traverse outside the current subtree. |
String |
evaluate(XPathContext xctxt,
int context,
PrefixResolver nsNode)
Evaluate the AVT and return a String. |
void |
fixupVariables(Vector vars,
int globalsSize)
This function is used to fixup variables from QNames to stack frame indexes at stylesheet build time. |
String |
getName()
Get the local name of the attribute. |
String |
getRawName()
Get the raw name of the attribute, with the prefix unprocessed. |
String |
getSimpleString()
Get the AVT as the original string. |
String |
getURI()
Get the namespace URI of the attribute. |
boolean |
isContextInsensitive()
Test whether the AVT is insensitive to the context in which it is being evaluated. |
boolean |
isSimple()
Returns true if this AVT is simple |
void |
setName(String name)
Set the local name of the attribute. |
void |
setRawName(String rawName)
Get the raw name of the attribute, with the prefix unprocessed. |
void |
setURI(String uri)
Get the namespace URI of the attribute. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private String m_simpleString
private Vector m_parts
private String m_rawName
private String m_name
private String m_uri
Constructor Detail |
public AVT(StylesheetHandler handler, String uri, String name, String rawName, String stringedValue, ElemTemplateElement owner) throws javax.xml.transform.TransformerException
handler
- non-null reference to StylesheetHandler that is constructing.uri
- non-null reference to URI, "" if null namespace.name
- non-null reference to name string.rawName
- prefixed name.stringedValue
- non-null raw string value.
javax.xml.transform.TransformerException
Method Detail |
public String getRawName()
public void setRawName(String rawName)
rawName
- non-null reference to prefixed name.public String getName()
public void setName(String name)
name
- non-null reference to name string.public String getURI()
public void setURI(String uri)
uri
- non-null reference to URI, "" if null namespace.public String getSimpleString()
public String evaluate(XPathContext xctxt, int context, PrefixResolver nsNode) throws javax.xml.transform.TransformerException
xctxt
- Te XPathContext to use to evaluate this.context
- The current source tree context.nsNode
- The current namespace context (stylesheet tree context).
javax.xml.transform.TransformerException
public boolean isContextInsensitive()
public boolean canTraverseOutsideSubtree()
public void fixupVariables(Vector vars, int globalsSize)
vars
- List of QNames that correspond to variables. This list
should be searched backwards for the first qualified name that
corresponds to the variable reference qname. The position of the
QName in the vector from the start of the vector will be its position
in the stack frame (but variables above the globalsTop value will need
to be offset to the current stack frame).public void callVisitors(XSLTVisitor visitor)
XSLTVisitable
callVisitors
in interface XSLTVisitable
visitor
- The visitor whose appropriate method will be called.XSLTVisitable.callVisitors(XSLTVisitor)
public boolean isSimple()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |