com.arsdigita.persistence.pdl
Class PDLCompiler

java.lang.Object
  extended bycom.arsdigita.persistence.pdl.PDLCompiler

public class PDLCompiler
extends Object

This class is used to parse object-relational metadata specified in PDL files, and emit it into a MetadataRoot.

Version:
$Revision: #5 $ $Date: 2004/04/07 $
Author:
Rafael H. Schloming <rhs@mit.edu>

Field Summary
static String versionId
           
 
Constructor Summary
PDLCompiler()
          Constructs a new and empty PDLCompiler.
 
Method Summary
 void emit(MetadataRoot root)
          Compiles the parsed PDL into the specified MetadataRoot.
 void parse(Reader contents, String location)
          Parses the text in contents and reports any errors using the location tag.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values
Constructor Detail

PDLCompiler

public PDLCompiler()
Constructs a new and empty PDLCompiler.

Method Detail

parse

public void parse(Reader contents,
                  String location)
Parses the text in contents and reports any errors using the location tag.

Parameters:
contents - A reader of the text to be parsed.
location - The location to use when reporting errors.

emit

public void emit(MetadataRoot root)
Compiles the parsed PDL into the specified MetadataRoot.

Parameters:
root - The MetadataRoot to emit to.


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 20 2004:2337 UTC