gov.nasa.pds.imaging.generate.util
Class XMLUtil

java.lang.Object
  extended by gov.nasa.pds.imaging.generate.util.XMLUtil

public class XMLUtil
extends Object

Utility class for reading XML files

Author:
jpadams

Constructor Summary
XMLUtil()
           
 
Method Summary
static List<String> getClassList(String file, 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(String file, String key, String value)
          A static method that returns the mapping of String to Class for Generated Values found in the Velocity Template.
static void main(String[] args)
          For debugging only
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLUtil

public XMLUtil()
Method Detail

getClassList

public static List<String> getClassList(String file,
                                        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:
TemplateException
Exception

getGeneratedMappings

public static Map<String,Class<?>> getGeneratedMappings(String file,
                                                        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:
TemplateException
Exception

main

public static void main(String[] args)
For debugging only

Parameters:
args -


Copyright © 2010-2011 Planetary Data System. All Rights Reserved.