|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arsdigita.persistence.pdl.PDL
The main class that is used to process PDL files. It takes any number of PDL files as arguments on the command line, then processes them all into a single XML file (the first command line argument).
Field Summary | |
protected static CommandLine |
CMD
|
static String |
versionId
|
Constructor Summary | |
PDL()
|
Method Summary | |
static MetadataRoot |
compilePDLFiles(Collection files)
Compiles PDL to Persistence Metadata |
static List |
findPDLFiles(File dir)
Finds all PDL files in a given directory |
static List |
findPDLFiles(File[] path)
Finds all the PDL files in a given path. |
static void |
findPDLFiles(File base,
Collection files)
Searches a directory for all PDL files |
static void |
findSQLFiles(File base,
Collection files)
|
void |
generateMetadata(MetadataRoot root)
Generates the metadata that corresponds to the AST generated from the various PDL files, all beneath the given metadata root node. |
static String |
getDebugDirectory()
|
void |
load(File f)
Parse a PDL file into an AST. |
void |
load(Reader r,
String filename)
Parses a PDL file into an AST. |
void |
load(String filename)
Parse a PDL file into an AST. |
static MetadataRoot |
loadDirectory(File dir)
Loads all the PDL files in a given directory |
void |
loadResource(String s)
|
static void |
main(String[] args)
Compiles pdl files into one xml file. |
static void |
setDebugDirectory(File directory)
|
static void |
setDebugDirectory(String directory)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String versionId
protected static final CommandLine CMD
Constructor Detail |
public PDL()
Method Detail |
public void generateMetadata(MetadataRoot root)
root
- the metadata root node to build the metadata beneathpublic void load(Reader r, String filename) throws PDLException
r
- a Reader open to the PDL filefilename
- the name of the PDL file read by "r"
PDLException
- thrown on a parsing error.public void load(File f) throws PDLException
f
- a File object that references a PDL file to parse
PDLException
- thrown when the file is not found or on a parse
errorpublic void load(String filename) throws PDLException
filename
- the name of the PDL file to parse
PDLException
- on file not found or a parse error.public void loadResource(String s) throws PDLException
s
-
PDLException
public static final void main(String[] args) throws PDLException
PDLException
- if we have too few input files or if we
detect an error while parsing an input file. The reason we use
an exception is for the build process within ant to fail on
error.public static void setDebugDirectory(File directory)
public static void setDebugDirectory(String directory)
public static String getDebugDirectory()
public static MetadataRoot loadDirectory(File dir)
public static List findPDLFiles(File[] path)
public static List findPDLFiles(File dir)
public static void findPDLFiles(File base, Collection files)
public static void findSQLFiles(File base, Collection files)
public static MetadataRoot compilePDLFiles(Collection files) throws PDLException
files
- array of PDL files to process
PDLException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |