public final class MicroDocument extends AbstractMicroNodeWithChildren implements IMicroDocument
IMicroDocument interface.| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEFAULT_STANDALONE
By default a document is not standalone
|
| Constructor and Description |
|---|
MicroDocument() |
MicroDocument(IMicroDocumentType aDocType) |
| Modifier and Type | Method and Description |
|---|---|
IMicroDocument |
getClone() |
IMicroDocumentType |
getDocType() |
IMicroElement |
getDocumentElement() |
String |
getNodeName() |
EMicroNodeType |
getType() |
boolean |
isEqualContent(IMicroNode o)
As instances of this class may not implement equals/hashCode we need a way
to determine, if 2 nodes are equal by content.
|
boolean |
isStandalone() |
protected void |
onAppendChild(AbstractMicroNode aChildNode)
Callback that is invoked once a child is to be appended.
|
void |
setStandalone(boolean bIsStandalone)
Change the standalone state of this document.
|
String |
toString() |
getAllChildren, getAllChildrenRecursive, getChildAtIndex, getChildCount, getFirstChild, getLastChild, getTextContent, getTextContentWithConversion, hasChildren, onInsertAfter, onInsertAtIndex, onInsertBefore, onRemoveAllChildren, onRemoveChild, onRemoveChildAtIndexappendCDATA, appendCDATA, appendCDATAWithConversion, appendChild, appendComment, appendComment, appendCommentWithConversion, appendContainer, appendElement, appendElement, appendEntityReference, appendIgnorableWhitespaceText, appendIgnorableWhitespaceText, appendProcessingInstruction, appendText, appendText, appendTextWithConversion, detachFromParent, getAllEventTargets, getAllEventTargets, getNextSibling, getParent, getParentElementWithName, getParentElementWithName, getPreviousSibling, hasParent, insertAfter, insertAtIndex, insertBefore, isCDATA, isComment, isContainer, isDocument, isDocumentType, isElement, isEntityReference, isProcessingInstruction, isText, onEvent, registerEventTarget, removeAllChildren, removeChild, removeChildAtIndex, replaceChild, unregisterEventTargetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetTextContent, getTextContentTrimmed, getTextContentWithConversionappendCDATA, appendCDATA, appendCDATA, appendCDATAWithConversion, appendChild, appendComment, appendComment, appendComment, appendCommentWithConversion, appendContainer, appendElement, appendElement, appendEntityReference, appendIgnorableWhitespaceText, appendIgnorableWhitespaceText, appendIgnorableWhitespaceText, appendProcessingInstruction, appendText, appendText, appendText, appendTextWithConversion, detachFromParent, getAllChildren, getAllChildrenRecursive, getAllEventTargets, getAllEventTargets, getFirstChild, getLastChild, getNextSibling, getNodeValue, getParent, getParentElementWithName, getParentElementWithName, getPreviousSibling, hasChildren, hasParent, insertAfter, insertAtIndex, insertBefore, isCDATA, isComment, isContainer, isDocument, isDocumentType, isElement, isEntityReference, isProcessingInstruction, isText, registerEventTarget, removeAllChildren, removeChild, removeChildAtIndex, replaceChild, unregisterEventTargetgetChildAtIndexgetChildCount, hasNoChildrenpublic static final boolean DEFAULT_STANDALONE
public MicroDocument()
public MicroDocument(@Nullable IMicroDocumentType aDocType)
@Nonnull public EMicroNodeType getType()
getType in interface IMicroNodenull.public String getNodeName()
getNodeName in interface IMicroNodeprotected void onAppendChild(@Nonnull AbstractMicroNode aChildNode)
AbstractMicroNodeonAppendChild in class AbstractMicroNodeWithChildrenaChildNode - The appended child node.public boolean isStandalone()
isStandalone in interface IMicroDocumenttrue if the document is standalone, false
if not. The default value is false.public void setStandalone(boolean bIsStandalone)
IMicroDocumentsetStandalone in interface IMicroDocumentbIsStandalone - The new value. true for standalone, false
if not.@Nullable public IMicroDocumentType getDocType()
getDocType in interface IMicroDocumentnull.@Nullable public IMicroElement getDocumentElement()
getDocumentElement in interface IMicroDocumentnull.@Nonnull public IMicroDocument getClone()
IMicroDocumentgetClone in interface ICloneable<IMicroNode>getClone in interface IMicroDocumentgetClone in interface IMicroNodeWithChildrenpublic boolean isEqualContent(@Nullable IMicroNode o)
IMicroNodeisEqualContent in interface IMicroNodeisEqualContent in class AbstractMicroNodeWithChildreno - The node to compare to this.true if the nodes are of the same type and the same
content, false otherwise.public String toString()
toString in class AbstractMicroNodeWithChildrenCopyright © 2014–2016 Philip Helger. All rights reserved.