com.arsdigita.persistence.pdl
Class FileSource
java.lang.Object
com.arsdigita.persistence.pdl.FileSource
- All Implemented Interfaces:
- PDLSource
- public class FileSource
- extends Object
- implements PDLSource
An implementation of PDLSource that loads an individual file.
- Version:
- $Revision: #5 $ $Date: 2004/04/07 $
- Author:
- Rafael H. Schloming <rhs@mit.edu>
Constructor Summary |
FileSource(File file)
Constructs a PDLSource with the contents of the given file. |
FileSource(String filename)
Constructs a PDLSource with the contents of the given file. |
Method Summary |
void |
parse(PDLCompiler compiler)
Parses the contents of this PDLSource using the given compiler. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
versionId
public static final String versionId
- See Also:
- Constant Field Values
FileSource
public FileSource(File file)
- Constructs a PDLSource with the contents of the given file.
- Parameters:
file
- the PDL file
FileSource
public FileSource(String filename)
- Constructs a PDLSource with the contents of the given file.
- Parameters:
filename
- the name of the PDL file
parse
public void parse(PDLCompiler compiler)
- Parses the contents of this PDLSource using the given compiler.
- Specified by:
parse
in interface PDLSource
- Parameters:
compiler
- the PDLCompiler used to parse this PDLSource
Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2337 UTC