|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.tangosol.coherence.config.xml.processor.AbstractEmptyElementProcessor
public abstract class AbstractEmptyElementProcessor
A ConditionalElementProcessor
that provides defined behaviors for processing empty XmlElement
s.
Nested Class Summary | |
---|---|
static class |
AbstractEmptyElementProcessor.EmptyElementBehavior The behavior of the ConditionalElementProcessor when it encounters an empty XmlElement . |
Constructor Summary | |
---|---|
AbstractEmptyElementProcessor() Constructs an AbstractEmptyElementProcessor that will attempt to process empty XmlElement s. |
|
AbstractEmptyElementProcessor(AbstractEmptyElementProcessor.EmptyElementBehavior behavior) Constructs an AbstractEmptyElementProcessor with the specified behavior for processing empty XmlElement s (with a default value of null ). |
|
AbstractEmptyElementProcessor(java.lang.Object oDefaultValue) Constructs an AbstractEmptyElementProcessor that will return the specified default value when it encounters an empty XmlElement . |
Method Summary | |
---|---|
boolean |
accepts(ProcessingContext context, XmlElement xmlElement) Determines if the specified XmlElement should be processed. |
protected boolean |
isEmptyElement(ProcessingContext context, XmlElement xmlElement) Determines if an XmlElement is considered empty. |
protected abstract java.lang.Object |
onProcess(ProcessingContext context, XmlElement xmlElement) Process an XmlElement to return a specific type of value. |
java.lang.Object |
process(ProcessingContext context, XmlElement xmlElement) Process an XmlElement to return a specific type of value. |
Constructor Detail |
---|
public AbstractEmptyElementProcessor()
AbstractEmptyElementProcessor
that will attempt to process empty XmlElement
s.public AbstractEmptyElementProcessor(AbstractEmptyElementProcessor.EmptyElementBehavior behavior)
AbstractEmptyElementProcessor
with the specified behavior for processing empty XmlElement
s (with a default value of null
).
behavior
- the required AbstractEmptyElementProcessor.EmptyElementBehavior
public AbstractEmptyElementProcessor(java.lang.Object oDefaultValue)
AbstractEmptyElementProcessor
that will return the specified default value when it encounters an empty XmlElement
.
oDefaultValue
- the default value to returnMethod Detail |
---|
protected abstract java.lang.Object onProcess(ProcessingContext context, XmlElement xmlElement) throws ConfigurationException
XmlElement
to return a specific type of value.context
- the ProcessingContext
in which the XmlElement
is being processedxmlElement
- the XmlElement
to processConfigurationException
- when a configuration problem was encounteredprotected boolean isEmptyElement(ProcessingContext context, XmlElement xmlElement)
XmlElement
is considered empty.context
- the ProcessingContext
in which the XmlElement
is being processedxmlElement
- the XmlElement
to processtrue
if the XmlElement
is considered emptypublic boolean accepts(ProcessingContext context, XmlElement xmlElement) throws ConfigurationException
XmlElement
should be processed.accepts
in interface ConditionalElementProcessor
context
- the ProcessingContext
in which the XmlElement
is being processedxmlElement
- the XmlElement
that would be processedtrue
if the XmlElement
should be processedConfigurationException
- when a configuration problem was encounteredpublic final java.lang.Object process(ProcessingContext context, XmlElement xmlElement) throws ConfigurationException
XmlElement
to return a specific type of value.process
in interface ElementProcessor
context
- the ProcessingContext
in which the XmlElement
is being processedxmlElement
- the XmlElement
to processConfigurationException
- when a configuration problem was encountered
|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |