Package com.adobe.xfa
Class Chars
java.lang.Object
com.adobe.xfa.Obj
com.adobe.xfa.Node
com.adobe.xfa.Chars
- All Implemented Interfaces:
Peer
- Direct Known Subclasses:
TextNode
A class to represent the XML character data nodes in the DOM.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.adobe.xfa.Node
Node.ChangeLogger -
Field Summary
Fields inherited from class com.adobe.xfa.Node
CREATE_ALWAYS_NEW, CREATE_IF_NOT_EXIST, CREATE_MUST_NOT_EXIST, CREATE_REPLACE, gsXFANamespacePrefixFields inherited from interface com.adobe.xfa.ut.Peer
ATTR_CHANGED, CHILD_ADDED, CHILD_REMOVED, DESCENDENT_ADDED, DESCENDENT_ATTR_CHANGED, DESCENDENT_REMOVED, DESCENDENT_VALUE_CHANGED, PARENT_CHANGED, PERMS_LOCK_CLEARED, PERMS_LOCK_SET, PROTO_ATTR_CHANGED, PROTO_CHILD_ADDED, PROTO_CHILD_REMOVED, PROTO_DESCENDENT_ADDED, PROTO_DESCENDENT_ATTR_CHANGED, PROTO_DESCENDENT_REMOVED, PROTO_DESCENDENT_VALUE_CHANGED, PROTO_VALUE_CHANGED, UPDATED, VALUE_CHANGED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetData()Gets this node's data.getName()Gets this node's name.getText()Gets this node's text.booleanisLeaf()Is this node is a leaf.booleanDetermines if this character data node consists entirely of XML white spaces.static booleanisXMLSpace(int offset, int length, char[] chars) voidpostSave()voidpreSave(boolean bSaveXMLScript) voidserialize(OutputStream sOutFile, DOMSaveOptions options, int level, Node prevSibling) The helper function used by saveXML()voidsetScriptProperty(String sPropertyName, Arg propertyValue) voidSets this node's text.Methods inherited from class com.adobe.xfa.Node
assignNode, checkAncestorPerms, checkDescendentPerms, checkPerms, cleanDirtyFlags, compareVersions, getAll, getFirstXFAChild, getFirstXMLChild, getFirstXMLChildElement, getIndex, getLastXMLChild, getLocked, getModel, getNextXFASibling, getNextXMLSibling, getNextXMLSiblingElement, getNodeAsXML, getNodes, getOwnerDocument, getPIAsXML, getPIName, getPreviousXMLSibling, getPrivateName, getProperty, getProperty, getPropName, getScriptTable, getSibling, getSOMExpression, getSOMExpression, getSomName, getUniqueSOMName, getWillDirty, getXFAChildCount, getXFAParent, getXfaPeer, getXMLChildCount, getXMLParent, hasChanged, isContainer, isDefault, isDirty, isMapped, isPermsLockSet, isPropertySpecified, isSpecified, isTransient, isTransient, isTransparent, locateChildByClass, locateChildByName, logValueChangeHelper, makeDefault, makeNonDefault, notifyPeers, peekOneOfChild, performSOMAssignment, remove, resolveNode, resolveNode, resolveNode, resolveNodes, resolveNodes, sendMessenge, setDirty, setDocument, setLocked, setMapped, setName, setPermsLock, setPrivateName, setWillDirty, setXfaPeer, unLock, validateSchema, validateUsage, validateUsageFailedIsFatalMethods inherited from class com.adobe.xfa.Obj
addPeer, addPeeredNode, clearPeers, deafen, getClassAtom, getClassName, getClassTag, getPeer, getScriptMethodInfo, getScriptProperty, getScriptThis, invokeFunction, isDeaf, isMute, isSameClass, isSameClass, isSameClass, mute, peerRemoved, removePeer, removePeeredNode, setClass, setClassTag, setScriptProperty, unDeafen, unMute, updateFromPeer
-
Constructor Details
-
Chars
-
Chars
Instantiates a character data node with the given text.- Parameters:
parent- the node's parent, if any.prevSibling- the node's previous sibling, if any.text- the node's text.
-
-
Method Details
-
clone
-
getData
Description copied from class:NodeGets this node's data. -
getName
Gets this node's name. -
getText
Gets this node's text.- Returns:
- the character data text.
-
isLeaf
public boolean isLeaf()Description copied from class:NodeIs this node is a leaf. -
isXMLSpace
public boolean isXMLSpace()Determines if this character data node consists entirely of XML white spaces. In XML, a white space is defined as a space, carriage return, linefeed or tab (i.e. U+0020, U+000A, U+000D, U+0009).- Returns:
- true if this node's text consists entirely of XML whitespace characters, and false otherwise.
-
isXMLSpace
public static boolean isXMLSpace(int offset, int length, char[] chars) -
postSave
public void postSave() -
preSave
public void preSave(boolean bSaveXMLScript) -
serialize
public void serialize(OutputStream sOutFile, DOMSaveOptions options, int level, Node prevSibling) throws IOException Description copied from class:NodeThe helper function used by saveXML()- Specified by:
serializein classNode- Parameters:
sOutFile- Streamfile to write tooptions- save optionslevel- the indent levelprevSibling- our previous sibling -- needed for some markup options.- Throws:
IOException- See Also:
-
setScriptProperty
-
setText
Sets this node's text.- Parameters:
text- the text.
-