public final class SchemaProcessorImpl extends java.lang.Object implements SchemaProcessor
Contributions contributed to an
ConfigurationPoint while converting the XML (represented as
Elements into Java objects.| Constructor and Description |
|---|
SchemaProcessorImpl(ErrorLog errorLog,
Schema schema) |
| Modifier and Type | Method and Description |
|---|---|
void |
addElement(java.lang.Object element)
Invoked over reflection by the
InvokeParentRule. |
Translator |
getAttributeTranslator(java.lang.String attributeName)
Returns the
Translator for a particular attribute of the
current element. |
Translator |
getContentTranslator()
Returns a
Translator used to convert the content of the
current element. |
Module |
getContributingModule()
Returns the module which contributed the current elements being processed.
|
Module |
getDefiningModule()
Return the module which defined the schema.
|
java.lang.String |
getElementPath()
Returns the path to the current element in the form a sequence of element names separated
with slashes.
|
java.util.List |
getElements() |
java.util.Map |
getMappedElements() |
Translator |
getTranslator(java.lang.String translator)
Returns the named
Translator. |
java.lang.Object |
peek()
Peeks at the top object on the stack.
|
java.lang.Object |
peek(int depth)
Peeks at an object within the stack at the indicated depth.
|
java.lang.Object |
pop()
Pops the top object off the stack and returns it.
|
void |
process(java.util.List elements,
Module contributingModule)
Processes a single extension.
|
void |
push(java.lang.Object object)
Pushes an object onto the processor's stack.
|
public SchemaProcessorImpl(ErrorLog errorLog, Schema schema)
public void addElement(java.lang.Object element)
InvokeParentRule.addElement in interface SchemaProcessorpublic java.util.List getElements()
public java.util.Map getMappedElements()
public void push(java.lang.Object object)
SchemaProcessorpush in interface SchemaProcessorpublic java.lang.Object pop()
SchemaProcessorpop in interface SchemaProcessorpublic java.lang.Object peek()
SchemaProcessorpeek in interface SchemaProcessorpublic java.lang.Object peek(int depth)
SchemaProcessorpeek in interface SchemaProcessorpublic Module getContributingModule()
SchemaProcessorgetContributingModule in interface SchemaProcessorpublic Module getDefiningModule()
SchemaProcessorgetDefiningModule in interface SchemaProcessorpublic java.lang.String getElementPath()
SchemaProcessorgetElementPath in interface SchemaProcessorpublic void process(java.util.List elements, Module contributingModule)
public Translator getContentTranslator()
SchemaProcessorTranslator used to convert the content of the
current element. Will not return null.getContentTranslator in interface SchemaProcessorpublic Translator getAttributeTranslator(java.lang.String attributeName)
SchemaProcessorTranslator for a particular attribute of the
current element. Will not return null.getAttributeTranslator in interface SchemaProcessorpublic Translator getTranslator(java.lang.String translator)
SchemaProcessorTranslator.getTranslator in interface SchemaProcessor