| Package | Description |
|---|---|
| com.helger.commons.microdom | |
| com.helger.commons.microdom.serialize | |
| com.helger.commons.microdom.util |
| Modifier and Type | Interface and Description |
|---|---|
interface |
IMicroCDATA
Represents a CDATA node.
|
interface |
IMicroComment
Represents a comment node.
|
interface |
IMicroContainer
This interface is just a hull for a node that has no properties itself but
contains children.
|
interface |
IMicroDocument
Represents a complete document.
|
interface |
IMicroDocumentType
Represents the document type of a document.
|
interface |
IMicroElement
Represents a single element (=tag) of a document.
|
interface |
IMicroEntityReference
Represents the reference to an entity.
|
interface |
IMicroNodeWithChildren
A special marker interface that is implemented by classes, that really
support having children!
|
interface |
IMicroProcessingInstruction
Represents a processing instruction.
|
interface |
IMicroText
Represents a text node.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractMicroNode
This is an abstract base class for the micro document object model.
|
class |
AbstractMicroNodeWithChildren
Basic implementation class for the micro document object model.
|
class |
MicroCDATA
Default implementation of the
IMicroCDATA interface. |
class |
MicroComment
Default implementation of the
IMicroComment interface. |
class |
MicroContainer
Default implementation of the
IMicroContainer interface. |
class |
MicroDocument
Default implementation of the
IMicroDocument interface. |
class |
MicroDocumentType
Default implementation of the
IMicroDocumentType interface. |
class |
MicroElement
Default implementation of the
IMicroElement interface. |
class |
MicroEntityReference
Default implementation of the
IMicroEntityReference interface. |
class |
MicroProcessingInstruction
Default implementation of the
IMicroProcessingInstruction interface. |
class |
MicroText
Default implementation of the
IMicroText interface. |
| Modifier and Type | Method and Description |
|---|---|
<NODETYPE extends IMicroNode> |
IMicroNode.appendChild(NODETYPE aChildNode)
Append any child to the node.
|
<NODETYPE extends IMicroNode> |
AbstractMicroNode.appendChild(NODETYPE aChildNode) |
<NODETYPE extends IMicroNode> |
IMicroNode.insertAfter(NODETYPE aChildNode,
IMicroNode aPredecessor)
Insert an existing node after a certain child node of this.
|
<NODETYPE extends IMicroNode> |
AbstractMicroNode.insertAfter(NODETYPE aChildNode,
IMicroNode aPredecessor) |
<NODETYPE extends IMicroNode> |
IMicroNode.insertAtIndex(int nIndex,
NODETYPE aChildNode)
Insert an existing node as a child at the specified index.
|
<NODETYPE extends IMicroNode> |
AbstractMicroNode.insertAtIndex(int nIndex,
NODETYPE aChildNode) |
<NODETYPE extends IMicroNode> |
IMicroNode.insertBefore(NODETYPE aChildNode,
IMicroNode aSuccessor)
Insert an existing node before a certain child node of this.
|
<NODETYPE extends IMicroNode> |
AbstractMicroNode.insertBefore(NODETYPE aChildNode,
IMicroNode aSuccessor) |
| Modifier and Type | Method and Description |
|---|---|
IMicroNode |
IMicroNode.detachFromParent()
Detach this node from the parent node so it can be inserted into another
node without problems.
|
IMicroNode |
AbstractMicroNode.detachFromParent() |
IMicroNode |
IHasMicroNodeRepresentation.getAsMicroNode() |
IMicroNode |
AbstractMicroNodeWithChildren.getChildAtIndex(int nIndex) |
IMicroNode |
AbstractMicroNode.getChildAtIndex(int nIndex) |
IMicroNode |
IMicroNode.getFirstChild() |
IMicroNode |
AbstractMicroNodeWithChildren.getFirstChild() |
IMicroNode |
AbstractMicroNode.getFirstChild() |
IMicroNode |
IMicroNode.getLastChild() |
IMicroNode |
AbstractMicroNodeWithChildren.getLastChild() |
IMicroNode |
AbstractMicroNode.getLastChild() |
IMicroNode |
IMicroNode.getNextSibling() |
IMicroNode |
AbstractMicroNode.getNextSibling() |
IMicroNode |
IMicroNode.getParent() |
IMicroNode |
AbstractMicroNode.getParent() |
IMicroNode |
IMicroNode.getPreviousSibling() |
IMicroNode |
AbstractMicroNode.getPreviousSibling() |
IMicroNode |
MicroEvent.getSourceNode() |
IMicroNode |
IMicroEvent.getSourceNode() |
IMicroNode |
MicroEvent.getTargetNode() |
IMicroNode |
IMicroEvent.getTargetNode() |
| Modifier and Type | Method and Description |
|---|---|
List<IMicroNode> |
IMicroNode.getAllChildren()
Get a list of all direct child nodes.
|
List<IMicroNode> |
AbstractMicroNodeWithChildren.getAllChildren() |
List<IMicroNode> |
AbstractMicroNode.getAllChildren() |
List<IMicroNode> |
IMicroNode.getAllChildrenRecursive()
Recursively get all children.
|
List<IMicroNode> |
AbstractMicroNodeWithChildren.getAllChildrenRecursive() |
List<IMicroNode> |
AbstractMicroNode.getAllChildrenRecursive() |
| Modifier and Type | Method and Description |
|---|---|
static IMicroContainer |
MicroContainer.createWithClones(IMicroNode... aChildNodes)
Create a new
IMicroContainer that contains clones of all passed
nodes |
<NODETYPE extends IMicroNode> |
IMicroNode.insertAfter(NODETYPE aChildNode,
IMicroNode aPredecessor)
Insert an existing node after a certain child node of this.
|
<NODETYPE extends IMicroNode> |
AbstractMicroNode.insertAfter(NODETYPE aChildNode,
IMicroNode aPredecessor) |
<NODETYPE extends IMicroNode> |
IMicroNode.insertBefore(NODETYPE aChildNode,
IMicroNode aSuccessor)
Insert an existing node before a certain child node of this.
|
<NODETYPE extends IMicroNode> |
AbstractMicroNode.insertBefore(NODETYPE aChildNode,
IMicroNode aSuccessor) |
boolean |
MicroText.isEqualContent(IMicroNode o) |
boolean |
MicroProcessingInstruction.isEqualContent(IMicroNode o) |
boolean |
MicroEntityReference.isEqualContent(IMicroNode o) |
boolean |
MicroElement.isEqualContent(IMicroNode o) |
boolean |
MicroDocumentType.isEqualContent(IMicroNode o) |
boolean |
MicroDocument.isEqualContent(IMicroNode o) |
boolean |
MicroComment.isEqualContent(IMicroNode o) |
boolean |
MicroCDATA.isEqualContent(IMicroNode o) |
boolean |
IMicroNode.isEqualContent(IMicroNode aNode)
As instances of this class may not implement equals/hashCode we need a way
to determine, if 2 nodes are equal by content.
|
boolean |
AbstractMicroNodeWithChildren.isEqualContent(IMicroNode o) |
protected void |
AbstractMicroNode.onEvent(EMicroEvent eEventType,
IMicroNode aSourceNode,
IMicroNode aTargetNode) |
protected void |
AbstractMicroNodeWithChildren.onInsertAfter(AbstractMicroNode aChildNode,
IMicroNode aPredecessor) |
protected void |
AbstractMicroNode.onInsertAfter(AbstractMicroNode aChildNode,
IMicroNode aPredecessor)
Callback that is invoked once a child is to be inserted after another
child.
|
protected void |
AbstractMicroNodeWithChildren.onInsertBefore(AbstractMicroNode aChildNode,
IMicroNode aSuccessor) |
protected void |
AbstractMicroNode.onInsertBefore(AbstractMicroNode aChildNode,
IMicroNode aSuccessor)
Callback that is invoked once a child is to be inserted before another
child.
|
protected EChange |
AbstractMicroNodeWithChildren.onRemoveChild(IMicroNode aChildNode) |
protected EChange |
AbstractMicroNode.onRemoveChild(IMicroNode aChild)
Callback when a child is removed.
|
EChange |
IMicroNode.removeChild(IMicroNode aChild)
Remove the passed child.
|
EChange |
AbstractMicroNode.removeChild(IMicroNode aChild) |
EChange |
IMicroNode.replaceChild(IMicroNode aOldChild,
IMicroNode aNewChild)
Replace the passed old child with the new child.
|
EChange |
AbstractMicroNode.replaceChild(IMicroNode aOldChild,
IMicroNode aNewChild) |
| Modifier and Type | Method and Description |
|---|---|
static IMicroContainer |
MicroContainer.createWithClones(Iterable<? extends IMicroNode> aChildNodes)
Create a new
IMicroContainer that contains clones of all passed
nodes |
| Constructor and Description |
|---|
MicroContainer(IMicroNode... aChildNodes) |
MicroEvent(EMicroEvent eEventType,
IMicroNode aSourceNode,
IMicroNode aTargetNode) |
| Constructor and Description |
|---|
MicroContainer(Iterable<? extends IMicroNode> aChildNodes) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
MicroSerializer.emitNode(XMLEmitter aXMLWriter,
IMicroNode aParentNode,
IMicroNode aPrevSibling,
IMicroNode aNode,
IMicroNode aNextSibling) |
static String |
MicroWriter.getNodeAsString(IMicroNode aNode,
IXMLWriterSettings aSettings) |
static String |
MicroWriter.getXMLString(IMicroNode aNode)
Convert the passed micro node to an XML string using
XMLWriterSettings.DEFAULT_XML_SETTINGS. |
static ESuccess |
MicroWriter.writeToFile(IMicroNode aNode,
File aFile)
Write a Micro Node to a file using the default settings.
|
static ESuccess |
MicroWriter.writeToFile(IMicroNode aNode,
File aFile,
IXMLWriterSettings aSettings)
Write a Micro Node to a file.
|
static ESuccess |
MicroWriter.writeToStream(IMicroNode aNode,
OutputStream aOS)
Write a Micro Node to an output stream using the default settings.
|
static ESuccess |
MicroWriter.writeToStream(IMicroNode aNode,
OutputStream aOS,
IXMLWriterSettings aSettings)
Write a Micro Node to an
OutputStream. |
static ESuccess |
MicroWriter.writeToWriter(IMicroNode aNode,
Writer aWriter,
IXMLWriterSettings aSettings)
Write a Micro Node to a
Writer. |
| Constructor and Description |
|---|
MicroDOMInputStreamProvider(IMicroNode aNode)
Constructor for MicroNodes using the default charset.
|
MicroDOMInputStreamProvider(IMicroNode aNode,
Charset aCharset)
Constructor for MicroNodes.
|
MicroDOMInputStreamProvider(IMicroNode aNode,
IXMLWriterSettings aSettings)
Constructor for micro nodes.
|
| Modifier and Type | Method and Description |
|---|---|
static <T extends IMicroNode> |
MicroVisitor.visit(T aNode,
IChildrenProvider<T> aChildrenProvider,
IHierarchyVisitorCallback<? super T> aCallback)
Iterate the passed node and invoke the callback for all child nodes.
|
| Modifier and Type | Method and Description |
|---|---|
static IMicroNode |
MicroHelper.append(IMicroNode aSrcNode,
Object aChild) |
static IMicroNode |
MicroHelper.convertToMicroNode(Node aNode) |
IMicroNode |
MicroRecursiveIterator.next() |
| Modifier and Type | Method and Description |
|---|---|
Iterator<IMicroNode> |
MicroRecursiveIterator.iterator() |
| Modifier and Type | Method and Description |
|---|---|
static IMicroNode |
MicroHelper.append(IMicroNode aSrcNode,
Object aChild) |
static IMicroContainer |
MicroHelper.getAllChildrenAsContainer(IMicroNode aParent)
Create a micro container with all children of the passed node.
|
static IMicroContainer |
MicroHelper.getAllOriginalChildrenAsContainer(IMicroNode aParent)
Create a micro container with all children of the passed node.
|
static String |
MicroHelper.getPath(IMicroNode aNode,
String sSep)
Get the path of the given node, up to the root element.
|
static void |
MicroVisitor.visit(IMicroNode aNode,
IHierarchyVisitorCallback<? super IMicroNode> aCallback)
Iterate the passed node and invoke the callback for all child nodes.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
MicroVisitor.visit(IMicroNode aNode,
IHierarchyVisitorCallback<? super IMicroNode> aCallback)
Iterate the passed node and invoke the callback for all child nodes.
|
| Constructor and Description |
|---|
MicroRecursiveIterator(IMicroNode aNode) |
Copyright © 2014–2016 Philip Helger. All rights reserved.