|
Log4j 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpl.psnc.expres.model.factory.ResourceFactory
public class ResourceFactory
ResourceFactory
class - factory is used to get a list of resource.
Constructor Summary | |
---|---|
ResourceFactory()
|
Method Summary | |
---|---|
protected static ResourceValue |
getResource(int id)
Get the resource by the given id |
static ResourceValue |
getResource(int id,
java.io.InputStream inStream)
Get the resource by the given id |
static ResourceValue |
getResource(int id,
java.lang.String filePath)
Get the resource by the given id |
static ResourceValue |
getResource(java.lang.String abbreviation,
java.io.InputStream resourceIn)
Get the resource by the given id |
static ResourceValue |
getResource(java.lang.String abbreviation,
java.lang.String filePath)
Get the resource by the given id |
static java.util.List<ResourceValue> |
getResources()
Get the resource list from default location defined by ModelKeys.RESOURCE_LOCATION |
static java.util.List<ResourceValue> |
getResources(java.io.InputStream inStream)
Get the resource list |
static java.util.List<ResourceValue> |
getResources(java.lang.String filePath)
Get the resource list |
static java.util.List<ResourceValue> |
getResourcesFromString(java.lang.String resourceAsString)
Get the resource list from string |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResourceFactory()
Method Detail |
---|
protected static ResourceValue getResource(int id) throws pl.psnc.vlab.exception.ResourceNotFoundException
id
- resource id
pl.psnc.vlab.exception.ResourceNotFoundException
public static ResourceValue getResource(int id, java.lang.String filePath) throws pl.psnc.vlab.exception.ResourceNotFoundException
id
- resource idfilePath
- path to a Json file with resource description
pl.psnc.vlab.exception.ResourceNotFoundException
public static ResourceValue getResource(int id, java.io.InputStream inStream) throws pl.psnc.vlab.exception.ResourceNotFoundException
id
- resource idinStream
- path to a Json file with resource description
pl.psnc.vlab.exception.ResourceNotFoundException
public static ResourceValue getResource(java.lang.String abbreviation, java.lang.String filePath) throws pl.psnc.vlab.exception.ResourceNotFoundException
abbreviation
- resource abbreviationfilePath
- path to a Json file with resource description
pl.psnc.vlab.exception.ResourceNotFoundException
public static ResourceValue getResource(java.lang.String abbreviation, java.io.InputStream resourceIn) throws pl.psnc.vlab.exception.ResourceNotFoundException
abbreviation
- resource abbreviationfilePath
- path to a Json file with resource description
pl.psnc.vlab.exception.ResourceNotFoundException
public static java.util.List<ResourceValue> getResources(java.lang.String filePath) throws pl.psnc.vlab.exception.ResourceNotFoundException
filePath
- path to a Json file with resource description
pl.psnc.vlab.exception.ResourceNotFoundException
public static java.util.List<ResourceValue> getResourcesFromString(java.lang.String resourceAsString) throws pl.psnc.vlab.exception.ResourceNotFoundException
resourceAsString
- resource text representation
pl.psnc.vlab.exception.ResourceNotFoundException
public static java.util.List<ResourceValue> getResources(java.io.InputStream inStream) throws pl.psnc.vlab.exception.ResourceNotFoundException
inStream
- input stream with resource description (Json format)
pl.psnc.vlab.exception.ResourceNotFoundException
public static java.util.List<ResourceValue> getResources() throws pl.psnc.vlab.exception.ResourceNotFoundException
filePath
- path to a Json file with resource description
pl.psnc.vlab.exception.ResourceNotFoundException
|
Log4j 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |