Module org.eclipse.persistence.moxy
Class NamespaceInfo
java.lang.Object
org.eclipse.persistence.jaxb.compiler.NamespaceInfo
INTERNAL:
Purpose:To store some information about a schema's target namespace and some additional information gathered from XmlSchema annotation at the package (namespace) level
Responsibilities:
- Store target namespace and namespace prefix information for a specific schema
- Store some additional Schema information (such as element/attribute form and XmlAccessType)
- Since:
- Oracle TopLink 11.1.1.0.0
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetNamespaceResolverForDescriptor
(NamespaceResolver contextResolver, boolean canUseDefaultNamespace) Provides aNamespaceResolver
resolver for Descriptor.boolean
boolean
void
setAttributeFormQualified
(boolean b) void
setElementFormQualified
(boolean b) void
setLocation
(String location) void
setNamespace
(String ns) void
setNamespaceResolver
(NamespaceResolver resolver)
-
Constructor Details
-
NamespaceInfo
public NamespaceInfo()
-
-
Method Details
-
getNamespace
-
setNamespace
-
isAttributeFormQualified
public boolean isAttributeFormQualified() -
setAttributeFormQualified
public void setAttributeFormQualified(boolean b) -
isElementFormQualified
public boolean isElementFormQualified() -
setElementFormQualified
public void setElementFormQualified(boolean b) -
getNamespaceResolver
-
setNamespaceResolver
-
getLocation
-
setLocation
-
getNamespaceResolverForDescriptor
public NamespaceResolver getNamespaceResolverForDescriptor(NamespaceResolver contextResolver, boolean canUseDefaultNamespace) Provides aNamespaceResolver
resolver for Descriptor.The returned
NamespaceResolver
is consistent withcontextResolver
. Should there be any clashes in prefix or default name-space assignments, these will be re-mapped to another prefix in the resulting resolver. Alongside, all new prefix or default name-space assignments are added to thecontextResolver
.IMPORTANT: The first result is cached and re-used since then, even if later calls are with different
contextResolver
.- Parameters:
contextResolver
- context resolvercanUseDefaultNamespace
- indicates whether default name-space can be used- Returns:
NamespaceResolver
- Throws:
NullPointerException
- ifcontextResolver
isnull
-