javax.xml.xpath.XPathFunction#org.jaxen.saxpath.SAXPathException源码实例Demo

下面列出了javax.xml.xpath.XPathFunction#org.jaxen.saxpath.SAXPathException 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。

源代码1 项目: SearchServices   文件: SolrXPathHandler.java
public void startAllNodeStep(int axis) throws SAXPathException
{
    switch (axis)
    {
    case Axis.CHILD:
        if (isAbsolutePath)
        {
            // addAbsolute(null, null);
            // We can always do relative stuff
            addRelative(null, null);
        }
        else
        {
            addRelative(null, null);
        }
        break;
    case Axis.DESCENDANT_OR_SELF:
        query.appendQuery(getArrayList(new DescendantAndSelfStructuredFieldPosition(), new DescendantAndSelfStructuredFieldPosition()));
        break;
    case Axis.SELF:
        query.appendQuery(getArrayList(new SelfAxisStructuredFieldPosition(), new SelfAxisStructuredFieldPosition()));
        break;
    default:
        throw new UnsupportedOperationException();
    }
}
 
源代码2 项目: SearchServices   文件: SolrXPathHandler.java
public void startNameStep(int axis, String nameSpace, String localName) throws SAXPathException
{
    switch (axis)
    {
    case Axis.CHILD:
        if (isAbsolutePath)
        {
            // addAbsolute(nameSpace, localName);
            // we can always do relative stuff
            addRelative(nameSpace, localName);
        }
        else
        {
            addRelative(nameSpace, localName);
        }
        break;
    default:
        throw new UnsupportedOperationException();
    }

}
 
源代码3 项目: alfresco-repository   文件: IndexInfo.java
static Query getPathQuery(String path) throws SAXPathException
{
    ApplicationContext ac = ApplicationContextHelper.getApplicationContext();
    XPathReader reader = new XPathReader();
    LuceneXPathHandler handler = new LuceneXPathHandler();
    handler.setNamespacePrefixResolver((NamespaceService) ac.getBean("namespaceService"));
    handler.setDictionaryService((DictionaryService) ac.getBean("dictionaryService"));
    reader.setXPathHandler(handler);
    reader.parse(path);
    PathQuery pathQuery = handler.getQuery();
    pathQuery.setRepeats(false);
    return pathQuery;
}
 
源代码4 项目: alfresco-repository   文件: DebugXPathHandler.java
/**
 * @param args String[]
 * @throws SAXPathException
 */
public static void main(String[] args) throws SAXPathException
{
    XPathReader reader = new XPathReader();
    reader.setXPathHandler(new DebugXPathHandler());
    reader
            .parse("/ns:one[@woof='dog']/two/./../two[functionTest(@a, @b, $woof:woof)]/three/*/four//*/five/six[@exists1 and @exists2]");
}
 
源代码5 项目: SearchServices   文件: SolrXPathHandler.java
public void endAdditiveExpr(int op) throws SAXPathException
{
    switch (op)
    {
    case Operator.NO_OP:
        break;
    case Operator.ADD:
    case Operator.SUBTRACT:
        throw new UnsupportedOperationException();
    default:
        throw new UnsupportedOperationException("Unknown operation " + op);
    }
}
 
源代码6 项目: SearchServices   文件: SolrXPathHandler.java
public void endAndExpr(boolean create) throws SAXPathException
{
    if (create)
    {
        throw new UnsupportedOperationException();
    }
}
 
源代码7 项目: SearchServices   文件: SolrXPathHandler.java
public void endEqualityExpr(int op) throws SAXPathException
{
    switch (op)
    {
    case Operator.NO_OP:
        break;
    case Operator.EQUALS:
    case Operator.NOT_EQUALS:
        throw new UnsupportedOperationException();
    default:
        throw new UnsupportedOperationException("Unknown operation " + op);
    }
}
 
源代码8 项目: SearchServices   文件: SolrXPathHandler.java
public void endMultiplicativeExpr(int op) throws SAXPathException
{
    switch (op)
    {
    case Operator.NO_OP:
        break;
    case Operator.MULTIPLY:
    case Operator.DIV:
    case Operator.MOD:
        throw new UnsupportedOperationException();
    default:
        throw new UnsupportedOperationException("Unknown operation " + op);
    }
}
 
源代码9 项目: SearchServices   文件: SolrXPathHandler.java
public void endOrExpr(boolean create) throws SAXPathException
{
    if (create)
    {
        throw new UnsupportedOperationException();
    }
}
 
源代码10 项目: SearchServices   文件: SolrXPathHandler.java
public void endRelationalExpr(int op) throws SAXPathException
{
    switch (op)
    {
    case Operator.NO_OP:
        break;
    case Operator.GREATER_THAN:
    case Operator.GREATER_THAN_EQUALS:
    case Operator.LESS_THAN:
    case Operator.LESS_THAN_EQUALS:
        throw new UnsupportedOperationException();
    default:
        throw new UnsupportedOperationException("Unknown operation " + op);
    }
}
 
源代码11 项目: SearchServices   文件: SolrXPathHandler.java
public void endUnaryExpr(int op) throws SAXPathException
{
    switch (op)
    {
    case Operator.NO_OP:
        break;
    case Operator.NEGATIVE:
        throw new UnsupportedOperationException();
    default:
        throw new UnsupportedOperationException("Unknown operation " + op);
    }
}
 
源代码12 项目: SearchServices   文件: SolrXPathHandler.java
public void endUnionExpr(boolean create) throws SAXPathException
{
    if (create)
    {
        throw new UnsupportedOperationException();
    }
}
 
源代码13 项目: SearchServices   文件: SolrXPathHandler.java
public void startAbsoluteLocationPath() throws SAXPathException
{
    if (!isAbsolutePath)
    {
        throw new IllegalStateException();
    }

}
 
源代码14 项目: alfresco-repository   文件: DebugXPathHandler.java
public void endAbsoluteLocationPath() throws SAXPathException
{
    System.out.println("End Absolute Location Path");
}
 
源代码15 项目: alfresco-repository   文件: DebugXPathHandler.java
public void endAdditiveExpr(int arg0) throws SAXPathException
{
    System.out.println("End Additive Expr: value = " + arg0);
}
 
源代码16 项目: alfresco-repository   文件: DebugXPathHandler.java
public void endAllNodeStep() throws SAXPathException
{
    System.out.println("End All Node Step");
}
 
源代码17 项目: alfresco-repository   文件: DebugXPathHandler.java
public void endAndExpr(boolean arg0) throws SAXPathException
{
    System.out.println("End And Expr: value = " + arg0);
}
 
源代码18 项目: alfresco-repository   文件: DebugXPathHandler.java
public void endCommentNodeStep() throws SAXPathException
{
    System.out.println("End Comment Node Step");
}
 
源代码19 项目: alfresco-repository   文件: DebugXPathHandler.java
public void endEqualityExpr(int arg0) throws SAXPathException
{
    System.out.println("End Equality Expr: value = " + arg0);
}
 
源代码20 项目: alfresco-repository   文件: DebugXPathHandler.java
public void endFilterExpr() throws SAXPathException
{
    System.out.println("End Filter Expr");
}
 
源代码21 项目: alfresco-repository   文件: DebugXPathHandler.java
public void endFunction() throws SAXPathException
{
    System.out.println("End Function");
}
 
源代码22 项目: alfresco-repository   文件: DebugXPathHandler.java
public void endMultiplicativeExpr(int arg0) throws SAXPathException
{
    System.out.println("End Multiplicative Expr: value = " + arg0);
}
 
源代码23 项目: alfresco-repository   文件: DebugXPathHandler.java
public void endNameStep() throws SAXPathException
{
    System.out.println("End Name Step");
}
 
源代码24 项目: alfresco-repository   文件: DebugXPathHandler.java
public void endOrExpr(boolean arg0) throws SAXPathException
{
    System.out.println("End Or Expr: value = " + arg0);
}
 
源代码25 项目: alfresco-repository   文件: DebugXPathHandler.java
public void endPathExpr() throws SAXPathException
{
    System.out.println("End Path Expression");
}
 
源代码26 项目: alfresco-repository   文件: DebugXPathHandler.java
public void endPredicate() throws SAXPathException
{
    System.out.println("End Predicate");
}
 
源代码27 项目: alfresco-repository   文件: DebugXPathHandler.java
public void endProcessingInstructionNodeStep() throws SAXPathException
{
    System.out.println("End Processing Instruction Node Step");
}
 
源代码28 项目: alfresco-repository   文件: DebugXPathHandler.java
public void endRelationalExpr(int arg0) throws SAXPathException
{
    System.out.println("End Relational Expr: value = " + arg0);
}
 
源代码29 项目: alfresco-repository   文件: DebugXPathHandler.java
public void endRelativeLocationPath() throws SAXPathException
{
    System.out.println("End Relative Location Path");
}
 
源代码30 项目: alfresco-repository   文件: DebugXPathHandler.java
public void endTextNodeStep() throws SAXPathException
{
    System.out.println("End Text Node Step");
}