XFA4J

com.adobe.xfa
Class Packet

java.lang.Object
  extended by com.adobe.xfa.Obj
      extended by com.adobe.xfa.Node
          extended by com.adobe.xfa.Element
              extended by com.adobe.xfa.Packet

public final class Packet
extends Element

A class to represent the children of the XFA app model that are not otherwise represented by a model.


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
 
Method Summary
 java.lang.String getContent()
          Gets this packet's content.
 Node getFirstXFAChild()
          Gets this element's first child that is an XFA node.
 java.lang.String getName()
          Gets this packet's name.
 void setContent(java.lang.String sContent)
          Sets this packet's content.
 
Methods inherited from class com.adobe.xfa.Element
appendChild, assignNode, getAttr, getAttribute, getElement, getFirstXMLChild, getInstalledLocale, getLastXMLChild, getModel, getNodes, getNS, getNumAttrs, getPrefix, getText, getXFAChild, getXMLChild, isInstalledLocaleAmbient, loadXML, saveXML, setAttribute, setAttribute, setAttribute, setLocalName, setName, setNS, setQName
 
Methods inherited from class com.adobe.xfa.Node
checkAncestorPerms, checkDescendentPerms, checkPerms, cleanDirtyFlags, compareVersions, getData, getDynamicScriptProp, getNextXFASibling, getNextXMLSibling, getOwnerDocument, getPreviousXMLSibling, getSOMExpression, getXFAChildCount, getXFAParent, getXMLChildCount, getXMLParent, hasChanged, remove, resolveNode, resolveNode, resolveNodes, setNextXMLSibling, setPermsLock, setXMLParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getContent

public java.lang.String getContent()
Gets this packet's content. If this packet has content, return it. Note that for packets that contain XML content, this should return an empty string.

Returns:
the packet content. If this packet has text content, the text is returned. Note that for packets that contain XML content, an empty string is returned.

getName

public java.lang.String getName()
Gets this packet's name.

Overrides:
getName in class Element
Returns:
the name of the element.

getFirstXFAChild

public Node getFirstXFAChild()
Gets this element's first child that is an XFA node.

Overrides:
getFirstXFAChild in class Element
Returns:
null -- the children of packet nodes are not exposed.

setContent

public void setContent(java.lang.String sContent)
Sets this packet's content.

Parameters:
sContent - the text content value.

XFA4J

© 2005 Adobe Systems Incorporated. All Rights Reserved.