Package com.tangosol.config.xml
Interface NamespaceHandler
-
- All Known Implementing Classes:
AbstractNamespaceHandler,CacheConfigNamespaceHandler,CdiNamespaceHandler,JCacheExtendNamespace,JCacheNamespace,OperationalConfigNamespaceHandler
public interface NamespaceHandlerANamespaceHandleris responsible for defining theDocumentPreprocessor,ElementProcessors andAttributeProcessors 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 theAttributeProcessorthat is suitable for processing the specifiedXmlAttributein the xml namespace associated with thisNamespaceHandler.DocumentPreprocessorgetDocumentPreprocessor()Obtains theDocumentPreprocessorthat must be applied to theXmlElement(ie: document) in which theNamespaceHandleris defined, prior toXmlElements andXmlAttributes being processed defined by thisNamespaceHandler.ElementProcessor<?>getElementProcessor(XmlElement element)Obtains theElementProcessorthat is suitable for processing the specifiedXmlElementin the xml namespace associated with thisNamespaceHandler.default OverrideProcessorgetOverrideProcessor()Obtains theOverrideProcessorthat is suitable for processing the xml override.voidonEndNamespace(ProcessingContext context, XmlElement element, String sPrefix, URI uri)Called when the xml namespace associated with theNamespaceHandleris last encountered in an xml document.voidonStartNamespace(ProcessingContext context, XmlElement element, String sPrefix, URI uri)Called when the xml namespace associated with theNamespaceHandleris first encountered in an xml document.
-
-
-
Method Detail
-
getDocumentPreprocessor
DocumentPreprocessor getDocumentPreprocessor()
Obtains theDocumentPreprocessorthat must be applied to theXmlElement(ie: document) in which theNamespaceHandleris defined, prior toXmlElements andXmlAttributes being processed defined by thisNamespaceHandler.- Returns:
- the
DocumentPreprocessorornullif one is not required or defined for theNamespaceHandler
-
getAttributeProcessor
AttributeProcessor<?> getAttributeProcessor(XmlAttribute attribute)
Obtains theAttributeProcessorthat is suitable for processing the specifiedXmlAttributein the xml namespace associated with thisNamespaceHandler.- Parameters:
attribute- theXmlAttribute- Returns:
- the
AttributeProcessorornullif a suitableAttributeProcessorcould not be found
-
getElementProcessor
ElementProcessor<?> getElementProcessor(XmlElement element)
Obtains theElementProcessorthat is suitable for processing the specifiedXmlElementin the xml namespace associated with thisNamespaceHandler.- Parameters:
element- theXmlElement- Returns:
- the
ElementProcessorornullif a suitableElementProcessorcould not be found
-
getOverrideProcessor
default OverrideProcessor getOverrideProcessor()
Obtains theOverrideProcessorthat is suitable for processing the xml override.- Returns:
- the
OverrideProcessorornullif a suitableOverrideProcessorcould not be found
-
onStartNamespace
void onStartNamespace(ProcessingContext context, XmlElement element, String sPrefix, URI uri)
Called when the xml namespace associated with theNamespaceHandleris first encountered in an xml document.- Parameters:
context- the documentProcessingContextin which the xml namespace was encounteredelement- theXmlElementin which the xml namespace was encounteredsPrefix- the prefix of the declared xml namespaceuri- theURIof the declared xml namespace
-
onEndNamespace
void onEndNamespace(ProcessingContext context, XmlElement element, String sPrefix, URI uri)
Called when the xml namespace associated with theNamespaceHandleris last encountered in an xml document.- Parameters:
context- the documentProcessingContextin which the xml namespace was encounteredelement- theXmlElementin which the xml namespace was encounteredsPrefix- the prefix of the declared xml namespaceuri- theURIof the declared xml namespace
-
-