| java.lang.Object org.openharmonise.rm.resources.metadata.properties.ranges.RangeFactory
RangeFactory | public class RangeFactory (Code) | | Class which generates the appropriate Range implementation
for a given object description.
author: Michael Bell version: $Revision: 1.1 $ |
Method Summary | |
public void | addNewRange(String sClassname, String sRangeClassName) Adds a mapping between a specified class name and a Range
class name. | public void | addNewRange(String sClassname, String sRangeClassName, String sTagname) Adds a mapping between a specified class name, a Range
class name and an XML tag name. | public static RangeFactory | getInstance() Returns the singleton instance of RangeFactory . | public Range | getRange(String sRangeDesc) Returns the particular Range implementation which is
appropriate for the range description given. | public Range | getRange(Element xmlElement) Returns the appropriate Range implementation for the
specified XML element. | public static boolean | isRangeTagName(String sTagname) Returns true if the specified XML tag name is
associated to a Range implementation. |
addNewRange | public void addNewRange(String sClassname, String sRangeClassName)(Code) | | Adds a mapping between a specified class name and a Range
class name.
Parameters: sClassname - the class name which will map to the specified Range Parameters: sRangeClassName - the Range implementation class name |
addNewRange | public void addNewRange(String sClassname, String sRangeClassName, String sTagname) throws ClassNotFoundException(Code) | | Adds a mapping between a specified class name, a Range
class name and an XML tag name.
Parameters: sClassname - the class name which will map to the specified Range Parameters: sRangeClassName - the Range implementation class name Parameters: sTagname - the XML tag name |
getInstance | public static RangeFactory getInstance()(Code) | | Returns the singleton instance of RangeFactory .
the singleton instance of RangeFactory |
getRange | public Range getRange(String sRangeDesc) throws ClassNotFoundException, InvalidRangeObjectException(Code) | | Returns the particular Range implementation which is
appropriate for the range description given.
Note: the range description is assumed to be a class name.
Parameters: sRangeDesc - a class name which will determine which Range implementation should be returned a Range implementation appropriate to the specified class name throws: ClassNotFoundException - if the class loader can not find theRange Class |
isRangeTagName | public static boolean isRangeTagName(String sTagname)(Code) | | Returns true if the specified XML tag name is
associated to a Range implementation.
Parameters: sTagname - the XML tag name true if the specified XML tag name is associated to a Range implementation |
|
|