Package com.tangosol.config.xml
Interface NamespaceHandler
- All Known Implementing Classes:
AbstractNamespaceHandler
,CacheConfigNamespaceHandler
,CdiNamespaceHandler
,JCacheExtendNamespace
,JCacheNamespace
,OperationalConfigNamespaceHandler
public interface NamespaceHandler
A
NamespaceHandler
is responsible for defining the
DocumentPreprocessor
, ElementProcessor
s and
AttributeProcessor
s
required for processing xml content belonging to a specific xml namespace
used in an xml document.- Since:
- Coherence 12.1.2
- Author:
- bo 2011.06.14
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetAttributeProcessor
(XmlAttribute attribute) Obtains theAttributeProcessor
that is suitable for processing the specifiedXmlAttribute
in the xml namespace associated with thisNamespaceHandler
.Obtains theDocumentPreprocessor
that must be applied to theXmlElement
(ie: document) in which theNamespaceHandler
is defined, prior toXmlElement
s andXmlAttribute
s being processed defined by thisNamespaceHandler
.getElementProcessor
(XmlElement element) Obtains theElementProcessor
that is suitable for processing the specifiedXmlElement
in the xml namespace associated with thisNamespaceHandler
.default OverrideProcessor
Obtains theOverrideProcessor
that is suitable for processing the xml override.void
onEndNamespace
(ProcessingContext context, XmlElement element, String sPrefix, URI uri) Called when the xml namespace associated with theNamespaceHandler
is last encountered in an xml document.void
onStartNamespace
(ProcessingContext context, XmlElement element, String sPrefix, URI uri) Called when the xml namespace associated with theNamespaceHandler
is first encountered in an xml document.
-
Method Details
-
getDocumentPreprocessor
DocumentPreprocessor getDocumentPreprocessor()Obtains theDocumentPreprocessor
that must be applied to theXmlElement
(ie: document) in which theNamespaceHandler
is defined, prior toXmlElement
s andXmlAttribute
s being processed defined by thisNamespaceHandler
.- Returns:
- the
DocumentPreprocessor
ornull
if one is not required or defined for theNamespaceHandler
-
getAttributeProcessor
Obtains theAttributeProcessor
that is suitable for processing the specifiedXmlAttribute
in the xml namespace associated with thisNamespaceHandler
.- Parameters:
attribute
- theXmlAttribute
- Returns:
- the
AttributeProcessor
ornull
if a suitableAttributeProcessor
could not be found
-
getElementProcessor
Obtains theElementProcessor
that is suitable for processing the specifiedXmlElement
in the xml namespace associated with thisNamespaceHandler
.- Parameters:
element
- theXmlElement
- Returns:
- the
ElementProcessor
ornull
if a suitableElementProcessor
could not be found
-
getOverrideProcessor
Obtains theOverrideProcessor
that is suitable for processing the xml override.- Returns:
- the
OverrideProcessor
ornull
if a suitableOverrideProcessor
could not be found
-
onStartNamespace
Called when the xml namespace associated with theNamespaceHandler
is first encountered in an xml document.- Parameters:
context
- the documentProcessingContext
in which the xml namespace was encounteredelement
- theXmlElement
in which the xml namespace was encounteredsPrefix
- the prefix of the declared xml namespaceuri
- theURI
of the declared xml namespace
-
onEndNamespace
Called when the xml namespace associated with theNamespaceHandler
is last encountered in an xml document.- Parameters:
context
- the documentProcessingContext
in which the xml namespace was encounteredelement
- theXmlElement
in which the xml namespace was encounteredsPrefix
- the prefix of the declared xml namespaceuri
- theURI
of the declared xml namespace
-