| java.lang.Object org.openharmonise.rm.factory.HarmoniseObjectFactory
HarmoniseObjectFactory | public class HarmoniseObjectFactory (Code) | | Factory class which provides a single point of access to instances of the
core Harmonise objects, providing various methods for returning instances
based on either class names or XML elements. This class uses the factory XSLT
file to find class name and cache key information from XML element names. This file
will contain templates such as the following:
author: Michael Bell version: $Revision: 1.5.2.1 $ |
Method Summary | |
public static String | getClassName(AbstractDataStoreInterface dbintrf, Element element) Returns the class name associated to the given XML element, taken
from the factory XSLT. | public static String | getClassName(Element xmlElement) | public static AbstractObject | instantiateHarmoniseObject(AbstractDataStoreInterface dbinterf, String sClassname, String sPath) Returns an instance of AbstractObject of the specified class name and
path using the given data store interface. | public static AbstractObject | instantiateHarmoniseObject(AbstractDataStoreInterface dbinterf, String sClassname, int nId) Returns an instance of AbstractObject of the specified class name and
id using the given data store interface. | public static AbstractObject | instantiateHarmoniseObject(AbstractDataStoreInterface dbinterf, Element element, State state) Returns an instance of AbstractObject which matches the
the given XML element, taking any necessary additional information from the
State object given. | public static Publishable | instantiatePublishableObject(AbstractDataStoreInterface dbinterf, String sClassname, String sPath) Returns an instance of Publishable of the specified class name and
path using the given data store interface. | public static Publishable | instantiatePublishableObject(AbstractDataStoreInterface dbinterf, String sClassname, int nId) Returns an instance of Publishable of the specified class name and
id using the given data store interface. | public static Publishable | instantiatePublishableObject(AbstractDataStoreInterface dbinterf, Element element, State state) Returns an instance of Publishable which matches the
the given XML element, taking any necessary additional information from the
State object given. | public static List | instantiateWorkflowObjects(AbstractDataStoreInterface dbinterf, Element wf_root, State state) Returns a list of objects from the WorkflowObject XML element. |
ATTRIB_CACHE_KEY_TYPE | final public static String ATTRIB_CACHE_KEY_TYPE(Code) | | Attribute used to specify the cache key type in factory.xsl
|
ATTRIB_CLASS_FINDER | final public static String ATTRIB_CLASS_FINDER(Code) | | Attribute used to specifiy the class name of the ClassFinder
class for a given XML element.
|
NOT_APPLICABLE | final public static String NOT_APPLICABLE(Code) | | Constant value used for the cache key attribute to specify that
the object does not get cached
|
instantiateHarmoniseObject | public static AbstractObject instantiateHarmoniseObject(AbstractDataStoreInterface dbinterf, String sClassname, String sPath) throws HarmoniseFactoryException(Code) | | Returns an instance of AbstractObject of the specified class name and
path using the given data store interface.
Parameters: dbinterf - the data store interface Parameters: sClassname - the class name Parameters: sPath - the harmonise path of the desired object an instance of AbstractObject of the specified class name andpath throws: HarmoniseFactoryException - if any errors occur |
instantiateHarmoniseObject | public static AbstractObject instantiateHarmoniseObject(AbstractDataStoreInterface dbinterf, String sClassname, int nId) throws HarmoniseFactoryException(Code) | | Returns an instance of AbstractObject of the specified class name and
id using the given data store interface.
Parameters: dbinterf - the data store interface Parameters: sClassname - the class name Parameters: nId - the object id an instance of AbstractObject of the specified class name andid throws: HarmoniseFactoryException - if any errors occur |
instantiateHarmoniseObject | public static AbstractObject instantiateHarmoniseObject(AbstractDataStoreInterface dbinterf, Element element, State state) throws HarmoniseFactoryException(Code) | | Returns an instance of AbstractObject which matches the
the given XML element, taking any necessary additional information from the
State object given.
Parameters: dbinterf - the data store interface Parameters: element - the XML element representing the object to be instantiated Parameters: state - the state represenation an instance of AbstractObject which matches the the given XML element throws: HarmoniseFactoryException - if any errors occur |
instantiatePublishableObject | public static Publishable instantiatePublishableObject(AbstractDataStoreInterface dbinterf, String sClassname, String sPath) throws HarmoniseFactoryException(Code) | | Returns an instance of Publishable of the specified class name and
path using the given data store interface.
Parameters: dbinterf - the data store interface Parameters: sClassname - the class name Parameters: sPath - the harmonise path of the desired object an instance of Publishable of the specified class name andpath throws: HarmoniseFactoryException - if any errors occur |
instantiatePublishableObject | public static Publishable instantiatePublishableObject(AbstractDataStoreInterface dbinterf, String sClassname, int nId) throws HarmoniseFactoryException(Code) | | Returns an instance of Publishable of the specified class name and
id using the given data store interface.
Parameters: dbinterf - the data store interface Parameters: sClassname - the class name Parameters: nId - the object id an instance of Publishable of the specified class name andid throws: HarmoniseFactoryException - if any errors occur |
instantiatePublishableObject | public static Publishable instantiatePublishableObject(AbstractDataStoreInterface dbinterf, Element element, State state) throws HarmoniseFactoryException(Code) | | Returns an instance of Publishable which matches the
the given XML element, taking any necessary additional information from the
State object given.
Parameters: dbinterf - the data store interface Parameters: element - the XML element representing the object to be instantiated Parameters: state - the state represenation an instance of Publishable which matches the the given XML element throws: HarmoniseFactoryException - |
|
|