com.arsdigita.persistence.pdl
Class ManifestSource

java.lang.Object
  extended bycom.arsdigita.persistence.pdl.ManifestSource
All Implemented Interfaces:
PDLSource

public class ManifestSource
extends Object
implements PDLSource

The ManifestSource class provides an implementation of the PDLSource interface that loads object-relational metadata from a manifest file that lists resources located in the java classpath.

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

Field Summary
static String versionId
           
 
Constructor Summary
ManifestSource(String manifest, PDLFilter filter)
          Invokes ManifestSource(String, PDLFilter, ClassLoader) with the current context class loader.
ManifestSource(String manifest, PDLFilter filter, ClassLoader loader)
          Constructs a new ManifestSource from the resources listed in manifest.
 
Method Summary
 void parse(PDLCompiler compiler)
          An implementation of PDLSource.parse(PDLCompiler) that parses the resource listed in the manifest passed to the constructor of this ManifestSource.
 
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

ManifestSource

public ManifestSource(String manifest,
                      PDLFilter filter,
                      ClassLoader loader)
Constructs a new ManifestSource from the resources listed in manifest. This source will be filtered by filter, and loader will be used to load all resources.

Parameters:
manifest - a resource path referring to a manifest file
filter - a filter on the names in the manifest file
loader - the loader used to locate resources

ManifestSource

public ManifestSource(String manifest,
                      PDLFilter filter)
Invokes ManifestSource(String, PDLFilter, ClassLoader) with the current context class loader.

Parameters:
manifest - a resource path referring to a manifest file
filter - a filter on the names in the manifest file
See Also:
Thread.getContextClassLoader()
Method Detail

parse

public void parse(PDLCompiler compiler)
An implementation of PDLSource.parse(PDLCompiler) that parses the resource listed in the manifest passed to the constructor of this ManifestSource.

Specified by:
parse in interface PDLSource
Parameters:
compiler - the compiler used to parse


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