|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.di.config.xml.Factories
public class Factories
Field Summary | |
---|---|
static Hashtable |
classMap
|
static Hashtable |
implMap
|
static String |
INHERIT_TAG
|
static org.apache.log4j.Logger |
logger
|
static String |
NAME_ATTRIBUTE
|
static String |
NAME_TAG
|
static String |
PARAMETER_TAG
|
Factories |
parent
|
static String |
USER_COMMENT_ATTRIBUTE
|
static String |
VALUE_ATTRIBUTE
|
Constructor Summary | |
---|---|
Factories()
|
Method Summary | |
---|---|
void |
build(BaseConfiguration config,
Element element)
Generate XML element from configuration object |
static void |
debug(String msg)
General methods used by various factories |
static void |
dump(BaseConfiguration config)
|
void |
getBaseName(BaseConfiguration config,
Element elem)
This method retrives the name and inheritFrom attributes/elements and configures the base object with its name and also calls Metamergeconfig for any inherited objects. |
static String |
getClassTag(Object config)
Return element name used for specific class |
static Factories |
getFactory(String tag)
Return factory for element |
static BaseConfiguration |
getImpl(String tag)
Return new instance of configuration implementation |
void |
getInheritsFrom(BaseConfiguration config,
Element elem)
|
String |
getNodeText(Node node)
Return text from a node's children |
String |
getNodeTextByName(Element node,
String name)
Return text from a single named node's children |
void |
getParameter(Element p,
BaseConfiguration config)
|
void |
getParameters(Element p,
BaseConfiguration config)
Add simple parameters to configuration |
Element |
getSingleElement(Element node,
String name)
Locate a single Element from a node's children |
static boolean |
isDebugMode()
|
static void |
logmsg(String msg)
|
void |
parse(BaseConfiguration config,
Element element)
Parse XML element into configuration object |
void |
setBaseName(BaseConfiguration config,
Element elem)
|
void |
setInheritsFrom(BaseConfiguration config,
Element elem)
|
void |
setParameter(Element p,
BaseConfiguration config,
Object pname)
|
Element |
setParameters(Element p,
BaseConfiguration config,
String tag)
Add simple parameters to configuration |
void |
setSingleElement(Element node,
String tag,
BaseConfiguration bc,
String name)
|
void |
setSingleElement(Element node,
String tag,
String value)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static org.apache.log4j.Logger logger
public static Hashtable classMap
public static Hashtable implMap
public static final String PARAMETER_TAG
public static final String NAME_TAG
public static final String INHERIT_TAG
public static final String NAME_ATTRIBUTE
public static final String VALUE_ATTRIBUTE
public static final String USER_COMMENT_ATTRIBUTE
public Factories parent
Constructor Detail |
---|
public Factories()
Method Detail |
---|
public static Factories getFactory(String tag) throws Exception
Exception
public static BaseConfiguration getImpl(String tag) throws Exception
Exception
public static String getClassTag(Object config)
public static boolean isDebugMode()
public void parse(BaseConfiguration config, Element element) throws Exception
Exception
public void build(BaseConfiguration config, Element element) throws Exception
Exception
public static void debug(String msg)
public static void logmsg(String msg)
public static void dump(BaseConfiguration config)
public void getBaseName(BaseConfiguration config, Element elem) throws Exception
Exception
public void getInheritsFrom(BaseConfiguration config, Element elem) throws Exception
Exception
public void setBaseName(BaseConfiguration config, Element elem) throws Exception
Exception
public void setInheritsFrom(BaseConfiguration config, Element elem) throws Exception
Exception
public void getParameters(Element p, BaseConfiguration config) throws Exception
Exception
public void getParameter(Element p, BaseConfiguration config) throws Exception
Exception
public Element setParameters(Element p, BaseConfiguration config, String tag) throws Exception
Exception
public void setParameter(Element p, BaseConfiguration config, Object pname) throws Exception
Exception
public String getNodeText(Node node) throws Exception
Exception
public Element getSingleElement(Element node, String name) throws Exception
Exception
public String getNodeTextByName(Element node, String name) throws Exception
Exception
public void setSingleElement(Element node, String tag, BaseConfiguration bc, String name) throws Exception
Exception
public void setSingleElement(Element node, String tag, String value) throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |