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

public Class PrefixMapperNamespaceResolver

extends NamespaceResolver
Class Inheritance
Imports
org.eclipse.persistence.internal.oxm.Namespace, .NamespacePrefixMapper, org.eclipse.persistence.oxm.NamespaceResolver

INTERNAL:

Purpose: Provides an implementation of NamespaceResolver that wraps a NamespacePrefixMapper. This NamespaceResolver initializes itself from the prefixmapper and the descriptor's namespace resolver. It's set on a marshal record, when the XMLMarshaller is using a custom namespace mapper.

Field Summary

Modifier and TypeField and Description
private NamespaceResolver
private NamespacePrefixMapper

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public NamespacePrefixMapper
public void
put(String
The prefix for a namespace
prefix
,
String
The namespace URI associated with the specified prefix
uri
)

Overrides org.eclipse.persistence.internal.oxm.NamespaceResolver.put.

Adds a namespace to the collection of namespaces on the NamespaceResolver
public String
resolveNamespaceURI(String
A namespace URI.
uri
)

Overrides org.eclipse.persistence.internal.oxm.NamespaceResolver.resolveNamespaceURI.

Return the namespace prefix associated with a namespace URI.

Field Detail

contextualNamespacesback to summary
private NamespaceResolver contextualNamespaces
prefixMapperback to summary
private NamespacePrefixMapper prefixMapper

Constructor Detail

PrefixMapperNamespaceResolverback to summary
public PrefixMapperNamespaceResolver(NamespacePrefixMapper mapper, NamespaceResolver nestedResolver)

Method Detail

getPrefixMapperback to summary
public NamespacePrefixMapper getPrefixMapper()
putback to summary
public void put(String prefix, String uri)

Overrides org.eclipse.persistence.internal.oxm.NamespaceResolver.put.

Doc from org.eclipse.persistence.internal.oxm.NamespaceResolver.put.

Adds a namespace to the collection of namespaces on the NamespaceResolver

Parameters
prefix:String

The prefix for a namespace

uri:String

The namespace URI associated with the specified prefix

Annotations
@Override
resolveNamespaceURIback to summary
public String resolveNamespaceURI(String uri)

Overrides org.eclipse.persistence.internal.oxm.NamespaceResolver.resolveNamespaceURI.

Doc from org.eclipse.persistence.internal.oxm.NamespaceResolver.resolveNamespaceURI.

Return the namespace prefix associated with a namespace URI.

Parameters
uri:String

A namespace URI.

Returns:String

The prefix associated with the namespace URI.

Annotations
@Override