Package com.tangosol.config.xml
Interface NamespaceHandler
-
- All Known Implementing Classes:
AbstractNamespaceHandler
,CacheConfigNamespaceHandler
,CdiNamespaceHandler
,JCacheExtendNamespace
,JCacheNamespace
,OperationalConfigNamespaceHandler
public interface NamespaceHandler
ANamespaceHandler
is responsible for defining theDocumentPreprocessor
,ElementProcessor
s andAttributeProcessor
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:
DocumentPreprocessor
,ElementProcessor
,AttributeProcessor
,DocumentProcessor
,AbstractNamespaceHandler
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description AttributeProcessor<?>
getAttributeProcessor(XmlAttribute attribute)
Obtains theAttributeProcessor
that is suitable for processing the specifiedXmlAttribute
in the xml namespace associated with thisNamespaceHandler
.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
.ElementProcessor<?>
getElementProcessor(XmlElement element)
Obtains theElementProcessor
that is suitable for processing the specifiedXmlElement
in the xml namespace associated with thisNamespaceHandler
.default OverrideProcessor
getOverrideProcessor()
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 Detail
-
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
AttributeProcessor<?> getAttributeProcessor(XmlAttribute attribute)
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
ElementProcessor<?> getElementProcessor(XmlElement element)
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
default OverrideProcessor getOverrideProcessor()
Obtains theOverrideProcessor
that is suitable for processing the xml override.- Returns:
- the
OverrideProcessor
ornull
if a suitableOverrideProcessor
could not be found
-
onStartNamespace
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.- 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
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.- 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
-
-