/** * Sets the value of the tag property. * * @param value * allowed object is * {@link SdtPr.Tag } * */ public void setTag(Tag value) { Tag existingTag = getTag(); if (existingTag!=null) { if (!existingTag.equals(value)) { rPrOrAliasOrLock.remove(existingTag); if (value==null) { log.debug("Changing SDT tag from " + existingTag.getVal() + " to null"); } else { log.debug("Changing SDT tag from " + existingTag.getVal() + " to " + value.getVal() ); rPrOrAliasOrLock.add(value); } } // else - they are the same, so do nothing } else if (value!=null) { //ObjectFactory factory = new ObjectFactory(); //JAXBElement idWrapper = factory.createSdtPrId(value); rPrOrAliasOrLock.add(value); } }
Tag tag = sdtPr.getTag();
if (replacement==null) { log.error( OpenDoPEHandler.getSdtPr(entry).getTag().getVal() + " - No replacement SDT with ID " + key.toString() );
emptyRepeatTagValue(sdtPr.getTag()); // 2012 07 15: do it to the first one
Tag tag = OpenDoPEHandler.getSdtPr(sdt).getTag();
/** * Workaround for the fact that Xalan doesn't let us pass an AtomicInteger into an extension * function. Instead, it converts it into an int, which means the object in our * bookmarkIdCounter parameter isn't updated. * * So here we wrap the AtomicInteger in a class, * * @author jharrop * */ public static class BookmarkCounter { protected AtomicInteger bookmarkId; BookmarkCounter(AtomicInteger bookmarkId) { this.bookmarkId = bookmarkId; } }
private List<Object> processOpenDopeRepeat(Object sdt, Map<String, CustomXmlPart> customXmlDataStorageParts) { Tag tag = getSdtPr(sdt).getTag(); HashMap<String, String> map = QueryString.parseQueryString( tag.getVal(), true); String repeatId = map.get(BINDING_ROLE_REPEAT); // Check, whether we are in an old repeat case. These can be removed. if (StringUtils.isEmpty(repeatId)) return new ArrayList<Object>(); org.opendope.xpaths.Xpaths.Xpath xpathObj = xpathsMap.get(repeatId); if (xpathObj==null) { log.error("repeat " + repeatId + " is missing from xpaths"); throw new RuntimeException("repeat " + repeatId + " is missing from xpaths"); } String storeItemId = xpathObj.getDataBinding().getStoreItemID(); String xpath = xpathObj.getDataBinding().getXpath(); String prefixMappings = xpathObj.getDataBinding().getPrefixMappings(); try { return processRepeat(sdt, customXmlDataStorageParts, storeItemId, xpath, prefixMappings, false); } catch (W15RepeatZeroException w15) { // won't happen in this case return null; } }
Tag tag = getSdtPr(sdt).getTag();
Tag tag = sdtPr.getTag();
Tag tag = ((SdtElement)parentUnwrapped).getSdtPr().getTag(); if (tag == null) { log.debug("no tag " + XmlUtils.marshaltoString(parentUnwrapped));
Tag tag = sdtPr.getTag();
Tag tag = sdtPr.getTag();
Tag tag = sdtPr.getTag(); if (tag == null) {
SdtPr sdtPr = sdt.getSdtPr(); Tag tag = sdtPr.getTag(); HashMap<String, String> map = null; if (tag!=null) {
String tag = sdtPr.getTag().getVal();
Tag tag = sdtPr.getTag(); HashMap<String, String> map = QueryString.parseQueryString(tag.getVal(), true); String xpathId= map.get(OpenDoPEHandler.BINDING_ROLE_XPATH);
/** * Workaround for the fact that Xalan doesn't let us pass an AtomicInteger into an extension * function. Instead, it converts it into an int, which means the object in our * bookmarkIdCounter parameter isn't updated. * * So here we wrap the AtomicInteger in a class, * * @author jharrop * */ public static class BookmarkCounter { protected AtomicInteger bookmarkId; BookmarkCounter(AtomicInteger bookmarkId) { this.bookmarkId = bookmarkId; } }