Package javaforce.awt

Class XMLTree.XMLTag

All Implemented Interfaces:
Serializable, Cloneable, MutableTreeNode, TreeNode
Enclosing class:
XMLTree

public class XMLTree.XMLTag extends DefaultMutableTreeNode
See Also:
  • Field Details

    • name

      public String name
    • attrs

      public ArrayList<XMLTree.XMLAttr> attrs
    • uname

      public String uname
    • content

      public String content
    • isSingle

      public boolean isSingle
      Tag is a singleton
    • isNotLeaf

      public boolean isNotLeaf
    • isLeaf

      public boolean isLeaf
    • isReadOnly

      public boolean isReadOnly
  • Constructor Details

    • XMLTag

      public XMLTag()
      Constructs a new XMLTag
  • Method Details

    • toString

      public String toString()
      Returns the unique name of the tag.
      Overrides:
      toString in class DefaultMutableTreeNode
    • getParent

      public XMLTree.XMLTag getParent()
      Returns the parent of the tag. This method just overrides the default method but returns XMLTag.
      Specified by:
      getParent in interface TreeNode
      Overrides:
      getParent in class DefaultMutableTreeNode
    • isLeaf

      public boolean isLeaf()
      Returns true if the node is a leaf. This method just overrides the default method and allows better leaf control.
      Specified by:
      isLeaf in interface TreeNode
      Overrides:
      isLeaf in class DefaultMutableTreeNode
    • getName

      public String getName()
      Returns a unique name for this node.
    • setName

      public void setName(String newName)
      Sets the name for this node.
    • getChildAt

      public XMLTree.XMLTag getChildAt(int index)
      Returns the child tag at index. This method just overrides the default method but returns XMLTag.
      Specified by:
      getChildAt in interface TreeNode
      Overrides:
      getChildAt in class DefaultMutableTreeNode
    • getArg

      public String getArg(String name)
      Returns value of argument.
    • setArg

      public void setArg(String name, String value)
      Sets argument to value.
    • getContent

      public String getContent()
      Returns the content of this node.
    • setContent

      public void setContent(String newContent)
      Sets content.