Examples of XpathPart


Examples of org.talend.esb.policy.correlation.impl.xpath.XpathPart

            XpathNamespace.XPATH_NAMESPACE_NODE_NAME);       
       
      
        if(partNodes!=null && partNodes.getLength() > 0){
            for(int partNum = 0 ; partNum < partNodes.getLength(); partNum++){
              XpathPart part = new XpathPart();
              Node partNode = partNodes.item(partNum);
              NamedNodeMap attributes =  partNode.getAttributes();
              if(attributes!=null){
                Node name = attributes.getNamedItem(XpathPart.PART_NAME_ATTRIBUTE);
                if(name != null){
                  part.setName(name.getTextContent());
                }
                Node xpath = attributes.getNamedItem(XpathPart.PART_XPATH_ATTRIBUTE);
                if(xpath != null){
                  part.setXpath(xpath.getTextContent());
                }
                Node optional = attributes.getNamedItem(XpathPart.PART_OPTIONAL_ATTRIBUTE);
                if(optional != null){
                  part.setOptional(Boolean.parseBoolean(optional.getTextContent()));
                }               
              }
              parts.add(part);
            }
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.