| Package | Description |
|---|---|
| org.eigenbase.xom |
Provides an object layer for reading and writing XML documents.
|
| Modifier and Type | Interface and Description |
|---|---|
static interface |
MetaDef.Content
The Content class contains all entities which represent types of
content which may appear within an Element.
|
static interface |
MetaDef.Definition
The Definition class represents a generic type of element definition.
|
static interface |
MetaDef.FullDefinition
The FullDefinition class represents a fully-specified definition
that may include content.
|
| Modifier and Type | Class and Description |
|---|---|
class |
CdataDef
A
CdataDef represents a CDATA element. |
class |
CommentDef
Comment element.
|
class |
ElementDef
ElementDef is the base class for all element definitions.
|
class |
GenericDef
A
GenericDef is a ElementDef whose attributes and
children are stored in collections, not generated members. |
static class |
MetaDef.Any
The Any content is a special marker which allows an Element to
contain any type of data.
|
static class |
MetaDef.Array
An Array is a set of multiple instances of Elements.
|
static class |
MetaDef.Attribute
The Attribute entity appears within any Element definition.
|
static class |
MetaDef.CData
The CData content is a special marker which allows an Element to
contain a single CDATA section as its only content, yet still
have attributes.
|
static class |
MetaDef.Class
A Class Definition defines a class of entities.
|
static class |
MetaDef.Element
An Element Definition defines a basic entity of the meta model.
|
static class |
MetaDef.Import
An Import as a special type of element that represents another element
stored in an external model.
|
static class |
MetaDef.Model
Model is the top-level element for a model description.
|
static class |
MetaDef.Object
An Object is a single instance of an Element type.
|
static class |
MetaDef.Plugin
A Plugin in a special type of element whose content may be derived from
a different model.
|
static class |
MetaDef.StringElement
A StringElement is a simple type of element which has no attributes and
whose content is a single String (usually represented as a CDATA section).
|
class |
TextDef
A
TextDef represents piece of textual data in an XML document. |
class |
WrapperElementDef
|
| Modifier and Type | Method and Description |
|---|---|
NodeDef[] |
DOMElementParser.classArray(Class elemClass,
int min,
int max)
This function retrieves a collection of elements which are subclasses of
the given class, returning them as an array.
|
static NodeDef |
ElementDef.constructElement(DOMWrapper wrapper,
Class elemClass)
constructElement is a helper function which builds the appropriate type
of ElementDef from an XML Element.
|
static NodeDef |
ElementDef.constructElement(DOMWrapper wrapper,
Class enclosure,
String prefix)
constructElement is a helper function which builds the appropriate type
of ElementDef from an XML Element.
|
NodeDef |
DefWalker.expect(Class elemType)
Returns the next node in the defs array, but only if it matches
the provided class elemType.
|
NodeDef[] |
DefWalker.expectArray(Class elemType)
Returns a portion of the remaining nodes in the defs array as an
array.
|
NodeDef[] |
DOMElementParser.getArray(Class elemClass,
int min,
int max)
This function retrieves a collection of elements which are subclasses of
the given class, returning them as an array.
|
NodeDef[] |
Any.getChildren() |
NodeDef[] |
GenericDef.getChildren() |
NodeDef[] |
NodeDef.getChildren()
Returns the children of this node.
|
NodeDef[] |
WrapperElementDef.getChildren() |
NodeDef[] |
TextDef.getChildren() |
NodeDef[] |
ElementDef.getChildren() |
NodeDef |
DOMElementParser.getElement(Class elementClass,
boolean required)
This function retrieves an Element from this parser, advancing the
parser if the element is found.
|
protected static NodeDef[] |
ElementDef.getMixedChildren_new(DOMWrapper _def,
Class clazz,
String prefix) |
protected static NodeDef[] |
ElementDef.getMixedChildren(DOMWrapper _def,
Class clazz,
String prefix) |
NodeDef |
DOMElementParser.requiredClass(Class classTemplate)
This function retrieves a required Element of a specific class
from this parser, advancing the parser after the read.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
XOMUtil.addChild(ElementDef parent,
NodeDef child) |
void |
GenericDef.addChild(NodeDef element) |
void |
ElementDef.addChild(NodeDef child) |
static void |
XOMUtil.addChildren(ElementDef parent,
NodeDef[] children)
Adds a set of children to an object, using its best guess as to where to
put them.
|
void |
ElementDef.addChildren(NodeDef[] children) |
protected static void |
ElementDef.displayElementArray(PrintWriter out,
String name,
NodeDef[] values,
int indent)
This convenience function displays any array of ElementDef values with
the given parameter name (assumed to represent an array) at the given
indentation level.
|
protected static boolean |
ElementDef.displayElementArrayDiff(String name,
NodeDef[] values1,
NodeDef[] values2,
PrintWriter out,
int indent)
This convenience function diffs any array of ElementDef values with
the given array name.
|
protected static boolean |
ElementDef.displayElementArrayDiff(String name,
NodeDef[] values1,
NodeDef[] values2,
PrintWriter out,
int indent)
This convenience function diffs any array of ElementDef values with
the given array name.
|
protected static boolean |
ElementDef.displayElementDiff(String name,
NodeDef value1,
NodeDef value2,
PrintWriter out,
int indent)
This convenience function displays differences in the values of any
two ElementDefs, returning true if they match and false if not.
|
protected static void |
ElementDef.displayXMLElementArray(XMLOutput out,
NodeDef[] values)
This convenience function displays an array of ElementDef values in XML.
|
void |
Any.setChildren(NodeDef[] children) |
| Constructor and Description |
|---|
DefWalker(NodeDef[] defs)
Construct a DefWalker, attaching it to a NodeDef array and
specifying a PrintWriter to display error messages for later
consumption.
|
Copyright © 2012–2020 Julian Hyde. All rights reserved.