Package com.helger.xml.microdom
Class MicroContainer
- java.lang.Object
-
- com.helger.xml.microdom.AbstractMicroNode
-
- com.helger.xml.microdom.AbstractMicroNodeWithChildren
-
- com.helger.xml.microdom.MicroContainer
-
- All Implemented Interfaces:
com.helger.commons.hierarchy.IHasChildren<IMicroNode>,com.helger.commons.hierarchy.IHasChildrenRecursive<IMicroNode>,com.helger.commons.hierarchy.IHasChildrenSorted<IMicroNode>,com.helger.commons.hierarchy.IHasParent<IMicroNode>,com.helger.commons.lang.ICloneable<IMicroNode>,IMicroContainer,IMicroNode,IMicroNodeWithChildren,Serializable
public final class MicroContainer extends AbstractMicroNodeWithChildren implements IMicroContainer
Default implementation of theIMicroContainerinterface.- Author:
- Philip Helger
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MicroContainer()MicroContainer(IMicroNode... aChildNodes)MicroContainer(Iterable<? extends IMicroNode> aChildNodes)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IMicroContainercreateWithClones(IMicroNode... aChildNodes)Create a newIMicroContainerthat contains clones of all passed nodesstatic IMicroContainercreateWithClones(Iterable<? extends IMicroNode> aChildNodes)Create a newIMicroContainerthat contains clones of all passed nodesIMicroContainergetClone()StringgetNodeName()EMicroNodeTypegetType()-
Methods inherited from class com.helger.xml.microdom.AbstractMicroNodeWithChildren
containsAnyChild, directGetAllChildren, findFirstChild, findFirstChildMapped, forAllChildren, forAllChildren, forAllChildrenBreakable, forAllChildrenMapped, getAllChildren, getChildAtIndex, getChildCount, getChildren, getFirstChild, getLastChild, getTextContent, getTextContentWithConversion, hasChildren, isEqualContent, onAppendChild, onInsertAfter, onInsertAtIndex, onInsertBefore, onRemoveAllChildren, onRemoveChild, onRemoveChildAtIndex, toString
-
Methods inherited from class com.helger.xml.microdom.AbstractMicroNode
appendChild, detachFromParent, findParentElement, getAllEventTargets, getAllEventTargets, getNextSibling, getParent, getPreviousSibling, hasParent, insertAfter, insertAtIndex, insertBefore, internalResetParentNode, internalSetParentNode, internalTriggerEvent, isCDATA, isComment, isContainer, isDocument, isDocumentType, isElement, isEntityReference, isProcessingInstruction, isText, onEvent, registerEventTarget, removeAllChildren, removeChild, removeChildAtIndex, unregisterEventTarget
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.helger.commons.hierarchy.IHasChildren
forAllChildren, forAllChildren, forAllChildrenBreakable, forAllChildrenMapped, getChildCount, getChildren, hasChildren, hasNoChildren
-
Methods inherited from interface com.helger.commons.hierarchy.IHasChildrenRecursive
forAllChildrenRecursive, forAllChildrenRecursive
-
Methods inherited from interface com.helger.commons.hierarchy.IHasChildrenSorted
findFirstChild, findFirstChildMapped, getChildAtIndex
-
Methods inherited from interface com.helger.xml.microdom.IMicroNode
appendCDATA, appendCDATA, appendCDATA, appendCDATAWithConversion, appendChild, appendChildren, appendChildren, appendComment, appendComment, appendComment, appendCommentWithConversion, appendContainer, appendElement, appendElement, appendEntityReference, appendIgnorableWhitespaceText, appendIgnorableWhitespaceText, appendIgnorableWhitespaceText, appendProcessingInstruction, appendText, appendText, appendText, appendTextWithConversion, containsAnyChild, detachFromParent, findParentElement, getAllChildren, getAllChildrenRecursive, getAllEventTargets, getAllEventTargets, getFirstChild, getLastChild, getNextSibling, getNodeValue, getParent, getParentElementWithName, getParentElementWithName, getPreviousSibling, hasParent, insertAfter, insertAtIndex, insertBefore, isCDATA, isComment, isContainer, isDocument, isDocumentType, isElement, isEntityReference, isEqualContent, isProcessingInstruction, isText, registerEventTarget, removeAllChildren, removeChild, removeChildAtIndex, replaceChild, unregisterEventTarget
-
Methods inherited from interface com.helger.xml.microdom.IMicroNodeWithChildren
getTextContent, getTextContentTrimmed, getTextContentWithConversion
-
-
-
-
Constructor Detail
-
MicroContainer
public MicroContainer()
-
MicroContainer
public MicroContainer(@Nullable IMicroNode... aChildNodes)
-
MicroContainer
public MicroContainer(@Nullable Iterable<? extends IMicroNode> aChildNodes)
-
-
Method Detail
-
getType
@Nonnull public EMicroNodeType getType()
- Specified by:
getTypein interfaceIMicroNode- Returns:
- The node type. Never
null.
-
getNodeName
@Nonnull public String getNodeName()
- Specified by:
getNodeNamein interfaceIMicroNode- Returns:
- Just an abstract name that depends on the implementing class. For
IMicroElementnodes this is the same as the tag name.
-
getClone
@Nonnull public IMicroContainer getClone()
Description copied from interface:IMicroContainer- Specified by:
getClonein interfacecom.helger.commons.lang.ICloneable<IMicroNode>- Specified by:
getClonein interfaceIMicroContainer- Specified by:
getClonein interfaceIMicroNodeWithChildren
-
createWithClones
@Nonnull public static IMicroContainer createWithClones(@Nullable IMicroNode... aChildNodes)
Create a newIMicroContainerthat contains clones of all passed nodes- Parameters:
aChildNodes- The micro node array to add to theIMicroContainer- Returns:
- The created
IMicroContainerand nevernull.
-
createWithClones
@Nonnull public static IMicroContainer createWithClones(@Nullable Iterable<? extends IMicroNode> aChildNodes)
Create a newIMicroContainerthat contains clones of all passed nodes- Parameters:
aChildNodes- The micro node container to add to theIMicroContainer- Returns:
- The created
IMicroContainerand nevernull.
-
-