public class DDFactory extends Object
| Constructor and Description |
|---|
DDFactory() |
| Modifier and Type | Method and Description |
|---|---|
static BaseBean |
create(InputStream in,
String rootName)
Create the proper DD bean object graph depending on the document
type of the XML document specified as an input stream.
|
static void |
register(String name,
Class clazz)
Register the root bean to use for a DTD document root name.
|
static void |
register(String name,
String className)
Register the root bean to use for a DTD document root name.
|
static String |
XmlToString(Node n)
Dump the whole content of a DOM tree as a String
|
static String |
XmlToString(Node n,
int depth)
Dump the content of a DOM tree as a String.
|
static String |
XmlToString(Node n,
int depth,
String filter)
Dump the content of a DOM tree as a String.
|
public static BaseBean create(InputStream in, String rootName) throws Schema2BeansException
in - the XML document is passed as an input stream.Schema2BeansExceptionpublic static void register(String name, String className) throws ClassNotFoundException
name - entry name of this graph registryclassName - class name (package and class name) to use
in order to instantiate the schema2beans graph. This should be the
class name of the root of the schema2beans generated classes.ClassNotFoundExceptionpublic static void register(String name, Class clazz)
name - entry name of this graph registryclazz - class to use in order to instantiate the schema2beans graph.
This should be the class of the root of the schema2beans generated classes.public static String XmlToString(Node n)
public static String XmlToString(Node n, int depth)
Copyright © 2017. All Rights Reserved.