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, ElementProcessors and
 AttributeProcessors
 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 theAttributeProcessorthat is suitable for processing the specifiedXmlAttributein the xml namespace associated with thisNamespaceHandler.Obtains theDocumentPreprocessorthat must be applied to theXmlElement(ie: document) in which theNamespaceHandleris defined, prior toXmlElements andXmlAttributes being processed defined by thisNamespaceHandler.getElementProcessor(XmlElement element) Obtains theElementProcessorthat is suitable for processing the specifiedXmlElementin the xml namespace associated with thisNamespaceHandler.default OverrideProcessorObtains 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 Details
- 
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
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
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
Obtains theOverrideProcessorthat is suitable for processing the xml override.- Returns:
 - the 
OverrideProcessorornullif a suitableOverrideProcessorcould not be found 
 - 
onStartNamespace
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
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
 
 -