Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: com/the/test/Test2Impl.java


1   package com.the.test;
2   import java.util.*;
3   import java.math.*;
4   import java.sql.*;
5   import com.gopas.rt.util.*;
6   import com.gopas.rt.model.*;
7   public class Test2Impl extends Test2Core
8   {
9     public Test2Impl() 
10    {
11      super();
12    }
13    public Test2Impl(Object uid) 
14    {
15      super(uid);
16    }
17    public Test2Impl(Object uid, int status) 
18    {
19      super(uid, status);
20    }
21    public Test2Impl(Object uid, int status, TypeDesc typeDesc) 
22    {
23      super(uid, status, typeDesc);
24    }
25    public String toString() {
26      StringBuffer buf = new StringBuffer(); 
27      //
28      buf.append("uid = " + getUid()); 
29      buf.append(" / project = " + getProject());
30      buf.append(" / name = " + getName()); 
31      buf.append(" / deleted = " + isObjectDeleted()); 
32      buf.append(" / modified = " + isObjectModified()); 
33      //
34      boolean gui = getAttrAttr2().isValidGui(); 
35      buf.append(" / [attr2 = " + getAttr2() + 
36                 " / isValidGui = " + gui); 
37      getAttrAttr2().setValidGui(!gui); 
38      buf.append(" / hiddenVal = " + getAttr2() + " ]"); 
39      getAttrAttr2().setValidGui(gui); 
40      //
41      if (getValTest1() != null) {
42        buf.append(" / [valTest1 = " + getValTest1().getUid() + 
43                   " projektid = " + getValTest1().getProject() + 
44                   " name = (" + getValTest1().getName() + ")" + 
45                   " ]"); 
46      } else { 
47        buf.append(" / [valTest1 = null]"); 
48      }
49      if (getValEntity() != null) {
50        buf.append(" / [ValEntity = " + getValEntity().getUid() + 
51                   " projektid = " + getValEntity().getProject() +
52                   " name = (" + getValEntity().getName() + ")" +  
53                   " ]"); 
54      } else { 
55        buf.append(" / [ValEntity = null]"); 
56      }
57      Iterator iter = null; 
58      buf.append(" {" + getValAggrEntity().size() + "}("); 
59      iter = getValAggrEntity().listIterator(); 
60      while(iter.hasNext()) {
61        Entity entity = (Entity)iter.next(); 
62        buf.append(" [ValEntity = " + entity.getUid() + 
63                   " projektid = " + entity.getProject() + 
64                   " name = (" + entity.getName() + ")" + 
65                   " ]"); 
66      }
67      buf.append(")"); 
68      //
69      buf.append(" {" + getValAggrTest1().size() + "}("); 
70      iter = getValAggrTest1().listIterator(); 
71      while(iter.hasNext()) {
72        Test1 entity = (Test1)iter.next(); 
73        buf.append(" [ValEntity = " + entity.getUid() + 
74                   " projektid = " + entity.getProject() + 
75                   " name = (" + entity.getName() + ")" + 
76                   " ]"); 
77      }
78      buf.append(")"); 
79      //
80      buf.append(" {" + getValAggrString().size() + "}("); 
81      iter = getValAggrString().listIterator(); 
82      while(iter.hasNext()) {
83        String val = (String)iter.next(); 
84        buf.append("" + val + " / ");
85      }
86      buf.append(")"); 
87      buf.append(" {" + getValAggrBD().size() + "}("); 
88      iter = getValAggrBD().listIterator(); 
89      while(iter.hasNext()) {
90        BigDecimal bd = (BigDecimal)iter.next(); 
91        buf.append("" + bd + " / "); 
92      }
93      buf.append(")"); 
94      //
95      return buf.toString(); 
96    }
97  }