| Package | Description |
|---|---|
| com.helger.xml.microdom | |
| com.helger.xml.microdom.serialize | |
| com.helger.xml.microdom.util |
| Modifier and Type | Interface and Description |
|---|---|
interface |
IMicroAttributeContainer<IMPLTYPE extends IMicroAttributeContainer<IMPLTYPE>>
Interface for objects having attributes.
|
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 |
AbstractMicroNodeWithChildren.findFirstChild(Predicate<? super IMicroNode> aFilter) |
IMicroNode |
AbstractMicroNode.findFirstChild(Predicate<? super IMicroNode> aFilter) |
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 |
|---|---|
protected com.helger.commons.collection.impl.ICommonsList<IMicroNode> |
AbstractMicroNodeWithChildren.directGetAllChildren() |
com.helger.commons.collection.impl.ICommonsList<IMicroNode> |
IMicroNode.getAllChildren()
Get a list of all direct child nodes.
|
com.helger.commons.collection.impl.ICommonsList<IMicroNode> |
AbstractMicroNodeWithChildren.getAllChildren() |
com.helger.commons.collection.impl.ICommonsList<IMicroNode> |
AbstractMicroNode.getAllChildren() |
default com.helger.commons.collection.impl.ICommonsList<IMicroNode> |
IMicroNode.getAllChildrenRecursive()
Recursively get all children.
|
com.helger.commons.collection.impl.ICommonsIterable<IMicroNode> |
AbstractMicroNodeWithChildren.getChildren() |
com.helger.commons.collection.impl.ICommonsIterable<IMicroNode> |
AbstractMicroNode.getChildren() |
| Modifier and Type | Method and Description |
|---|---|
default void |
IMicroNode.appendChildren(IMicroNode... aChildren)
Append multiple children to the node at once.
|
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 com.helger.commons.state.EChange |
AbstractMicroNodeWithChildren.onRemoveChild(IMicroNode aChildNode) |
protected com.helger.commons.state.EChange |
AbstractMicroNode.onRemoveChild(IMicroNode aChild)
Callback when a child is removed.
|
com.helger.commons.state.EChange |
IMicroNode.removeChild(IMicroNode aChild)
Remove the passed child.
|
com.helger.commons.state.EChange |
AbstractMicroNode.removeChild(IMicroNode aChild) |
default com.helger.commons.state.EChange |
IMicroNode.replaceChild(IMicroNode aOldChild,
IMicroNode aNewChild)
Replace the passed old child with the new child.
|
| Modifier and Type | Method and Description |
|---|---|
default void |
IMicroNode.appendChildren(Iterable<? extends IMicroNode> aChildren)
Append multiple children to the node at once.
|
default boolean |
IMicroNode.containsAnyChild(Predicate<? super IMicroNode> aFilter)
Check if any direct child matching the provided filter is contained.
|
boolean |
AbstractMicroNodeWithChildren.containsAnyChild(Predicate<? super IMicroNode> aFilter) |
static IMicroContainer |
MicroContainer.createWithClones(Iterable<? extends IMicroNode> aChildNodes)
Create a new
IMicroContainer that contains clones of all passed
nodes |
IMicroNode |
AbstractMicroNodeWithChildren.findFirstChild(Predicate<? super IMicroNode> aFilter) |
IMicroNode |
AbstractMicroNode.findFirstChild(Predicate<? super IMicroNode> aFilter) |
<DSTTYPE> DSTTYPE |
AbstractMicroNodeWithChildren.findFirstChildMapped(Predicate<? super IMicroNode> aFilter,
Function<? super IMicroNode,? extends DSTTYPE> aMapper) |
<DSTTYPE> DSTTYPE |
AbstractMicroNodeWithChildren.findFirstChildMapped(Predicate<? super IMicroNode> aFilter,
Function<? super IMicroNode,? extends DSTTYPE> aMapper) |
<DSTTYPE> DSTTYPE |
AbstractMicroNode.findFirstChildMapped(Predicate<? super IMicroNode> aFilter,
Function<? super IMicroNode,? extends DSTTYPE> aMapper) |
<DSTTYPE> DSTTYPE |
AbstractMicroNode.findFirstChildMapped(Predicate<? super IMicroNode> aFilter,
Function<? super IMicroNode,? extends DSTTYPE> aMapper) |
void |
AbstractMicroNodeWithChildren.forAllChildren(Consumer<? super IMicroNode> aConsumer) |
void |
AbstractMicroNode.forAllChildren(Consumer<? super IMicroNode> aConsumer) |
void |
AbstractMicroNodeWithChildren.forAllChildren(Predicate<? super IMicroNode> aFilter,
Consumer<? super IMicroNode> aConsumer) |
void |
AbstractMicroNodeWithChildren.forAllChildren(Predicate<? super IMicroNode> aFilter,
Consumer<? super IMicroNode> aConsumer) |
void |
AbstractMicroNode.forAllChildren(Predicate<? super IMicroNode> aFilter,
Consumer<? super IMicroNode> aConsumer) |
void |
AbstractMicroNode.forAllChildren(Predicate<? super IMicroNode> aFilter,
Consumer<? super IMicroNode> aConsumer) |
com.helger.commons.state.EContinue |
AbstractMicroNodeWithChildren.forAllChildrenBreakable(Function<? super IMicroNode,com.helger.commons.state.EContinue> aConsumer) |
com.helger.commons.state.EContinue |
AbstractMicroNode.forAllChildrenBreakable(Function<? super IMicroNode,com.helger.commons.state.EContinue> aConsumer) |
<DSTTYPE> void |
AbstractMicroNodeWithChildren.forAllChildrenMapped(Predicate<? super IMicroNode> aFilter,
Function<? super IMicroNode,? extends DSTTYPE> aMapper,
Consumer<? super DSTTYPE> aConsumer) |
<DSTTYPE> void |
AbstractMicroNodeWithChildren.forAllChildrenMapped(Predicate<? super IMicroNode> aFilter,
Function<? super IMicroNode,? extends DSTTYPE> aMapper,
Consumer<? super DSTTYPE> aConsumer) |
<DSTTYPE> void |
AbstractMicroNode.forAllChildrenMapped(Predicate<? super IMicroNode> aFilter,
Function<? super IMicroNode,? extends DSTTYPE> aMapper,
Consumer<? super DSTTYPE> aConsumer) |
<DSTTYPE> void |
AbstractMicroNode.forAllChildrenMapped(Predicate<? super IMicroNode> aFilter,
Function<? super IMicroNode,? extends DSTTYPE> aMapper,
Consumer<? super DSTTYPE> aConsumer) |
| 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 byte[] |
MicroWriter.getNodeAsBytes(IMicroNode aNode)
Convert the passed micro node to an XML byte array using
XMLWriterSettings.DEFAULT_XML_SETTINGS. |
static byte[] |
MicroWriter.getNodeAsBytes(IMicroNode aNode,
IXMLWriterSettings aSettings)
Convert the passed micro node to an XML byte array using the provided
settings.
|
static String |
MicroWriter.getNodeAsString(IMicroNode aNode)
Convert the passed micro node to an XML string using
XMLWriterSettings.DEFAULT_XML_SETTINGS. |
static String |
MicroWriter.getNodeAsString(IMicroNode aNode,
IXMLWriterSettings aSettings)
Convert the passed micro node to an XML string using the provided settings.
|
static com.helger.commons.state.ESuccess |
MicroWriter.writeToFile(IMicroNode aNode,
File aFile)
Write a Micro Node to a file using the default settings.
|
static com.helger.commons.state.ESuccess |
MicroWriter.writeToFile(IMicroNode aNode,
File aFile,
IXMLWriterSettings aSettings)
Write a Micro Node to a file.
|
static com.helger.commons.state.ESuccess |
MicroWriter.writeToFile(IMicroNode aNode,
Path aPath)
Write a Micro Node to a file using the default settings.
|
static com.helger.commons.state.ESuccess |
MicroWriter.writeToFile(IMicroNode aNode,
Path aPath,
IXMLWriterSettings aSettings)
Write a Micro Node to a file.
|
static com.helger.commons.state.ESuccess |
MicroWriter.writeToStream(IMicroNode aNode,
OutputStream aOS)
Write a Micro Node to an output stream using the default settings.
|
static com.helger.commons.state.ESuccess |
MicroWriter.writeToStream(IMicroNode aNode,
OutputStream aOS,
IXMLWriterSettings aSettings)
Write a Micro Node to an
OutputStream. |
static com.helger.commons.state.ESuccess |
MicroWriter.writeToWriter(IMicroNode aNode,
Writer aWriter)
Write a Micro Node to a
Writer using the default
XMLWriterSettings.DEFAULT_XML_SETTINGS. |
static com.helger.commons.state.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,
com.helger.commons.hierarchy.IChildrenProvider<T> aChildrenProvider,
com.helger.commons.hierarchy.visit.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 |
|---|---|
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,
com.helger.commons.hierarchy.visit.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,
com.helger.commons.hierarchy.visit.IHierarchyVisitorCallback<? super IMicroNode> aCallback)
Iterate the passed node and invoke the callback for all child nodes.
|
| Constructor and Description |
|---|
MicroRecursiveIterator(IMicroNode aNode) |
Copyright © 2014–2018 Philip Helger. All rights reserved.