public class NamespacePrefixMapperUtils extends Object
Constructor and Description |
---|
NamespacePrefixMapperUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
declareNamespaces(String mcIgnorable,
Document doc)
Word requires all mcIgnorable prefixes to be declared at the document level.
|
static Map<String,String> |
getPreDeclaredNamespaceMap(String mcIgnorable) |
static String[] |
getPreDeclaredNamespaceUris(String mcIgnorable) |
static String |
getPreferredPrefix(String namespaceUri,
String suggestion,
boolean requirePrefix) |
static Object |
getPrefixMapper() |
static Object |
getPrefixMapperRelationshipsPart() |
static boolean |
isJava9orLater() |
static void |
setProperty(Marshaller marshaller,
Object namespacePrefixMapper)
setProperty on 'com.sun.xml.bind.namespacePrefixMapper' or
'com.sun.xml.internal.bind.namespacePrefixMapper', as appropriate,
depending on whether JAXB reference implementation, or Java 6
implementation is being used.
|
public static boolean isJava9orLater()
public static Object getPrefixMapper() throws JAXBException
JAXBException
public static Object getPrefixMapperRelationshipsPart() throws JAXBException
JAXBException
public static void setProperty(Marshaller marshaller, Object namespacePrefixMapper) throws JAXBException
marshaller
- namespacePrefixMapper
- JAXBException
public static String getPreferredPrefix(String namespaceUri, String suggestion, boolean requirePrefix) throws JAXBException
JAXBException
public static Map<String,String> getPreDeclaredNamespaceMap(String mcIgnorable)
Copyright © 2007-2019. All Rights Reserved.