Log4j 0.9d

pl.psnc.expres.wfm.model.factory
Class WfmResourceFactory

java.lang.Object
  extended by pl.psnc.expres.wfm.model.factory.WfmResourceFactory

public class WfmResourceFactory
extends Object

WfmResourceFactory class - factory class for retrieving resources and their properties

Author:
Dominik Stoklosa (~osa~)

Constructor Summary
WfmResourceFactory()
           
 
Method Summary
static ResourceValue getResource(int id)
          Get the resource by the given id
static ResourceValue getResource(String abbr)
          Get the resource by resource abbreviation
static int nextSequenceNumber()
          Get next resource identifier
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WfmResourceFactory

public WfmResourceFactory()
Method Detail

getResource

public static ResourceValue getResource(int id)
                                 throws ResourceNotFoundException
Get the resource by the given id

Parameters:
id - resource id
Returns:
resource value object
Throws:
ResourceNotFoundException

getResource

public static ResourceValue getResource(String abbr)
                                 throws ResourceNotFoundException
Get the resource by resource abbreviation

Parameters:
abbr - resource abbreviation
Returns:
instance of ResourceValue
Throws:
ResourceNotFoundException - when resource with the given abbreviation does not exist

nextSequenceNumber

public static int nextSequenceNumber()
Get next resource identifier

Returns:
next integer value. Sequencer starts with 1.

Log4j 0.9d

Copyright 2003 by VLAB Dominik Stoklosa.