Top Description Fields Constructors Methods
org.eclipse.persistence.internal.oxm.record.namespaces

public Class NamespacePrefixMapperWrapper

extends NamespacePrefixMapper
Class Inheritance
Imports
java.lang.reflect.Method, org.eclipse.persistence.exceptions.XMLMarshalException, org.eclipse.persistence.internal.core.helper.CoreClassConstants, org.eclipse.persistence.internal.security.PrivilegedAccessHelper, org.eclipse.persistence.oxm.NamespacePrefixMapper

INTERNAL:

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.

Field Summary

Modifier and TypeField 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

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String[]
getContextualNamespaceDecls()

Overrides org.eclipse.persistence.internal.oxm.NamespacePrefixMapper.getContextualNamespaceDecls.

Returns a string array of prefixes and namespace uris that are already available in this context.
public String[]
getPreDeclaredNamespaceUris()

Overrides org.eclipse.persistence.internal.oxm.NamespacePrefixMapper.getPreDeclaredNamespaceUris.

Returns a list of namespace uris that should be declared at the root of the xml document being marshalled.
public String[]
getPreDeclaredNamespaceUris2()

Overrides org.eclipse.persistence.internal.oxm.NamespacePrefixMapper.getPreDeclaredNamespaceUris2.

Returns a string array of prefixes and namespace uris to be declared at the root of the document.
public String
getPreferredPrefix(String namespaceUri, String suggestion, boolean requirePrefix)

Implements abstract org.eclipse.persistence.internal.oxm.NamespacePrefixMapper.getPreferredPrefix.

public Object
Inherited from org.eclipse.persistence.oxm.NamespacePrefixMapper:
supportsMediaType

Field Detail

EMPTY_CLASS_ARRAYback to summary
private static final Class<?>[] EMPTY_CLASS_ARRAY
GET_CONTEXTUAL_NAMESPACE_DECL_METHOD_NAMEback to summary
private static final String GET_CONTEXTUAL_NAMESPACE_DECL_METHOD_NAME
GET_PRE_DECL_NAMESPACE_URIS2_METHOD_NAMEback to summary
private static final String GET_PRE_DECL_NAMESPACE_URIS2_METHOD_NAME
GET_PRE_DECL_NAMESPACE_URIS_METHOD_NAMEback to summary
private static final String GET_PRE_DECL_NAMESPACE_URIS_METHOD_NAME
GET_PREF_PREFIX_METHOD_NAMEback to summary
private static final String GET_PREF_PREFIX_METHOD_NAME
getContextualNamespaceDeclsMethodback to summary
private final Method getContextualNamespaceDeclsMethod
getPredeclaredNamespaceUris2Methodback to summary
private final Method getPredeclaredNamespaceUris2Method
getPredeclaredNamespaceUrisMethodback to summary
private final Method getPredeclaredNamespaceUrisMethod
getPreferredPrefixMethodback to summary
private final Method getPreferredPrefixMethod
PREF_PREFIX_PARAM_TYPESback to summary
private static final Class<?>[] PREF_PREFIX_PARAM_TYPES
prefixMapperback to summary
private final Object prefixMapper

Constructor Detail

NamespacePrefixMapperWrapperback to summary
public NamespacePrefixMapperWrapper(Object prefixMapper)

Method Detail

getContextualNamespaceDeclsback to summary
public String[] getContextualNamespaceDecls()

Overrides org.eclipse.persistence.internal.oxm.NamespacePrefixMapper.getContextualNamespaceDecls.

Doc from org.eclipse.persistence.internal.oxm.NamespacePrefixMapper.getContextualNamespaceDecls.

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.

Annotations
@Override
getPreDeclaredNamespaceUrisback to summary
public String[] getPreDeclaredNamespaceUris()

Overrides org.eclipse.persistence.internal.oxm.NamespacePrefixMapper.getPreDeclaredNamespaceUris.

Doc from org.eclipse.persistence.internal.oxm.NamespacePrefixMapper.getPreDeclaredNamespaceUris.

Returns a list of namespace uris that should be declared at the root of the xml document being marshalled.

Annotations
@Override
getPreDeclaredNamespaceUris2back to summary
public String[] getPreDeclaredNamespaceUris2()

Overrides org.eclipse.persistence.internal.oxm.NamespacePrefixMapper.getPreDeclaredNamespaceUris2.

Doc from org.eclipse.persistence.internal.oxm.NamespacePrefixMapper.getPreDeclaredNamespaceUris2.

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.

Annotations
@Override
getPreferredPrefixback to summary
public String getPreferredPrefix(String namespaceUri, String suggestion, boolean requirePrefix)

Implements abstract org.eclipse.persistence.internal.oxm.NamespacePrefixMapper.getPreferredPrefix.

Annotations
@Override
getPrefixMapperback to summary
public Object getPrefixMapper()