name.alessiosaltarin.utils
Interface IXMLConverter

All Known Implementing Classes:
SaxConverter

public interface IXMLConverter

Interface for XML metadata managing.

Author:
Alessio Saltarin

Method Summary
 java.util.AbstractList<XmlLeaf> getCollectedXML()
          Get read XML elements as a List.
 XmlLeaf getCollectedXMLLeaf(java.lang.String category)
          Get read XML elements as an XmlLeaf, under a particular category.
 void parse(java.lang.String fileName)
          Parse XML file, and populates internal variables with contents read from XML file
 

Method Detail

parse

void parse(java.lang.String fileName)
Parse XML file, and populates internal variables with contents read from XML file

Parameters:
fileName - Path to file.

getCollectedXML

java.util.AbstractList<XmlLeaf> getCollectedXML()
Get read XML elements as a List. The List contains variables of type XmlLeaf.

Returns:
null if ArrayList is empty.
See Also:
XmlLeaf

getCollectedXMLLeaf

XmlLeaf getCollectedXMLLeaf(java.lang.String category)
Get read XML elements as an XmlLeaf, under a particular category.

Parameters:
category - category for these values.
Ie: if
 
  
   
   
   
   
   
       <root>
        <address>
          <street>Example Road</street>
          <number>3</number>
        </address>
       </root>
   
   
   
   
    
   
  
 
, category is "address".
Returns:
XmlLeaf with category given. If more than one category is present, it returns the first one. If category is not found, it returns null.
See Also:
XmlLeaf

Jurpe - Java Universal Role Playing Engine - http://jurpe.sourceforge.net