Purpose:This class provides an implementation of NamespacePrefixMapper that wraps an implementation of the equivalent NamespacePrefixMapper from the JAXB ReferenceImplementation This allows for backwards compatibility with the JAXB RI.
| Modifier and Type | Field and Description |
|---|---|
| private static final Class | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private final Method | |
| private final Method | |
| private final Method | |
| private final Method | |
| private static final Class | |
| private final Object |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String[] | getContextualNamespaceDecls()
Overrides org. |
| public String[] | getPreDeclaredNamespaceUris()
Overrides org. |
| public String[] | getPreDeclaredNamespaceUris2()
Overrides org. |
| public String | getPreferredPrefix(String namespaceUri, String suggestion, boolean requirePrefix)
Implements abstract org. |
| public Object |
| EMPTY_CLASS_ARRAY | back to summary |
|---|---|
| private static final Class<?>[] EMPTY_CLASS_ARRAY | |
| GET_CONTEXTUAL_NAMESPACE_DECL_METHOD_NAME | back to summary |
|---|---|
| private static final String GET_CONTEXTUAL_NAMESPACE_DECL_METHOD_NAME | |
| GET_PRE_DECL_NAMESPACE_URIS2_METHOD_NAME | back to summary |
|---|---|
| private static final String GET_PRE_DECL_NAMESPACE_URIS2_METHOD_NAME | |
| GET_PRE_DECL_NAMESPACE_URIS_METHOD_NAME | back to summary |
|---|---|
| private static final String GET_PRE_DECL_NAMESPACE_URIS_METHOD_NAME | |
| GET_PREF_PREFIX_METHOD_NAME | back to summary |
|---|---|
| private static final String GET_PREF_PREFIX_METHOD_NAME | |
| getContextualNamespaceDeclsMethod | back to summary |
|---|---|
| private final Method getContextualNamespaceDeclsMethod | |
| getPredeclaredNamespaceUris2Method | back to summary |
|---|---|
| private final Method getPredeclaredNamespaceUris2Method | |
| getPredeclaredNamespaceUrisMethod | back to summary |
|---|---|
| private final Method getPredeclaredNamespaceUrisMethod | |
| getPreferredPrefixMethod | back to summary |
|---|---|
| private final Method getPreferredPrefixMethod | |
| PREF_PREFIX_PARAM_TYPES | back to summary |
|---|---|
| private static final Class<?>[] PREF_PREFIX_PARAM_TYPES | |
| prefixMapper | back to summary |
|---|---|
| private final Object prefixMapper | |
| NamespacePrefixMapperWrapper | back to summary |
|---|---|
| public NamespacePrefixMapperWrapper(Object prefixMapper) | |
| getContextualNamespaceDecls | back to summary |
|---|---|
| public String[] getContextualNamespaceDecls() Overrides org. Doc from org. Returns a string array of prefixes and namespace uris that are already available in this context. Only required when marshalling to an output stream or a writer, since it's not possible to determine which namespaces are already in scope.
| |
| getPreDeclaredNamespaceUris | back to summary |
|---|---|
| public String[] getPreDeclaredNamespaceUris() Overrides org. Doc from org. Returns a list of namespace uris that should be declared at the root of the xml document being marshalled.
| |
| getPreDeclaredNamespaceUris2 | back to summary |
|---|---|
| public String[] getPreDeclaredNamespaceUris2() Overrides org. Doc from org. Returns a string array of prefixes and namespace uris to be declared at the root of the document. This eliminates the need of implementing both getPredeclaredNamespaceUris and getPreferredPrefix since the prefix and uri can be associated here.
| |
| getPreferredPrefix | back to summary |
|---|---|
| public String getPreferredPrefix(String namespaceUri, String suggestion, boolean requirePrefix) Implements abstract org.
| |
| getPrefixMapper | back to summary |
|---|---|
| public Object getPrefixMapper() | |