| Package | Description |
|---|---|
| org.zkoss.idom |
The iDOM representation of XML DOM tree.
|
| org.zkoss.idom.impl |
Implementation of iDOM.
|
| org.zkoss.idom.input |
SAX builder and factory for iDOM.
|
| org.zkoss.idom.transform |
XSL Transformer for iDOM.
|
| org.zkoss.idom.util |
Utilities that simplifies the use of iDOM.
|
| org.zkoss.xel.taglib |
Utilities to access taglibs, aka., the TLD files.
|
| org.zkoss.xel.util |
Utilties of XEL expressions.
|
| Modifier and Type | Method and Description |
|---|---|
Element |
Group.getElement(String tname)
Gets the first Element-type child with the tag name.
|
Element |
Group.getElement(String namespace,
String name,
int mode)
Gets the first Element-type child that matches the giving criteria.
|
Element |
Document.getRootElement()
Gets the root element.
|
| Modifier and Type | Method and Description |
|---|---|
List<Element> |
Group.getElements()
Returns a cloned copy of all element children
|
List<Element> |
Group.getElements(String tname)
Gets a readonly list of children with the tag name.
|
List<Element> |
Group.getElements(String namespace,
String name,
int mode)
Gets a readonly list of Element-type children that match the giving
criteria.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Document.setRootElement(Element root)
Sets the root element.
|
| Constructor and Description |
|---|
Document(Element root)
Constructor.
|
Document(Element root,
DocType dt)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Element |
AbstractGroup.ElementMap.get(String name)
Get the element with name.
|
Element |
AbstractGroup.getElement(String tname) |
Element |
AbstractGroup.getElement(String namespace,
String name,
int mode) |
| Modifier and Type | Method and Description |
|---|---|
List<Element> |
AbstractGroup.ElementMap.getAll(String name)
Get a readonly list of all elements with name.
|
List<Element> |
AbstractGroup.getElements() |
List<Element> |
AbstractGroup.getElements(String tname) |
List<Element> |
AbstractGroup.getElements(String namespace,
String name,
int mode) |
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractGroup.ElementMap.put(Element e,
Element following)
Put an element into the map.
|
void |
AbstractGroup.ElementMap.remove(Element e)
Remove e from the map.
|
| Modifier and Type | Method and Description |
|---|---|
Element |
DefaultIDOMFactory.newElement(Namespace ns,
String lname) |
Element |
IDOMFactory.newElement(Namespace ns,
String lname)
Creates an Element with a namespace.
|
Element |
DefaultIDOMFactory.newElement(String lname) |
Element |
IDOMFactory.newElement(String lname)
Creates an Element without namespace.
|
| Modifier and Type | Method and Description |
|---|---|
Document |
DefaultIDOMFactory.newDocument(Element rootElement,
DocType docType) |
Document |
IDOMFactory.newDocument(Element rootElement,
DocType docType)
Creates a Document.
|
| Modifier and Type | Method and Description |
|---|---|
Document |
Transformer.transform(Element elm)
Transforms an iDOM element and returns the transformed result as
another iDOM Document.
|
void |
Transformer.transform(Element elm,
Result result)
Transforms from an iDOM element to a result.
|
| Modifier and Type | Method and Description |
|---|---|
static Element |
IDOMs.findElement(List elems,
String name)
Returns the first element whose sub-element called "name" has the
same content as the name argument, or null if not found.
|
static Element |
IDOMs.getFirstElement(Group group)
Returns the first child element, or null if no child element at all.
|
static Element |
IDOMs.getRequiredElement(Element e,
String elemnm)
Returns the required element.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
IDOMs.format(Element e)
Formats the specified element for better readability by
adding white spaces.
|
static String |
IDOMs.getRequiredAttributeValue(Element e,
String attrnm)
Returns the required attribute value.
|
static Element |
IDOMs.getRequiredElement(Element e,
String elemnm)
Returns the required element.
|
static String |
IDOMs.getRequiredElementValue(Element e,
String elemnm)
Returns the required element value.
|
static Map<String,String> |
IDOMs.parseParams(Element elm,
String type,
String name,
String value)
Parses a tree of parameter elements into a map.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
IDOMs.setContents(Collection<Element> elems,
Object val)
Set the contents of elements.
|
| Modifier and Type | Method and Description |
|---|---|
static TaglibDefinition |
Taglibs.load(Element root)
Loads functions and imports defined in the specified DOM.
|
static Map<String,Function> |
Taglibs.loadFunctions(Element root)
Loads functions defined in the specified DOM.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
Evaluators.add(Element config)
Adds an evaluator based on the XML declaration.
|
void |
TaglibMapper.load(String prefix,
Element root)
Loads function and class definitions from DOM.
|
Copyright © 2018. All rights reserved.