Package com.adobe.xfa
Class Chars
- java.lang.Object
-
- com.adobe.xfa.Obj
-
- com.adobe.xfa.Node
-
- com.adobe.xfa.Chars
-
-
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, gsXFANamespacePrefix
-
Fields 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
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Node
clone(Element parent)
java.lang.String
getData()
Gets this node's data.java.lang.String
getName()
Gets this node's name.java.lang.String
getText()
Gets this node's text.boolean
isLeaf()
Is this node is a leaf.boolean
isXMLSpace()
Determines if this character data node consists entirely of XML white spaces.static boolean
isXMLSpace(int offset, int length, char[] chars)
void
postSave()
void
preSave(boolean bSaveXMLScript)
void
serialize(java.io.OutputStream sOutFile, DOMSaveOptions options, int level, Node prevSibling)
The helper function used by saveXML()void
setScriptProperty(java.lang.String sPropertyName, Arg propertyValue)
void
setText(java.lang.String text)
Sets 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, validateUsageFailedIsFatal
-
Methods 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
-
-
-
-
Method Detail
-
getData
public java.lang.String getData()
Description copied from class:Node
Gets this node's data.- Overrides:
getData
in classNode
- Returns:
- the data appropriate for the various node types.
- See Also:
Node.getData()
-
getName
public java.lang.String getName()
Gets this node's name.
-
getText
public java.lang.String getText()
Gets this node's text.- Returns:
- the character data text.
-
isLeaf
public boolean isLeaf()
Description copied from class:Node
Is 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)
-
serialize
public void serialize(java.io.OutputStream sOutFile, DOMSaveOptions options, int level, Node prevSibling) throws java.io.IOException
Description copied from class:Node
The helper function used by saveXML()- Specified by:
serialize
in classNode
- Parameters:
sOutFile
- Streamfile to write tooptions
- save optionslevel
- the indent levelprevSibling
- our previous sibling -- needed for some markup options.- Throws:
java.io.IOException
- See Also:
Node.serialize(OutputStream, DOMSaveOptions, int, Node)
-
setScriptProperty
public void setScriptProperty(java.lang.String sPropertyName, Arg propertyValue)
-
setText
public void setText(java.lang.String text)
Sets this node's text.- Parameters:
text
- the text.
-
-