home *** CD-ROM | disk | FTP | other *** search
/ Borland JBuilder 6 / jbuilder6.iso / IBM VisualAge for Java Enterprise v4.0 Retail / ivj40 / setup / IDE.Cab / F83915_TreeFactoryTreeCDATASection.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-07-14  |  1.8 KB  |  45 lines

  1. package com.ibm.xml.parser.util;
  2.  
  3. import com.ibm.xml.parser.Child;
  4. import com.ibm.xml.parser.TXCDATASection;
  5. import java.util.Enumeration;
  6. import javax.swing.tree.TreeNode;
  7.  
  8. public class TreeFactory$TreeCDATASection extends TXCDATASection implements TreeNode {
  9.    public TreeFactory$TreeCDATASection(String var1) {
  10.       super(var1);
  11.    }
  12.  
  13.    public Enumeration children() {
  14.       return null;
  15.    }
  16.  
  17.    public boolean getAllowsChildren() {
  18.       return false;
  19.    }
  20.  
  21.    public TreeNode getChildAt(int var1) {
  22.       return null;
  23.    }
  24.  
  25.    public int getChildCount() {
  26.       return 0;
  27.    }
  28.  
  29.    public int getIndex(TreeNode var1) {
  30.       return -1;
  31.    }
  32.  
  33.    public TreeNode getParent() {
  34.       return (TreeNode)((Child)this).getParentNode();
  35.    }
  36.  
  37.    public boolean isLeaf() {
  38.       return true;
  39.    }
  40.  
  41.    public String toString() {
  42.       return ((TreeFactory)((Child)this).getFactory()).convertValueToText(this);
  43.    }
  44. }
  45.