Class XMLUtil
- java.lang.Object
-
- gov.nasa.pds.imaging.generate.util.XMLUtil
-
public class XMLUtil extends Object
Utility class for reading XML files- Author:
- jpadams
-
-
Constructor Summary
Constructors Constructor Description XMLUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<String>getClassList(InputStream inputStream, String tag)Static method that returns a list of Classes that will be extracted from the XML file for context mappings.static Map<String,Class<?>>getGeneratedMappings(InputStream inputStream, String key, String value)A static method that returns the mapping of String to Class for Generated Values found in the Velocity Template.
-
-
-
Method Detail
-
getClassList
public static List<String> getClassList(InputStream inputStream, String tag) throws TemplateException, Exception
Static method that returns a list of Classes that will be extracted from the XML file for context mappings.- Parameters:
file-tag-- Returns:
- Throws:
TemplateExceptionException
-
getGeneratedMappings
public static Map<String,Class<?>> getGeneratedMappings(InputStream inputStream, String key, String value) throws TemplateException, Exception
A static method that returns the mapping of String to Class for Generated Values found in the Velocity Template.- Parameters:
file-key-value-- Returns:
- Throws:
TemplateExceptionException
-
-