| Package | Description |
|---|---|
| org.eigenbase.xom |
Provides an object layer for reading and writing XML documents.
|
| org.eigenbase.xom.wrappers |
Wrappers for various XML parsers.
|
| Modifier and Type | Field and Description |
|---|---|
DOMWrapper |
MetaDef.Model._def |
DOMWrapper |
MetaDef.Element._def |
DOMWrapper |
MetaDef.Class._def |
DOMWrapper |
MetaDef.StringElement._def |
DOMWrapper |
MetaDef.Plugin._def |
DOMWrapper |
MetaDef.Import._def |
DOMWrapper |
MetaDef.Attribute._def |
DOMWrapper |
MetaDef.Object._def |
DOMWrapper |
MetaDef.Array._def |
DOMWrapper |
MetaDef.Any._def |
DOMWrapper |
MetaDef.CData._def |
| Modifier and Type | Method and Description |
|---|---|
DOMWrapper |
Parser.create(String tagName)
Creates a wrapper representing an XML element.
|
DOMWrapper[] |
DOMWrapper.getChildren()
Returns all children of this element, including TEXT elements, as
an array of DOMWrappers.
|
DOMWrapper[] |
DOMWrapper.getElementChildren()
Returns all element children of this element as an array of
DOMWrappers.
|
DOMWrapper |
NodeDef.getWrapper()
Retrieves the
DOMWrapper which was used to create this
node. |
DOMWrapper |
WrapperElementDef.getWrapper() |
DOMWrapper |
TextDef.getWrapper() |
DOMWrapper |
ElementDef.getWrapper() |
DOMWrapper[] |
DOMElementParser.optionalArray(String elemName,
int min,
int max)
This function retrieves a collection of elements with the given name,
returning them as an array.
|
DOMWrapper |
DOMElementParser.optionalElement(String elementName)
This function retrieves an optional Element from this parser,
advancing the parser if the element is found.
|
DOMWrapper |
Parser.parse(InputStream is)
Parses an input stream and returns a wrapped element.
|
DOMWrapper |
Parser.parse(Reader reader)
Parses the contents of a reader and returns a wrapped element.
|
DOMWrapper |
Parser.parse(String sXml)
Parses a string and returns a wrapped element.
|
DOMWrapper |
Parser.parse(URL url)
Parses the contents of a URL and returns a wrapped element.
|
DOMWrapper |
DOMElementParser.requiredElement(String elementName)
This function retrieves a required Element from this parser,
advancing the parser after the read.
|
DOMWrapper |
DOMElementParser.requiredOption(String[] elementNames)
This function retrieves a required element which may have one of a
number of names.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected static ElementDef[] |
ElementDef.getElementChildren(DOMWrapper _def,
Class clazz,
String prefix) |
static Class |
ElementDef.getElementClass(DOMWrapper wrapper,
Class enclosure,
String prefix)
getElementClass is a static helper function which finds the XMLDef class
corresponding to an Element.
|
Location |
Locator.getLocation(DOMWrapper wrapper) |
protected static NodeDef[] |
ElementDef.getMixedChildren_new(DOMWrapper _def,
Class clazz,
String prefix) |
protected static NodeDef[] |
ElementDef.getMixedChildren(DOMWrapper _def,
Class clazz,
String prefix) |
static String |
DOMElementParser.requiredDefAttribute(DOMWrapper wrapper,
String attrName,
String defaultVal)
This static version of requiredAttribute uses any element definition
as a basis for the attribute.
|
static String |
XOMUtil.wrapperToXml(DOMWrapper wrapper,
boolean ignorePcdata) |
| Constructor and Description |
|---|
Any(DOMWrapper _def) |
Array(DOMWrapper _def) |
Attribute(DOMWrapper _def) |
CData(DOMWrapper _def) |
CdataDef(DOMWrapper _def) |
Class(DOMWrapper _def) |
CommentDef(DOMWrapper _def) |
DOMElementParser(DOMWrapper wrapper,
String prefix,
Class enclosure)
Constructs a new ElementParser based on an Element of the XML parse
tree wrapped in a DOMWrapper, and a prefix (to be applied to all element
tags except the root), and the name of the enclosing class.
|
Element(DOMWrapper _def) |
Import(DOMWrapper _def) |
Model(DOMWrapper _def) |
Object(DOMWrapper _def) |
Plugin(DOMWrapper _def) |
StringElement(DOMWrapper _def) |
TextDef(DOMWrapper _def) |
WrapperElementDef(DOMWrapper def,
Class enclosure,
String prefix) |
| Modifier and Type | Class and Description |
|---|---|
class |
W3CDOMWrapper
This implementation of DOMWrapper wraps any w3c DOM-compliant java
XML Parser.
|
| Modifier and Type | Method and Description |
|---|---|
DOMWrapper |
XercesDOMParser.create(String tagName) |
DOMWrapper[] |
W3CDOMWrapper.getChildren()
Retrieve all children, and build an array of W3CDOMWrappers around
each child that is of TEXT or ELEMENT type to return.
|
DOMWrapper[] |
W3CDOMWrapper.getElementChildren()
Retrieve all children, and build an array of W3CDOMWrappers around
each ELEMENT child.
|
| Modifier and Type | Method and Description |
|---|---|
Location |
Annotator.getLocation(DOMWrapper wrapper) |
Copyright © 2012–2022 Julian Hyde. All rights reserved.