Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.xalan.templates
Class AVTPart  view AVTPart download AVTPart.java

java.lang.Object
  extended byorg.apache.xalan.templates.AVTPart
All Implemented Interfaces:
java.io.Serializable, XSLTVisitable
Direct Known Subclasses:
AVTPartSimple, AVTPartXPath

public abstract class AVTPart
extends java.lang.Object
implements java.io.Serializable, XSLTVisitable

Class to hold a part, either a string or XPath, of an Attribute Value Template.


Constructor Summary
AVTPart()
          Construct a part.
 
Method Summary
 boolean canTraverseOutsideSubtree()
          Tell if this expression or it's subexpressions can traverse outside the current subtree.
abstract  void evaluate(org.apache.xpath.XPathContext xctxt, org.apache.xml.utils.FastStringBuffer buf, int context, org.apache.xml.utils.PrefixResolver nsNode)
          Write the evaluated value into the given string buffer.
abstract  void fixupVariables(java.util.Vector vars, int globalsSize)
          This function is used to fixup variables from QNames to stack frame indexes at stylesheet build time.
abstract  java.lang.String getSimpleString()
          Get the AVT part as the original string.
 void setXPathSupport(org.apache.xpath.XPathContext support)
          Set the XPath support.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.xalan.templates.XSLTVisitable
callVisitors
 

Constructor Detail

AVTPart

public AVTPart()
Construct a part.

Method Detail

getSimpleString

public abstract java.lang.String getSimpleString()
Get the AVT part as the original string.


evaluate

public abstract void evaluate(org.apache.xpath.XPathContext xctxt,
                              org.apache.xml.utils.FastStringBuffer buf,
                              int context,
                              org.apache.xml.utils.PrefixResolver nsNode)
                       throws javax.xml.transform.TransformerException
Write the evaluated value into the given string buffer.


setXPathSupport

public void setXPathSupport(org.apache.xpath.XPathContext support)
Set the XPath support.


canTraverseOutsideSubtree

public boolean canTraverseOutsideSubtree()
Tell if this expression or it's subexpressions can traverse outside the current subtree.


fixupVariables

public abstract void fixupVariables(java.util.Vector vars,
                                    int globalsSize)
This function is used to fixup variables from QNames to stack frame indexes at stylesheet build time.