fr.opensagres.xdocreport.remoting.resources.domain
Class ResourceFactory

java.lang.Object
  extended by fr.opensagres.xdocreport.remoting.resources.domain.ResourceFactory

public class ResourceFactory
extends Object

Factory to create Resource.


Field Summary
static String FIELDS_XML
           
static String META_INF
           
 
Constructor Summary
ResourceFactory()
           
 
Method Summary
static Resource createCategory(String name, Resource parent)
          Create category resource.
static Resource createDocument(String name, Resource parent)
          Create document resource.
static Resource createResource(String name, ResourceType type, Resource parent)
          Create generic resource.
static Resource createTemplate(String name, Resource parent)
          Create template resource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

META_INF

public static final String META_INF
See Also:
Constant Field Values

FIELDS_XML

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

ResourceFactory

public ResourceFactory()
Method Detail

createResource

public static Resource createResource(String name,
                                      ResourceType type,
                                      Resource parent)
Create generic resource.

Parameters:
name - of the resource to create.
type - of the resource to create.
parent - resource of the resource to create.
Returns:

createCategory

public static Resource createCategory(String name,
                                      Resource parent)
Create category resource.

Parameters:
name - of the resource to create.
parent - resource of the resource to create.
Returns:

createDocument

public static Resource createDocument(String name,
                                      Resource parent)
Create document resource.

Parameters:
name - of the resource to create.
parent - resource of the resource to create.
Returns:

createTemplate

public static Resource createTemplate(String name,
                                      Resource parent)
Create template resource.

Parameters:
name - of the resource to create.
parent - resource of the resource to create.
Returns:


Copyright © 2013. All rights reserved.