summaryrefslogtreecommitdiffstats
path: root/Master/Reference Architectures and Patterns/hjp5/examples/Auto5.java
blob: 75a6d3247b78ce5d8e48d227bab848fc7edd3030 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/* Auto5.java */

public class Auto5
implements SimpleTreeNode
{
  public String name;
  public int    erstzulassung;
  public int    leistung;

  private SimpleTreeNode treenode = new DefaultTreeNode("");

  public void addChild(SimpleTreeNode child)
  {
    treenode.addChild(child);
  }

  public int getChildCnt()
  {
    return treenode.getChildCnt();
  }

  public SimpleTreeNode getChild(int pos)
  {
    return treenode.getChild(pos);
  }

  public String toString()
  {
    return name;
  }
}