Class NamespaceInfo
- java.lang.Object
-
- org.eclipse.persistence.jaxb.compiler.NamespaceInfo
-
public class NamespaceInfo extends java.lang.Object
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)
- See Also:
AnnotationsProcessor
- Author:
- mmacivor
- Since:
- Oracle TopLink 11.1.1.0.0
-
-
Constructor Summary
Constructors Constructor Description NamespaceInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getLocation()
java.lang.String
getNamespace()
NamespaceResolver
getNamespaceResolver()
NamespaceResolver
getNamespaceResolverForDescriptor(NamespaceResolver contextResolver, boolean canUseDefaultNamespace)
Provides aNamespaceResolver
resolver for Descriptor.boolean
isAttributeFormQualified()
boolean
isElementFormQualified()
void
setAttributeFormQualified(boolean b)
void
setElementFormQualified(boolean b)
void
setLocation(java.lang.String location)
void
setNamespace(java.lang.String ns)
void
setNamespaceResolver(NamespaceResolver resolver)
-
-
-
Method Detail
-
getNamespace
public java.lang.String getNamespace()
-
setNamespace
public void setNamespace(java.lang.String ns)
-
isAttributeFormQualified
public boolean isAttributeFormQualified()
-
setAttributeFormQualified
public void setAttributeFormQualified(boolean b)
-
isElementFormQualified
public boolean isElementFormQualified()
-
setElementFormQualified
public void setElementFormQualified(boolean b)
-
getNamespaceResolver
public NamespaceResolver getNamespaceResolver()
-
setNamespaceResolver
public void setNamespaceResolver(NamespaceResolver resolver)
-
getLocation
public java.lang.String getLocation()
-
setLocation
public void setLocation(java.lang.String location)
-
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:
java.lang.NullPointerException
- ifcontextResolver
isnull
-
-