|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.hivemind.impl.SchemaProcessorImpl
Used to assemble all the org.apache.hivemind.Contribution
s
contributed to an org.apache.hivemind.ConfigurationPoint
while
converting the XML (represented as Element
s
into Java objects.
Constructor Summary | |
SchemaProcessorImpl(ErrorHandler errorHandler,
Schema schema)
|
Method Summary | |
void |
addElement(java.lang.Object element)
The SchemaProcessor is always the bottom (deepest) object on the stack. |
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. |
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()
|
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SchemaProcessorImpl(ErrorHandler errorHandler, Schema schema)
Method Detail |
public void addElement(java.lang.Object element)
SchemaProcessor
InvokeParentRule
to add themselves to the list of elements for the
org.apache.hivemind.ConfigurationPoint
being constructed.
addElement
in interface SchemaProcessor
public java.util.List getElements()
public void push(java.lang.Object object)
SchemaProcessor
push
in interface SchemaProcessor
public java.lang.Object pop()
SchemaProcessor
pop
in interface SchemaProcessor
public java.lang.Object peek()
SchemaProcessor
peek
in interface SchemaProcessor
public java.lang.Object peek(int depth)
SchemaProcessor
peek
in interface SchemaProcessor
public Module getContributingModule()
SchemaProcessor
getContributingModule
in interface SchemaProcessor
public java.lang.String getElementPath()
SchemaProcessor
getElementPath
in interface SchemaProcessor
public void process(java.util.List elements, Module contributingModule)
public Translator getContentTranslator()
SchemaProcessor
Translator
used to convert
the content of the current element. Will not return null.
getContentTranslator
in interface SchemaProcessor
public Translator getAttributeTranslator(java.lang.String attributeName)
SchemaProcessor
Translator
for a particular
attribute of the current element. Will not return null.
getAttributeTranslator
in interface SchemaProcessor
public Translator getTranslator(java.lang.String translator)
SchemaProcessor
Translator
.
getTranslator
in interface SchemaProcessor
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |