etm.core.configuration
Class XmlConfigParser

java.lang.Object
  extended by etm.core.configuration.XmlConfigParser

public abstract class XmlConfigParser
extends java.lang.Object

Abstract configuration factory.

Since:
1.2.0
Version:
$Revision: 246 $
Author:
void.fm

Field Summary
static java.lang.String JETM_CONFIG_1_0_DTD_NAME
           
static java.lang.String JETM_CONFIG_1_2_DTD_NAME
           
static java.lang.String PUBLIC_DTD_1_0
           
static java.lang.String PUBLIC_DTD_1_2
           
 
Constructor Summary
XmlConfigParser()
           
 
Method Summary
protected  void addPropertyByAttribute(org.w3c.dom.Element aElement, PropertyConfig aConfig, java.lang.String aAttributeName, java.lang.String aPropertyName)
           
static EtmMonitorConfig extractConfig(java.io.InputStream inStream)
           
protected  java.lang.String getAttribute(org.w3c.dom.Element element, java.lang.String attributeName)
           
protected  java.lang.String getNodeFirstChildTextValue(org.w3c.dom.Node aNode)
           
protected static XmlConfigParser getParser(java.lang.String publicId)
           
protected static org.w3c.dom.Document load(java.io.InputStream inStream)
           
abstract  EtmMonitorConfig parse(org.w3c.dom.Document aDocument)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PUBLIC_DTD_1_0

public static final java.lang.String PUBLIC_DTD_1_0
See Also:
Constant Field Values

JETM_CONFIG_1_0_DTD_NAME

public static final java.lang.String JETM_CONFIG_1_0_DTD_NAME
See Also:
Constant Field Values

PUBLIC_DTD_1_2

public static final java.lang.String PUBLIC_DTD_1_2
See Also:
Constant Field Values

JETM_CONFIG_1_2_DTD_NAME

public static final java.lang.String JETM_CONFIG_1_2_DTD_NAME
See Also:
Constant Field Values
Constructor Detail

XmlConfigParser

public XmlConfigParser()
Method Detail

parse

public abstract EtmMonitorConfig parse(org.w3c.dom.Document aDocument)

extractConfig

public static EtmMonitorConfig extractConfig(java.io.InputStream inStream)
                                      throws java.lang.Exception
Throws:
java.lang.Exception

getParser

protected static XmlConfigParser getParser(java.lang.String publicId)

load

protected static org.w3c.dom.Document load(java.io.InputStream inStream)
                                    throws java.lang.Exception
Throws:
java.lang.Exception

getAttribute

protected java.lang.String getAttribute(org.w3c.dom.Element element,
                                        java.lang.String attributeName)

getNodeFirstChildTextValue

protected java.lang.String getNodeFirstChildTextValue(org.w3c.dom.Node aNode)

addPropertyByAttribute

protected void addPropertyByAttribute(org.w3c.dom.Element aElement,
                                      PropertyConfig aConfig,
                                      java.lang.String aAttributeName,
                                      java.lang.String aPropertyName)


Copyright © 2004,2005, 2006, 2007 void.fm. All Rights Reserved.