public abstract class XOMUtil extends XMLUtil
org.eigenbase.xom and
org.eigenbase.xom.wrappers packages.| Constructor and Description |
|---|
XOMUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addChild(ElementDef parent,
ElementDef child) |
static void |
addChild(ElementDef parent,
NodeDef child) |
static void |
addChildren(ElementDef parent,
NodeDef[] children)
Adds a set of children to an object, using its best guess as to where to
put them.
|
static Object[] |
addElement(Object[] a,
Object o)
Adds an object to the end of an array.
|
static Object[] |
concatenate(Object[] a0,
Object[] a1)
Concatenates two arrays.
|
static Parser |
createDefaultParser()
Creates a
Parser of the default parser type. |
static void |
discard(boolean b)
When the compiler is complaining that you are not using a variable, just
call one of these routines with it.
|
static void |
discard(byte b) |
static void |
discard(char c) |
static void |
discard(double d) |
static void |
discard(float d) |
static void |
discard(int i) |
static void |
discard(long l) |
static void |
discard(Object o) |
static void |
discard(short s) |
static Object |
getFirstInstance(Object[] a,
Class clazz)
Returns the first member of an array of objects which is an instance of
a given class, or null if there is no such.
|
static String |
wrapperToXml(DOMWrapper wrapper,
boolean ignorePcdata) |
getFirstTagName, printAtt, printAtt, printAtt, printAtt, printPCDATA, printPCDATA, printPCDATA, quoteAtt, quoteAtt, quoteAtt, quoteAtt, quotePCDATA, stringEncodeXML, stringHasXMLSpecialspublic static void discard(boolean b)
public static void discard(byte b)
public static void discard(char c)
public static void discard(double d)
public static void discard(float d)
public static void discard(int i)
public static void discard(long l)
public static void discard(Object o)
public static void discard(short s)
public static Object[] addElement(Object[] a, Object o)
String[]) as the input array.public static Object[] concatenate(Object[] a0, Object[] a1)
String[]) as the first array.public static void addChildren(ElementDef parent, NodeDef[] children) throws XOMException
XOMExceptionpublic static void addChild(ElementDef parent, ElementDef child) throws XOMException
XOMExceptionpublic static void addChild(ElementDef parent, NodeDef child) throws XOMException
XOMExceptionpublic static Parser createDefaultParser() throws XOMException
Parser of the default parser type.XOMExceptionpublic static Object getFirstInstance(Object[] a, Class clazz)
public static String wrapperToXml(DOMWrapper wrapper, boolean ignorePcdata)
Copyright © 2012–2020 Julian Hyde. All rights reserved.