|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junitx.ddtunit.data.processing.parser.ParserImpl
public final class ParserImpl
XML SAX parser converting xml testdatea resourse into object structure used
by DDTestCase class execution.
Using JAXP 1.1 to specify and configure
SAX conformant parser.
As project default Apache Crimson provided in the
distribution of JDK 1.4.2 is used.
Field Summary | |
---|---|
static String |
XSD_RESOURCE_PATH
resource path of xml schema used for validation |
static String |
XSD_URL
URL of xml schema for validation |
Constructor Summary | |
---|---|
ParserImpl()
|
Method Summary | |
---|---|
TestClusterDataSet |
parse(String resource,
boolean byName,
String clusterId,
TestClusterDataSet baseDataSet)
Parse xml resource provided by resource name filtered by classId. |
TypedObject |
parseElement(String xmlObjectDef)
|
TypedObject |
parseElement(String xmlObjectDef,
boolean addXMLHeader)
Parse object definition and use provided object as base class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String XSD_URL
public static final String XSD_RESOURCE_PATH
Constructor Detail |
---|
public ParserImpl()
Method Detail |
---|
public TestClusterDataSet parse(String resource, boolean byName, String clusterId, TestClusterDataSet baseDataSet)
IParser
parse
in interface IParser
resource
- to parsebyName
- TODOclusterId
- to filter class tag
TestClusterDataSet
public TypedObject parseElement(String xmlObjectDef, boolean addXMLHeader)
parseElement
in interface IParser
xmlObjectDef
- string defining object to instanciateaddXMLHeader
- -
set true if xml header should be added
public TypedObject parseElement(String xmlObjectDef)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |