org.objectweb.kilim.repository
Class ResourceRepository1

java.lang.Object
  extended byorg.objectweb.kilim.repository.ResourceRepository
      extended byorg.objectweb.kilim.repository.ResourceRepository1
All Implemented Interfaces:
Repository

public class ResourceRepository1
extends ResourceRepository

Implementation of Repository using a ResourceLoader and a kilim xml format Parser. Repository

Author:
dutoo, horn

Field Summary
 
Fields inherited from class org.objectweb.kilim.repository.ResourceRepository
 
Fields inherited from interface org.objectweb.kilim.repository.Repository
KILIM_FILES_EXTENSION
 
Constructor Summary
ResourceRepository1()
          Creates a new ResourceRepository with the given kilim xml format Parser and its ClassLoader as resource loader.
ResourceRepository1(TemplateDescriptionParser aParser)
          Creates a new ResourceRepository with the given kilim xml format Parser and its ClassLoader as resource loader.
 
Method Summary
private static void error(Property property, java.lang.String value, java.lang.Exception exc)
           
protected  TemplateDescription getSingleDescription(java.lang.String resourceName, ResourceMapping parsingResult)
          Method getSingleDescription.
private static void setValue(Property property, java.lang.String value)
           
 
Methods inherited from class org.objectweb.kilim.repository.ResourceRepository
getResourceLoader, getTemplateDescription, setResourceLoader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceRepository1

public ResourceRepository1()
Creates a new ResourceRepository with the given kilim xml format Parser and its ClassLoader as resource loader.


ResourceRepository1

public ResourceRepository1(TemplateDescriptionParser aParser)
Creates a new ResourceRepository with the given kilim xml format Parser and its ClassLoader as resource loader.

Parameters:
aParser - the kilim xml format parser to be used
Method Detail

getSingleDescription

protected TemplateDescription getSingleDescription(java.lang.String resourceName,
                                                   ResourceMapping parsingResult)
                                            throws ResourceNotFoundException
Method getSingleDescription. This method parses a single ".kilim" file. It updates the ResourceMapping object received as a parameter by adding new unknown templates, new "super" references, etc ...

Overrides:
getSingleDescription in class ResourceRepository
Parameters:
resourceName - : the name of the template to be parsed
parsingResult - : the ResourceMapping object used to store the parsing results to be used during next iterations.
Returns:
TemplateDescription : the internal representation of the template described in the resource.
Throws:
ResourceNotFoundException

setValue

private static void setValue(Property property,
                             java.lang.String value)

error

private static void error(Property property,
                          java.lang.String value,
                          java.lang.Exception exc)