|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tuscany.sca.cpp.tools.services.XMLFileActor
The purpose of this abstract class is to provide a home for the standard processing that is involved in turning a XML file into an internal DOM.
Field Summary | |
---|---|
boolean |
failed
|
protected static java.util.Map |
handlers
|
protected static java.util.Map |
parameters
|
protected static javax.xml.transform.TransformerFactory |
transformerFactory
|
Constructor Summary | |
---|---|
XMLFileActor()
|
Method Summary | |
---|---|
void |
actOnFile(java.io.File moduleXML,
java.io.File target,
int depth)
This method is the main FileActor method |
protected org.w3c.dom.Document |
createDomFromXMLFile(java.io.File xmlSourceFile)
This method builds an in memory DOM from an XML file |
int |
getFilesActedOn()
|
java.lang.Object |
getParameter(java.lang.String name,
java.lang.Object value)
Get a parameter |
void |
setParameter(java.lang.String name,
java.lang.Object value)
Set a parameter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static java.util.Map handlers
protected static java.util.Map parameters
public boolean failed
protected static javax.xml.transform.TransformerFactory transformerFactory
Constructor Detail |
public XMLFileActor()
Method Detail |
public void actOnFile(java.io.File moduleXML, java.io.File target, int depth) throws java.lang.Exception
actOnFile
in interface FileActor
moduleXML
- the sca.module or fragment filetarget
- the target directorydepth
- not uesed here but in the
java.lang.Exception
Here we create an initial DOM
and kick off the processing (using the handler map that has been set
up by the concrete subclass).
,
interface to allow for
recursive diving into a directory structure.
protected org.w3c.dom.Document createDomFromXMLFile(java.io.File xmlSourceFile)
xmlSourceFile
- the XML file we are handling
public void setParameter(java.lang.String name, java.lang.Object value)
name
- value
- public java.lang.Object getParameter(java.lang.String name, java.lang.Object value)
name
- value
-
public int getFilesActedOn()
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |