Tabnine Logo
TransformerImpl.getXPathContext
Code IndexAdd Tabnine to your IDE (free)

How to use
getXPathContext
method
in
org.apache.xalan.transformer.TransformerImpl

Best Java code snippets using org.apache.xalan.transformer.TransformerImpl.getXPathContext (Showing top 20 results out of 315)

origin: robovm/robovm

/**
 * Perform a pre-order traversal non-recursive style.
 *
 * @param pos Start node for traversal
 *
 * @throws TransformerException
 */
public void traverse(int pos) throws org.xml.sax.SAXException
{
 m_dtm = m_transformer.getXPathContext().getDTM(pos);
 m_startNode = pos;
 super.traverse(pos);
}
   
origin: xalan/xalan

 /**
  * Get the DOM Node of the current XPath context, which is possibly null.
  * @param sourceNode the handle on the node used by a DTM.
  */
 private Node getDOMNodeFromDTM(int sourceNode) {
  org.apache.xml.dtm.DTM dtm = m_transformer.getXPathContext().getDTM(sourceNode);
  final Node source = (dtm == null) ? null : dtm.getNode(sourceNode);
  return source;
 }
}
origin: xalan/xalan

/**
 * Perform a pre-order traversal non-recursive style.
 *
 * @param pos Start node for traversal
 *
 * @throws TransformerException
 */
public void traverse(int pos) throws org.xml.sax.SAXException
{
 m_dtm = m_transformer.getXPathContext().getDTM(pos);
 m_startNode = pos;
 super.traverse(pos);
}
    
origin: robovm/robovm

/**
 * Execute a variable declaration and push it onto the variable stack.
 * @see <a href="http://www.w3.org/TR/xslt#variables">variables in XSLT Specification</a>
 *
 * @param transformer non-null reference to the the current transform-time state.
 *
 * @throws TransformerException
 */
public void execute(TransformerImpl transformer) throws TransformerException
{
 int sourceNode = transformer.getXPathContext().getCurrentNode();

 XObject var = getValue(transformer, sourceNode);
 // transformer.getXPathContext().getVarStack().pushVariable(m_qname, var);
 transformer.getXPathContext().getVarStack().setLocalVariable(m_index, var);
}
origin: robovm/robovm

/**
 * Execute a variable declaration and push it onto the variable stack.
 * @see <a href="http://www.w3.org/TR/xslt#variables">variables in XSLT Specification</a>
 *
 * @param transformer non-null reference to the the current transform-time state.
 *
 * @throws TransformerException
 */
public void execute(TransformerImpl transformer) throws TransformerException
{
 // if (TransformerImpl.S_DEBUG)
 //  transformer.getTraceManager().fireTraceEvent(this);
 // transformer.getXPathContext().getVarStack().pushVariable(m_qname, var);
 transformer.getXPathContext().getVarStack().setLocalVariable(m_index, m_lazyVar);
}
origin: xalan/xalan

/**
 * Execute a variable declaration and push it onto the variable stack.
 * @see <a href="http://www.w3.org/TR/xslt#variables">variables in XSLT Specification</a>
 *
 * @param transformer non-null reference to the the current transform-time state.
 *
 * @throws TransformerException
 */
public void execute(TransformerImpl transformer) throws TransformerException
{
 // if (TransformerImpl.S_DEBUG)
 //  transformer.getTraceManager().fireTraceEvent(this);
 // transformer.getXPathContext().getVarStack().pushVariable(m_qname, var);
 transformer.getXPathContext().getVarStack().setLocalVariable(m_index, m_lazyVar);
}
origin: robovm/robovm

public Object extFunction(String ns, String funcName, 
             Vector argVec, Object methodKey)
     throws javax.xml.transform.TransformerException
{//System.out.println("TransImpl.extFunction() " + ns + " " + funcName +" " + getExtensionsTable());
 return getExtensionsTable().extFunction(ns, funcName, 
                   argVec, methodKey,
                   getXPathContext().getExpressionContext());   
}
origin: robovm/robovm

public Object extFunction(FuncExtFunction extFunction, Vector argVec)
     throws javax.xml.transform.TransformerException
{
 return getExtensionsTable().extFunction(extFunction, argVec,
                     getXPathContext().getExpressionContext());   
}

origin: robovm/robovm

/**
 * @see org.apache.xalan.transformer.TransformState#getMatchedNode()
 */
public Node getMatchedNode() {
  if (m_elemPending) {
   DTM dtm = m_transformer.getXPathContext().getDTM(m_matchedNode);
   return dtm.getNode(m_matchedNode);
  } else {
   DTM dtm = m_transformer.getXPathContext().getDTM(m_transformer.getMatchedNode());
   return dtm.getNode(m_transformer.getMatchedNode());
  }
}
origin: xalan/xalan

/**
 * @see org.apache.xalan.transformer.TransformState#getMatchedNode()
 */
public Node getMatchedNode() {
  if (m_elemPending) {
   DTM dtm = m_transformer.getXPathContext().getDTM(m_matchedNode);
   return dtm.getNode(m_matchedNode);
  } else {
   DTM dtm = m_transformer.getXPathContext().getDTM(m_transformer.getMatchedNode());
   return dtm.getNode(m_transformer.getMatchedNode());
  }
}
origin: xalan/xalan

public Object extFunction(String ns, String funcName, 
             Vector argVec, Object methodKey)
     throws javax.xml.transform.TransformerException
{//System.out.println("TransImpl.extFunction() " + ns + " " + funcName +" " + getExtensionsTable());
 return getExtensionsTable().extFunction(ns, funcName, 
                   argVec, methodKey,
                   getXPathContext().getExpressionContext());   
}
origin: xalan/xalan

public Object extFunction(FuncExtFunction extFunction, Vector argVec)
     throws javax.xml.transform.TransformerException
{
 return getExtensionsTable().extFunction(extFunction, argVec,
                     getXPathContext().getExpressionContext());   
}
 
origin: robovm/robovm

   /**
 * End processing of given node 
 *
 *
 * @param node Node we just finished processing
 *
 * @throws org.xml.sax.SAXException
 */
protected void endNode(int node) throws org.xml.sax.SAXException
{
 super.endNode(node);
 if(DTM.ELEMENT_NODE == m_dtm.getNodeType(node))
 {
  m_transformer.getXPathContext().popCurrentNode();
 }
}
origin: xalan/xalan

   /**
 * End processing of given node 
 *
 *
 * @param node Node we just finished processing
 *
 * @throws org.xml.sax.SAXException
 */
protected void endNode(int node) throws org.xml.sax.SAXException
{
 super.endNode(node);
 if(DTM.ELEMENT_NODE == m_dtm.getNodeType(node))
 {
  m_transformer.getXPathContext().popCurrentNode();
 }
}
origin: robovm/robovm

/**
 * Conditionally execute a sub-template.
 * The expression is evaluated and the resulting object is converted
 * to a boolean as if by a call to the boolean function. If the result
 * is true, then the content template is instantiated; otherwise, nothing
 * is created.
 *
 * @param transformer non-null reference to the the current transform-time state.
 *
 * @throws TransformerException
 */
public void execute(TransformerImpl transformer) throws TransformerException
{
 XPathContext xctxt = transformer.getXPathContext();
 int sourceNode = xctxt.getCurrentNode();
  if (m_test.bool(xctxt, sourceNode, this)) {
    transformer.executeChildTemplates(this, true);
  }
}

origin: robovm/robovm

/**
 * @see org.apache.xalan.transformer.TransformState#getCurrentNode()
 */
public Node getCurrentNode() {
 if (m_currentNode != null) {
   return m_currentNode;
 } else {
   DTM dtm = m_transformer.getXPathContext().getDTM(m_transformer.getCurrentNode());
   return dtm.getNode(m_transformer.getCurrentNode());
 }
}

origin: xalan/xalan

/**
 * @see org.apache.xalan.transformer.TransformState#getCurrentNode()
 */
public Node getCurrentNode() {
 if (m_currentNode != null) {
   return m_currentNode;
 } else {
   DTM dtm = m_transformer.getXPathContext().getDTM(m_transformer.getCurrentNode());
   return dtm.getNode(m_transformer.getCurrentNode());
 }
}
 
origin: xalan/xalan

/**
 * Fire a trace event.
 *
 * @param styleNode Stylesheet template node
 */
public void fireTraceEvent(ElemTemplateElement styleNode)
{
 if (hasTraceListeners())
 {
  int sourceNode = m_transformer.getXPathContext().getCurrentNode();
  Node source = getDOMNodeFromDTM(sourceNode);
  fireTraceEvent(new TracerEvent(m_transformer, source, 
          m_transformer.getMode(),  /*sourceNode, mode,*/
                  styleNode));
 }
}
origin: robovm/robovm

/**
 * @see org.apache.xml.serializer.TransformStateSetter#resetState(Transformer)
 */
public void resetState(Transformer transformer) {
  if ((transformer != null) && (transformer instanceof TransformerImpl)) {
    m_transformer = (TransformerImpl)transformer;
    m_currentElement = m_transformer.getCurrentElement();
    m_currentTemplate = m_transformer.getCurrentTemplate();
    m_matchedTemplate = m_transformer.getMatchedTemplate();
    int currentNodeHandle = m_transformer.getCurrentNode();
    DTM dtm = m_transformer.getXPathContext().getDTM(currentNodeHandle);
    m_currentNode = dtm.getNode(currentNodeHandle);
    m_matchedNode = m_transformer.getMatchedNode();
    m_contextNodeList = m_transformer.getContextNodeList();    
  }       
}
origin: xalan/xalan

/**
 * @see org.apache.xml.serializer.TransformStateSetter#resetState(Transformer)
 */
public void resetState(Transformer transformer) {
  if ((transformer != null) && (transformer instanceof TransformerImpl)) {
    m_transformer = (TransformerImpl)transformer;
    m_currentElement = m_transformer.getCurrentElement();
    m_currentTemplate = m_transformer.getCurrentTemplate();
    m_matchedTemplate = m_transformer.getMatchedTemplate();
    int currentNodeHandle = m_transformer.getCurrentNode();
    DTM dtm = m_transformer.getXPathContext().getDTM(currentNodeHandle);
    m_currentNode = dtm.getNode(currentNodeHandle);
    m_matchedNode = m_transformer.getMatchedNode();
    m_contextNodeList = m_transformer.getContextNodeList();    
  }       
}
org.apache.xalan.transformerTransformerImplgetXPathContext

Javadoc

Get the XPath context associated with this transformer.

Popular methods of TransformerImpl

  • executeChildTemplates
    Execute each of the children of a template element.
  • getMsgMgr
    Return the message manager.
  • getOutputFormat
    Get the output properties used for the transformation.
  • getOutputPropertyNoDefault
    Get the value of a property, without using the default properties. This can be used to test if a pro
  • setContentHandler
    Set the content event handler. NEEDSDOC @param handler
  • <init>
    Construct a TransformerImpl.
  • applyTemplateToNode
    Given an element and mode, find the corresponding template and process the contents.
  • clearParameters
    Reset the parameters to a null list.
  • createSerializationHandler
  • currentFuncResultSeen
    Determines whether an EXSLT func:result instruction has been executed for the currently active EXSLT
  • currentTemplateRuleIsNull
    Tell if the current template rule is null, i.e. if we are directly within an apply-templates. Used f
  • fatalError
  • currentTemplateRuleIsNull,
  • fatalError,
  • getContentHandler,
  • getContextNodeList,
  • getCountersTable,
  • getCurrentElement,
  • getCurrentNode,
  • getCurrentTemplate,
  • getErrorListener

Popular in Java

  • Making http requests using okhttp
  • onCreateOptionsMenu (Activity)
  • requestLocationUpdates (LocationManager)
  • findViewById (Activity)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now