public class BindingHandler extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CORE_PROPERTIES_STOREITEMID |
static String |
COVERPAGE_PROPERTIES_STOREITEMID |
static String |
EXTENDED_PROPERTIES_STOREITEMID |
| Constructor and Description |
|---|
BindingHandler(WordprocessingMLPackage wordMLPackage) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyBindings() |
void |
applyBindings(JaxbXmlPart part) |
static void |
applyBindings(WordprocessingMLPackage wordMLPackage)
Deprecated.
|
static BindingHyperlinkResolver |
getHyperlinkResolver() |
static String |
getHyperlinkStyleId()
Deprecated.
|
static ValueInserterPlainText |
getValueInserterPlainText() |
Map<String,Xpaths.Xpath> |
getXpathsMap() |
protected AtomicInteger |
initBookmarkIdStart() |
void |
setDomToXPathMap(DomToXPathMap domToXPathMap) |
static void |
setHyperlinkResolver(BindingHyperlinkResolver hyperlinkResolver) |
static void |
setHyperlinkStyle(String hyperlinkStyleID)
Deprecated.
|
void |
setStartingIdForNewBookmarks(AtomicInteger bookmarkId)
Provide a way to set the starting bookmark ID number
for the purposes of Binding Traverse.
|
static void |
setValueInserterPlainText(ValueInserterPlainText valueInserterPlainText)
Allow user to customise what is inserted into the document when the
bind is performed.
|
static String |
xpathGetString(WordprocessingMLPackage pkg,
Map<String,CustomXmlPart> customXmlDataStorageParts,
CTDataBinding db) |
static String |
xpathGetString(WordprocessingMLPackage pkg,
Map<String,CustomXmlPart> customXmlDataStorageParts,
String storeItemId,
String xpath,
String prefixMappings)
Used by OpenDoPE handler, but not directly by bind.xslt anymore.
|
public static final String CORE_PROPERTIES_STOREITEMID
public static final String EXTENDED_PROPERTIES_STOREITEMID
public static final String COVERPAGE_PROPERTIES_STOREITEMID
public BindingHandler(WordprocessingMLPackage wordMLPackage)
public static void setHyperlinkStyle(String hyperlinkStyleID)
null, strings
containing 'http://' or 'https://' are not converted to
w:hyperlink. This is the default behavior.
If hyperlinkStyleId is set to "someWordHyperlinkStyleName",
strings containing 'http://' or 'https://' or or 'mailto:' are converted to w:hyperlink.
The default Word hyperlink style name is "Hyperlink".
Due to the architecture of this class, this is a static flag changing the
behavior of all following calls to applyBindings(org.docx4j.openpackaging.packages.WordprocessingMLPackage).hyperlinkStyleID - The style to use for hyperlinks (eg Hyperlink)public static String getHyperlinkStyleId()
public static BindingHyperlinkResolver getHyperlinkResolver()
public static void setHyperlinkResolver(BindingHyperlinkResolver hyperlinkResolver)
hyperlinkResolver - the hyperlinkResolver to setpublic static ValueInserterPlainText getValueInserterPlainText()
public static void setValueInserterPlainText(ValueInserterPlainText valueInserterPlainText)
valueInserterPlainText - public void setDomToXPathMap(DomToXPathMap domToXPathMap)
public void setStartingIdForNewBookmarks(AtomicInteger bookmarkId)
bookmarkId - protected AtomicInteger initBookmarkIdStart()
@Deprecated public static void applyBindings(WordprocessingMLPackage wordMLPackage) throws Docx4JException
Docx4JExceptionpublic void applyBindings()
throws Docx4JException
Docx4JExceptionpublic Map<String,Xpaths.Xpath> getXpathsMap()
public void applyBindings(JaxbXmlPart part) throws Docx4JException
Docx4JExceptionpublic static String xpathGetString(WordprocessingMLPackage pkg, Map<String,CustomXmlPart> customXmlDataStorageParts, CTDataBinding db)
public static String xpathGetString(WordprocessingMLPackage pkg, Map<String,CustomXmlPart> customXmlDataStorageParts, String storeItemId, String xpath, String prefixMappings)
customXmlDataStorageParts - storeItemId - xpath - prefixMappings - a string such as "xmlns:ns0='http://schemas.medchart'"Copyright © 2007-2022. All Rights Reserved.