public class PropertyListToKeel extends Importer
PropertyListToKeel
This class extends from the Importer class. It is used to read data with PropertyList (xml) format and transform them to the KEEL format.processHeader
Constructor and Description |
---|
PropertyListToKeel() |
Modifier and Type | Method and Description |
---|---|
void |
FindParent(Element current,
java.lang.String childrenName)
Searchs in the whole xml tree to find the parent of the node or xaml tag whose name is
equals to the one given as parameter.
|
java.lang.String |
ListChildrenText(Element current,
int cont)
Recursive method that returns the text containing all the descendants of a xml tag.
|
void |
Start(java.lang.String pathnameInput,
java.lang.String pathnameOutput)
Method used to transform the data from the PropertyList file given as parameter to
KEEL format file which will be stored in the second file given.
|
DataType, Save, setProcessHeader, UcFirst
public void Start(java.lang.String pathnameInput, java.lang.String pathnameOutput) throws java.lang.Exception
pathnameInput
- PropertyList file path.pathnameOutput
- KEEL file path.java.lang.Exception
- if the files can not be read or written.public void FindParent(Element current, java.lang.String childrenName)
current
- actual node or xml tag.childrenName
- name node asked.public java.lang.String ListChildrenText(Element current, int cont)
current
- actual node or xml tag.cont
- descendants counter.