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
Default implementation of the
IMicroContainer interface.- Author:
- Philip Helger
-
Constructor Summary
ConstructorsConstructorDescriptionMicroContainer(IMicroNode... aChildNodes) MicroContainer(Iterable<? extends IMicroNode> aChildNodes) -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 nodesgetClone()getType()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, toStringMethods 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, unregisterEventTargetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.helger.commons.hierarchy.IHasChildren
forAllChildren, forAllChildren, forAllChildrenBreakable, forAllChildrenMapped, getChildCount, getChildren, hasChildren, hasNoChildrenMethods inherited from interface com.helger.commons.hierarchy.IHasChildrenRecursive
forAllChildrenRecursive, forAllChildrenRecursiveMethods inherited from interface com.helger.commons.hierarchy.IHasChildrenSorted
findFirstChild, findFirstChildMapped, getChildAtIndexMethods 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, unregisterEventTargetMethods inherited from interface com.helger.xml.microdom.IMicroNodeWithChildren
getTextContent, getTextContentTrimmed, getTextContentWithConversion
-
Constructor Details
-
MicroContainer
public MicroContainer() -
MicroContainer
-
MicroContainer
-
-
Method Details
-
getType
- Specified by:
getTypein interfaceIMicroNode- Returns:
- The node type. Never
null.
-
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
Description copied from interface:IMicroContainer- Specified by:
getClonein interfacecom.helger.commons.lang.ICloneable<IMicroNode>- Specified by:
getClonein interfaceIMicroContainer- Specified by:
getClonein interfaceIMicroNodeWithChildren
-
createWithClones
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.
-