| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.openjpa.lib.meta.ClassArgParser
public class ClassArgParser
Parser used to resolve arguments into java classes.
 Interprets command-line args as either class names, .class files or
 resources, .java files or resources, or metadata files or resources
 conforming to the common format defined by CFMetaDataParser.
 Transforms the information in these args into Class instances.
 Note that when parsing .java files, only the main class in the file
 is detected. Other classes defined in the file, such as inner classes,
 are not added to the returned classes list.
| Constructor Summary | |
|---|---|
| ClassArgParser() | |
| Method Summary | |
|---|---|
|  java.lang.ClassLoader | getClassLoader()The class loader with which to load parsed classes. | 
|  java.util.Map | mapTypeNames(MetaDataIterator itr)Return a mapping of each metadata resource to an array of its contained class names. | 
|  java.util.Map | mapTypes(MetaDataIterator itr)Return a mapping of each metadata resource to an array of its contained classes. | 
|  java.lang.String[] | parseTypeNames(MetaDataIterator itr)Return the names of the class(es) from the given metadatas. | 
|  java.lang.String[] | parseTypeNames(java.lang.String arg)Return the names of the class(es) from the given arg. | 
|  java.lang.Class[] | parseTypes(MetaDataIterator itr)Return the Classrepresentation of the class(es) named in the
 given metadatas. | 
|  java.lang.Class[] | parseTypes(java.lang.String arg)Return the Classrepresentation of the class(es) named in the
 given arg. | 
|  void | setClassLoader(java.lang.ClassLoader loader)The class loader with which to load parsed classes. | 
|  void | setMetaDataStructure(java.lang.String packageElementName,
                     java.lang.String packageAttributeName,
                     java.lang.String[] classElementNames,
                     java.lang.String classAttributeName)Set the the relevant metadata file structure so that metadata files containing class names can be parsed. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public ClassArgParser()
| Method Detail | 
|---|
public java.lang.ClassLoader getClassLoader()
public void setClassLoader(java.lang.ClassLoader loader)
public void setMetaDataStructure(java.lang.String packageElementName,
                                 java.lang.String packageAttributeName,
                                 java.lang.String[] classElementNames,
                                 java.lang.String classAttributeName)
public java.lang.Class[] parseTypes(java.lang.String arg)
Class representation of the class(es) named in the
 given arg.
arg - a class name, .java file, .class file, or metadata
 file naming the type(s) to act onpublic java.lang.Class[] parseTypes(MetaDataIterator itr)
Class representation of the class(es) named in the
 given metadatas.
public java.util.Map mapTypes(MetaDataIterator itr)
public java.lang.String[] parseTypeNames(java.lang.String arg)
arg - a class name, .java file, .class file, or metadata
 file naming the type(s) to act on
java.lang.IllegalArgumentException - with appropriate message on errorpublic java.lang.String[] parseTypeNames(MetaDataIterator itr)
public java.util.Map mapTypeNames(MetaDataIterator itr)
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||