Package cdc.util.data
Class AbstractContentNode
- java.lang.Object
-
- cdc.util.data.AbstractChild
-
- cdc.util.data.AbstractContentNode
-
-
Field Summary
-
Fields inherited from interface cdc.util.data.Node
ANY_NODE, ELEMENT_NAME_AND_ATTRIBUTES_COMPARATOR, ELEMENT_NAME_COMPARATOR, IS_COMMENT, IS_ELEMENT, IS_IGNORABLE_TEXT, IS_PURE_ELEMENT, IS_TEXT
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractContentNode(Parent parent, String content)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappendContent(char[] str, int offset, int len)voidappendContent(CharSequence cs, int start, int end)voidappendContent(String text)voidclearContent()booleandeepEquals(Node node)Return true when this node and its descendants equals other node hierarchy.StringgetContent()voidsetContent(String content)-
Methods inherited from class cdc.util.data.AbstractChild
clone, equals, getDocument, getParent, getRootElement, hashCode, resetParent, setParent, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface cdc.util.data.Child
clone, detach, getIndex, getParent, getParent, getRootChild, setIndex, setParent
-
Methods inherited from interface cdc.util.data.Node
getDocument, getQName, getRootElement, getType
-
-
-
-
Method Detail
-
setContent
public final void setContent(String content)
-
clearContent
public final void clearContent()
-
appendContent
public final void appendContent(String text)
-
appendContent
public final void appendContent(CharSequence cs, int start, int end)
-
appendContent
public final void appendContent(char[] str, int offset, int len)
-
getContent
public final String getContent()
-
deepEquals
public final boolean deepEquals(Node node)
Description copied from interface:NodeReturn true when this node and its descendants equals other node hierarchy.Parents are ignored.
- Specified by:
deepEqualsin interfaceNode- Parameters:
node- The other node to compare.- Returns:
- True when this node and other node have same hierarchies.
-
-