|
SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.xml.sax.helpers.DefaultHandler
|
+--com.solarmetric.rd.meta.XMLMetaDataParser
|
+--com.solarmetric.rd.meta.CFMetaDataParser
|
+--com.solarmetric.rd.meta.ClassArgParser
Concrete metadata parser used to resolve arguments into java classes.
Interprets command-line args as either class names, .class files or
resources, .java files or resource, 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.
Unlike other MetaDataParsers, you do not have to call
MetaDataParser.clear() on the class arg parser.
ClassLoader.getResource(java.lang.String)| Constructor Summary | |
ClassArgParser()
|
|
| Method Summary | |
protected void |
endClass(java.lang.String className)
Override this method marking the end of a declared <class>. |
protected void |
endClassElement(java.lang.String name)
Override this method marking the end of an element within a declared <class>. |
protected java.lang.String |
getExtension()
Override this method to return the extension used for metadata resources. |
java.lang.Class[] |
parseClasses(java.lang.String arg)
Return the Class representation of the class(es) named in the
given arg. |
java.lang.String[] |
parseClassNames(java.lang.String arg)
Return the names of the class(es) from the given arg. |
protected void |
startClass(java.lang.String name,
org.xml.sax.Attributes attrs)
Override this method marking the start of a declared <class>. |
protected void |
startClassElement(java.lang.String name,
org.xml.sax.Attributes attrs)
Override this method marking the start of an element within a declared <class>. |
| Methods inherited from class com.solarmetric.rd.meta.CFMetaDataParser |
classForName, endElement, getDeclaredClass, getDeclaredPackage, reset, startElement |
| Methods inherited from class com.solarmetric.rd.meta.XMLMetaDataParser |
addResult, characters, clear, currentClassLoader, endElement, error, fatalError, findMetaData, finish, getClassLoader, getCurrentLocation, getDocType, getLocation, getLog, getResults, getSourceFile, getSourceName, getText, isValidating, parse, parse, parse, parse, setClassLoader, setDocumentLocator, setLocation, setLog, setValidating, startElement, throwException, throwException |
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
endDocument, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
| 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.Class[] parseClasses(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.String[] parseClassNames(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 errorprotected java.lang.String getExtension()
XMLMetaDataParser
getExtension in class XMLMetaDataParser
protected void startClass(java.lang.String name,
org.xml.sax.Attributes attrs)
throws org.xml.sax.SAXException
CFMetaDataParser<class>. The given class name will not include
the package.
startClass in class CFMetaDataParserorg.xml.sax.SAXException
protected void endClass(java.lang.String className)
throws org.xml.sax.SAXException
CFMetaDataParser<class>. The given class name will not include
the package.
endClass in class CFMetaDataParserorg.xml.sax.SAXException
protected void startClassElement(java.lang.String name,
org.xml.sax.Attributes attrs)
throws org.xml.sax.SAXException
CFMetaDataParser<class>.
startClassElement in class CFMetaDataParserorg.xml.sax.SAXException
protected void endClassElement(java.lang.String name)
throws org.xml.sax.SAXException
CFMetaDataParser<class>.
endClassElement in class CFMetaDataParserorg.xml.sax.SAXException
|
SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||