Package org.opendope.xpaths.Xpaths

Examples of org.opendope.xpaths.Xpaths.Xpath


        Tag tag = sdtPr.getTag();
        HashMap<String, String> map = QueryString.parseQueryString(tag.getVal(), true);
        String xpathId= map.get(OpenDoPEHandler.BINDING_ROLE_XPATH);
       
        // Look up - throws InputIntegrityException if not found
        Xpath xp = xPathsPart.getXPathById(xpathId);
         
          // Create object for dataBinding
          CTDataBinding databinding = Context.getWmlObjectFactory().createCTDataBinding();
          sdtPr.setDataBinding(databinding);
              databinding.setXpath( xp.getDataBinding().getXpath());
              databinding.setPrefixMappings( xp.getDataBinding().getPrefixMappings());
              databinding.setStoreItemID( xp.getDataBinding().getStoreItemID() );   
             
          // Create object for text (wrapped in JAXBElement)
          CTSdtText sdttext = Context.getWmlObjectFactory().createCTSdtText();
          sdttext.setMultiLine(true);
          JAXBElement<org.docx4j.wml.CTSdtText> sdttextWrapped = Context.getWmlObjectFactory().createSdtPrText(sdttext);
View Full Code Here


    String xpathId = map.get(OpenDoPEHandler.BINDING_ROLE_XPATH);
   
    log.info("Looking for xpath by id: " + xpathId);
 
   
    Xpath xpath = xPathsPart.getXPathById(xPathsPart.getJaxbElement(), xpathId);
   
    if (xpath==null) {
      log.warn("Couldn't find xpath with id: " + xpathId);
      return null;
    }
   
    String storeItemId = xpath.getDataBinding().getStoreItemID();
    String xpathExp = xpath.getDataBinding().getXpath();
    String prefixMappings = xpath.getDataBinding().getPrefixMappings();
         
    String r = BindingHandler.xpathGetString(pkg, customXmlDataStorageParts, storeItemId, xpathExp, prefixMappings);
   
    try {
View Full Code Here

   
    String xpathId = map.get(OpenDoPEHandler.BINDING_ROLE_XPATH);
   
    log.debug("Looking for xpath with id: " + xpathId + " referenced from part " + sourcePart.getPartName().getName() + " at " + odTag);
   
    Xpath xpath = null;
    try {
      xpath = xPathsPart.getXPathById(xPathsPart.getJaxbElement(), xpathId);
    } catch (InputIntegrityException iie) {
      log.error("Couldn't find xpath with id: " + xpathId + " referenced from part " + sourcePart.getPartName().getName() + " at " + odTag);
      throw iie;
     
      // Could fallback to trying to use the databinding sdtPr, but would need to pass that in
    }
   
    String storeItemId = xpath.getDataBinding().getStoreItemID();
    String xpathExp = xpath.getDataBinding().getXpath();
    String prefixMappings = xpath.getDataBinding().getPrefixMappings();
   
    return xpathGenerateRuns(
         pkg,
         sourcePart,       
         customXmlDataStorageParts,
View Full Code Here

    String xpathId = map.get(OpenDoPEHandler.BINDING_ROLE_XPATH);
   
    log.info("Looking for xpath by id: " + xpathId);
 
   
    Xpath xpath = xPathsPart.getXPathById(xPathsPart.getJaxbElement(), xpathId);
   
    if (xpath==null) {
      log.warn("Couldn't find xpath with id: " + xpathId);
      return null;
    }
   
    String storeItemId = xpath.getDataBinding().getStoreItemID();
    String xpathExp = xpath.getDataBinding().getXpath();
    String prefixMappings = xpath.getDataBinding().getPrefixMappings()
   
    return xpathInjectImageRelId( wmlPackage,
        sourcePart,
        customXmlDataStorageParts,
        storeItemId,  xpathExp,  prefixMappings);
View Full Code Here

    HashMap<String, String> map = qs.parseQueryString(odTag, true);
   
    String xpathId = map.get(OpenDoPEHandler.BINDING_ROLE_RPT_POS_CON);
   
    log.info("Looking for xpath by id: " + xpathId);
    Xpath xpath = xPathsPart.getXPathById(xPathsPart.getJaxbElement(), xpathId);
   
    String expression =xpath.getDataBinding().getXpath() ;
    log.info(expression);

    return expression;   
  }
View Full Code Here

      String xpathId = map.get(OpenDoPEHandler.BINDING_ROLE_XPATH);
     
      log.info("Looking for xpath by id: " + xpathId);
   
     
      Xpath xpath = xPathsPart.getXPathById(xPathsPart.getJaxbElement(), xpathId);
     
      if (xpath==null) {
        log.warn("Couldn't find xpath with id: " + xpathId);
        return null;
      }
     
      String storeItemId = xpath.getDataBinding().getStoreItemID();
      String xpathExp = xpath.getDataBinding().getXpath();
      String prefixMappings = xpath.getDataBinding().getPrefixMappings();
           
      String r = BindingHandler.xpathGetString(pkg, customXmlDataStorageParts, storeItemId, xpathExp, prefixMappings);
      if (r==null) return nullResultParagraph(sdtParent, "[missing!]");
      if (!r.startsWith("<?xml")) {
        /*
 
View Full Code Here

TOP

Related Classes of org.opendope.xpaths.Xpaths.Xpath

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.