public final class MicroComment extends AbstractMicroNode implements IMicroComment
IMicroComment interface.| Constructor and Description |
|---|
MicroComment(char[] aChars,
int nOfs,
int nLen) |
MicroComment(CharSequence sText) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendData(char cChar)
Append a character to the string.
|
void |
appendData(char[] aChars,
int nOfs,
int nLen)
Append characters to the string.
|
void |
appendData(CharSequence sData)
Append characters to the string.
|
IMicroComment |
getClone() |
CharSequence |
getData() |
String |
getNodeName() |
String |
getNodeValue() |
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.
|
void |
prependData(char cChar)
Add a character to the beginning of the current data.
|
void |
prependData(char[] aChars,
int nOfs,
int nLen)
Add characters to the beginning of the current data.
|
void |
prependData(CharSequence sData)
Add characters to the beginning of the current data.
|
void |
setData(CharSequence sData)
Change the character sequence.
|
String |
toString() |
appendCDATA, appendCDATA, appendCDATAWithConversion, appendChild, appendComment, appendComment, appendCommentWithConversion, appendContainer, appendElement, appendElement, appendEntityReference, appendIgnorableWhitespaceText, appendIgnorableWhitespaceText, appendProcessingInstruction, appendText, appendText, appendTextWithConversion, detachFromParent, getAllChildren, getAllChildrenRecursive, getAllEventTargets, getAllEventTargets, getChildAtIndex, getChildCount, getFirstChild, getLastChild, getNextSibling, getParent, getParentElementWithName, getParentElementWithName, getPreviousSibling, hasChildren, hasParent, insertAfter, insertAtIndex, insertBefore, isCDATA, isComment, isContainer, isDocument, isDocumentType, isElement, isEntityReference, isProcessingInstruction, isText, onAppendChild, onEvent, onInsertAfter, onInsertAtIndex, onInsertBefore, onRemoveAllChildren, onRemoveChild, onRemoveChildAtIndex, registerEventTarget, removeAllChildren, removeChild, removeChildAtIndex, replaceChild, unregisterEventTargetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitappendCDATA, 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, 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 MicroComment(@Nonnull char[] aChars, @Nonnegative int nOfs, @Nonnegative int nLen)
public MicroComment(@Nullable CharSequence sText)
@Nonnull public EMicroNodeType getType()
getType in interface IMicroNodenull.@Nonnull @Nonempty public String getNodeName()
getNodeName in interface IMicroNode@Nonnull public String getNodeValue()
getNodeValue in interface IMicroNodeIMicroText,
IMicroComment and IMicroEntityReference.@Nonnull public CharSequence getData()
getData in interface IMicroDataAwarenull
.public void appendData(@Nullable CharSequence sData)
IMicroDataAwareappendData in interface IMicroDataAwaresData - The characters to be appended.public void appendData(@Nonnull char[] aChars, @Nonnegative int nOfs, @Nonnegative int nLen)
IMicroDataAwareappendData in interface IMicroDataAwareaChars - Base character array. May not be null.nOfs - Offset to start copying. Must be ≥ 0.nLen - Number of chars to take. Must be ≥ 0.public void appendData(char cChar)
IMicroDataAwareappendData in interface IMicroDataAwarecChar - The character to appendpublic void prependData(@Nullable CharSequence sData)
IMicroDataAwareprependData in interface IMicroDataAwaresData - The characters to be added at the front.public void prependData(@Nonnull char[] aChars, @Nonnegative int nOfs, @Nonnegative int nLen)
IMicroDataAwareprependData in interface IMicroDataAwareaChars - Base character array. May not be null.nOfs - Offset to start copying. Must be ≥ 0.nLen - Number of chars to take. Must be ≥ 0.public void prependData(char cChar)
IMicroDataAwareprependData in interface IMicroDataAwarecChar - The character to preprendpublic void setData(@Nullable CharSequence sData)
IMicroDataAwaresetData in interface IMicroDataAwaresData - The new character sequence to be set.@Nonnull public IMicroComment getClone()
IMicroCommentgetClone in interface ICloneable<IMicroNode>getClone in interface IMicroCommentpublic boolean isEqualContent(@Nullable IMicroNode o)
IMicroNodeisEqualContent in interface IMicroNodeo - 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 AbstractMicroNodeCopyright © 2014–2016 Philip Helger. All rights reserved.