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
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetNamespaceResolverForDescriptor(NamespaceResolver contextResolver, boolean canUseDefaultNamespace) Provides aNamespaceResolverresolver for Descriptor.booleanbooleanvoidsetAttributeFormQualified(boolean b) voidsetElementFormQualified(boolean b) voidsetLocation(String location) voidsetNamespace(String ns) voidsetNamespaceResolver(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 aNamespaceResolverresolver for Descriptor.The returned
NamespaceResolveris 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- ifcontextResolverisnull
-