Package org.apache.woden.xpointer

Examples of org.apache.woden.xpointer.PointerPart


    public XMLElement evaluate() {
        if(xpointer.hasPointerParts()) { //Scheme based pointer.
            //Take each pointer part at a time and evaluate it against the root element. The first result found will be returned.
            XMLElement result = null;
            for(Iterator it = Arrays.asList(xpointer.getPointerParts()).iterator(); it.hasNext(); ) {
                PointerPart pointerPart = (PointerPart)it.next();
                //TODO Add extra pointer parts here once we support them.
                if (pointerPart instanceof ElementPointerPart) {
                    result = evaluateElementPointerPart((ElementPointerPart)pointerPart);
                }
                if (result != null) return result;
View Full Code Here

TOP

Related Classes of org.apache.woden.xpointer.PointerPart

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.