public class GedcomNamespaceManager
extends com.sun.xml.bind.marshaller.NamespacePrefixMapper
| Constructor and Description |
|---|
GedcomNamespaceManager() |
GedcomNamespaceManager(Class<?> rootClass) |
GedcomNamespaceManager(Map<String,String> overrides) |
GedcomNamespaceManager(Map<String,String> overrides,
String defaultns) |
GedcomNamespaceManager(String defaultns) |
| Modifier and Type | Method and Description |
|---|---|
static QName |
findWrapperNameForJsonName(String jsonName)
Get the wrapper name for the specified json name.
|
static String |
getJsonName(Class<?> type)
Get the JSON name for the specified type.
|
static String |
getJsonNameForWrapperName(QName wrapperName)
Get the json wrapper name for the specified XML element name.
|
static Class<?> |
getKnownJsonType(String jsonName)
Get the known type for the given JSON name.
|
static Map<String,String> |
getKnownPrefixes()
The known set of namespace-to-prefix mappings.
|
static Class<?> |
getKnownTypeById(String typeId)
Get the known type for the given data type.
|
String |
getPreferredPrefix(String namespaceUri,
String suggestion,
boolean requirePrefix) |
static String |
getTypeIdName(Class<?> type)
Get the id for the specified type.
|
static Class<?> |
getWrappedTypeForJsonName(String jsonName)
Get the type of the wrapped object for the specified json name.
|
protected static void |
init(ClassLoader loader) |
static String |
nameFromQName(String namespaceUri,
String localPart) |
static void |
registerKnownJsonType(Class<?> type)
Register a known JSON type.
|
public GedcomNamespaceManager(Class<?> rootClass)
public GedcomNamespaceManager(Map<String,String> overrides, String defaultns)
public GedcomNamespaceManager(String defaultns)
public GedcomNamespaceManager()
public static Map<String,String> getKnownPrefixes()
protected static void init(ClassLoader loader)
public String getPreferredPrefix(String namespaceUri, String suggestion, boolean requirePrefix)
getPreferredPrefix in class com.sun.xml.bind.marshaller.NamespacePrefixMapperpublic static String getJsonNameForWrapperName(QName wrapperName)
wrapperName - The identifier for the wrapper name.public static QName findWrapperNameForJsonName(String jsonName)
jsonName - The json name.public static Class<?> getWrappedTypeForJsonName(String jsonName)
jsonName - The json name.public static void registerKnownJsonType(Class<?> type)
type - the type to register.public static String getJsonName(Class<?> type)
type - The type.public static String getTypeIdName(Class<?> type)
type - The type.public static Class<?> getKnownJsonType(String jsonName)
jsonName - The json name.Copyright © 2018. All rights reserved.