|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.bibop.xml.xforge.AbstractElement | +--org.bibop.xml.xforge.ProcessElement
The real thing. given the "using" attribute in the x:forge "process" element looks for the specified component, loads it, handles parameter passing and runs the component.
Field Summary | |
protected XForgeComponent |
component
|
protected org.apache.avalon.framework.component.ComponentManager |
componentManager
|
protected java.lang.String |
componentName
|
protected org.apache.avalon.framework.component.ComponentSelector |
cs
|
protected org.apache.avalon.framework.component.ComponentException |
lastexception
|
protected org.apache.avalon.framework.logger.Logger |
log
|
protected java.util.Map |
parameters
|
static java.lang.String |
XFORGE_ATTR_PROCESSTYPE
|
Fields inherited from class org.bibop.xml.xforge.AbstractElement |
contentHandler, lexicalHandler, parentPrefixesMonitor, po, saxEvents, xmlCompiler |
Constructor Summary | |
ProcessElement(org.xml.sax.Attributes attrs,
ProcessingOptions aPO)
Look for the "using" attribute and queries the component manager for it. |
Method Summary | |
void |
addParameter(java.lang.String name,
ParameterValue value)
Adds an attribute to the element to be built. |
void |
compose(org.apache.avalon.framework.component.ComponentManager cm)
Sets the Component Manager. |
void |
enableLogging(org.apache.avalon.framework.logger.Logger log)
Enable logging. |
protected void |
loadComponent()
Load the component. |
protected void |
releaseComponent()
Explicit component release to the Component Pool |
void |
toSax()
Do everything. |
Methods inherited from class org.bibop.xml.xforge.AbstractElement |
characters, comment, end, endCDATA, endDocument, endDTD, endElement, endEntity, endPrefixMapping, flushSAXCache, getActivePrefixes, ignorableWhitespace, output, output, processingInstruction, setConsumer, setContentHandler, setDocumentLocator, setLexicalHandler, setParent, setParentPrefixesMonitor, skippedEntity, start, startCDATA, startDocument, startDTD, startElement, startEntity, startPrefixMapping |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String XFORGE_ATTR_PROCESSTYPE
protected org.apache.avalon.framework.component.ComponentManager componentManager
protected XForgeComponent component
protected java.lang.String componentName
protected java.util.Map parameters
protected org.apache.avalon.framework.logger.Logger log
protected org.apache.avalon.framework.component.ComponentSelector cs
protected org.apache.avalon.framework.component.ComponentException lastexception
Constructor Detail |
public ProcessElement(org.xml.sax.Attributes attrs, ProcessingOptions aPO) throws IllegalElementException
attrs
- the Attributes object
IllegalElementException
- Attribute "using" empty or nullMethod Detail |
public void enableLogging(org.apache.avalon.framework.logger.Logger log)
enableLogging
in interface org.apache.avalon.framework.logger.LogEnabled
public void compose(org.apache.avalon.framework.component.ComponentManager cm)
compose
in interface org.apache.avalon.framework.component.Composable
cm
- the Avalon Component Managerprotected void releaseComponent() throws XForgeException
XForgeException
protected void loadComponent() throws XForgeException
XForgeException
- Something wrong in Component loadingpublic void toSax() throws org.xml.sax.SAXException
toSax
in interface XMLProducer
toSax
in class AbstractElement
org.xml.sax.SAXException
- Generic Exception handlingpublic void addParameter(java.lang.String name, ParameterValue value) throws XForgeException
addParameter
in interface ParametersListener
name
- The name of the parametervalue
- The value of the parameter
XForgeException
- Bad or redeclared name/value
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |