Class ViewerModel


  • @Deprecated
    public class ViewerModel
    extends java.lang.Object
    Deprecated.
    • Constructor Detail

      • ViewerModel

        public ViewerModel()
        Deprecated.
    • Method Detail

      • getRootNode

        public Node getRootNode()
        Deprecated.
      • commitSource

        public void commitSource​(java.lang.String source,
                                 LanguageVersion languageVersion)
        Deprecated.
        Commits source code to the model. all existing source will be replaced.
      • hasCompiledTree

        public boolean hasCompiledTree()
        Deprecated.
        Determines whether the model has a compiled tree at it's disposal.
        Returns:
        true if there is an AST, false otherwise
      • evaluateXPathExpression

        public void evaluateXPathExpression​(java.lang.String xPath,
                                            java.lang.Object evaluator)
                                     throws ParseException,
                                            org.jaxen.JaxenException
        Deprecated.
        Evaluates the given XPath expression against the current tree.
        Parameters:
        xPath - XPath expression to be evaluated
        evaluator - object which requests the evaluation
        Throws:
        ParseException
        org.jaxen.JaxenException
      • getLastEvaluationResults

        public java.util.List<Node> getLastEvaluationResults()
        Deprecated.
        Retrieves the results of last evaluation.
        Returns:
        a list containing the nodes selected by the last XPath expression evaluation
      • selectNode

        public void selectNode​(Node node,
                               java.lang.Object selector)
        Deprecated.
        Selects the given node in the AST.
        Parameters:
        node - node to be selected
        selector - object which requests the selection
      • appendToXPathExpression

        public void appendToXPathExpression​(java.lang.String pathFragment,
                                            java.lang.Object appender)
        Deprecated.
        Appends the given fragment to the XPath expression.
        Parameters:
        pathFragment - fragment to be added
        appender - object that is trying to append the fragment
      • addViewerModelListener

        public void addViewerModelListener​(ViewerModelListener l)
        Deprecated.
      • removeViewerModelListener

        public void removeViewerModelListener​(ViewerModelListener l)
        Deprecated.
      • fireViewerModelEvent

        protected void fireViewerModelEvent​(ViewerModelEvent e)
        Deprecated.