org.apache.portals.graffito.jcr.mapper.impl
Class DigesterDescriptorReader

java.lang.Object
  extended by org.apache.portals.graffito.jcr.mapper.impl.DigesterDescriptorReader

public class DigesterDescriptorReader
extends java.lang.Object

Helper class that reads the xml mapping file and load all class descriptors into memory (object graph)

Author:
Lombart Christophe , Alexandru Popescu

Constructor Summary
DigesterDescriptorReader()
           
 
Method Summary
 MappingDescriptor loadClassDescriptors(java.io.InputStream stream)
          Load all class descriptors found in the xml mapping file.
 MappingDescriptor loadClassDescriptors(java.lang.String xmlFile)
          Load all class descriptors found in the xml mapping file.
 void setResolver(java.net.URL dtdResolver)
           
 void setValidating(boolean flag)
          Set if the mapping should be validated.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DigesterDescriptorReader

public DigesterDescriptorReader()
Method Detail

setValidating

public void setValidating(boolean flag)
Set if the mapping should be validated.

Parameters:
flag - true if the mapping should be validated

setResolver

public void setResolver(java.net.URL dtdResolver)

loadClassDescriptors

public MappingDescriptor loadClassDescriptors(java.io.InputStream stream)
Load all class descriptors found in the xml mapping file.

Parameters:
stream - the xml mapping file reference
Returns:
a MappingDescriptor

loadClassDescriptors

public MappingDescriptor loadClassDescriptors(java.lang.String xmlFile)
Load all class descriptors found in the xml mapping file.

Parameters:
xmlFile - the xml mapping file reference
Returns:
a MappingDescriptor


Copyright © 2004-2006 The Apache Software Foundation. All Rights Reserved.