Package cdc.util.data
Class Text
- java.lang.Object
-
- cdc.util.data.AbstractChild
-
- cdc.util.data.AbstractContentNode
-
- cdc.util.data.Text
-
public final class Text extends AbstractContentNode
Text node.It has a text content and can be attached to a Document or Element.
- Author:
- Damien Carbonne
-
-
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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TextappendContent(char[] str, int offset, int len)TextappendContent(CharSequence cs, int start, int end)TextappendContent(String content)TextclearContent()Textclone(boolean recurse)Return a clone of this node.TextKindgetKind()StringgetQName()NodeTypegetType()booleanisCData()booleanisIgnorable()booleanisStandard()TextsetContent(String content)TextsetIndex(int to)Set the index of this child.TextsetKind(TextKind kind)TextsetParent(Parent parent)Sets or changes the parent of this child.-
Methods inherited from class cdc.util.data.AbstractContentNode
deepEquals, getContent
-
Methods inherited from class cdc.util.data.AbstractChild
equals, getDocument, getParent, getRootElement, hashCode, resetParent, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface cdc.util.data.Child
detach, getIndex, getParent, getParent, getRootChild
-
Methods inherited from interface cdc.util.data.Node
getDocument, getRootElement
-
-
-
-
Method Detail
-
getType
public NodeType getType()
- Returns:
- The node type.
-
clone
public Text clone(boolean recurse)
Description copied from interface:NodeReturn a clone of this node.
-
getQName
public String getQName()
- Returns:
- A string representation of this node. May be used for debug.
-
getKind
public TextKind getKind()
-
isCData
public boolean isCData()
-
isStandard
public boolean isStandard()
-
isIgnorable
public boolean isIgnorable()
-
setParent
public Text setParent(Parent parent)
Description copied from interface:ChildSets or changes the parent of this child.- Specified by:
setParentin interfaceChild- Overrides:
setParentin classAbstractChild- Parameters:
parent- The new parent. May benull.- Returns:
- This object.
-
setIndex
public Text setIndex(int to)
Description copied from interface:ChildSet the index of this child.- Parameters:
to- The new index of this child.- Returns:
- This object.
-
setContent
public Text setContent(String content)
- Overrides:
setContentin classAbstractContentNode
-
clearContent
public Text clearContent()
- Overrides:
clearContentin classAbstractContentNode
-
appendContent
public Text appendContent(String content)
- Overrides:
appendContentin classAbstractContentNode
-
appendContent
public Text appendContent(CharSequence cs, int start, int end)
- Overrides:
appendContentin classAbstractContentNode
-
appendContent
public Text appendContent(char[] str, int offset, int len)
- Overrides:
appendContentin classAbstractContentNode
-
-