1   package ch.ige.edossier.transfer.vo;
2   
3   import java.io.Serializable;
4   import java.sql.Date;
5   import java.util.ArrayList;
6   import java.util.List;
7   import ch.ige.edossier.web.vo.ImageVO;
8   
9   /**
10   * B32.03 - eDossier-Interceptions - Diplomarbeit an der Software-Schule Schweiz<br>
11   * Value-Object: Kapselt die Daten der Tabelle Schutit und ihre Beziehungen
12   * <p>
13   * Copyright (c) 2004, Eidgenössisches Institut für Geistiges Eigentum
14   * @author    Anita Rueegsegger, Marc Bouquet
15   * @version   $Id: SchutitVO.java,v 1.8 2004/11/01 13:52:24 ruegsegger Exp $
16   */
17  public class SchutitVO implements Serializable
18  {
19    // Tabelle SCHUTIT
20    public int schutitKey = 0;
21    public String gesuchNr = "";
22    public String schutitNr = "";
23    public int sprache = 0;
24    public String beschreibung = "";
25    public Date schutzBegin = null;
26    public String ihrZeichen = "";
27  
28    // Tabelle MAR
29    public int marTyp = 0;
30  
31    // Tabelle MAVERS
32    public String farbAnspr = "";
33  
34    // Tabelle IMAGE
35    public ImageVO imageVO;
36  
37    // Tabelle REGADR
38    public List alRegAdrVO = new ArrayList();
39  
40    // Tabelle PRIORITAET
41    public List alPrioritaetVO = new ArrayList();
42  
43    // Tabelle MARART
44    public List alMarart = new ArrayList();
45  
46    /**
47     * Gibt den Inhalt des ValueObject SchutitVO zurück
48     * @return Inhalt von SchutitVO
49     */
50    public String toString()
51    {
52      StringBuffer buf = new StringBuffer();
53      StringBuffer tmp = new StringBuffer();
54  
55      buf.append( "  schutitKey    = <" + this.schutitKey + "> \n" );
56      buf.append( "  gesuchNr      = <" + this.gesuchNr + "> \n" );
57      buf.append( "  schutitNr     = <" + this.schutitNr + "> \n" );
58      buf.append( "  sprache       = <" + this.sprache + "> \n" );
59      buf.append( "  beschreibung  = <" + this.beschreibung + "> \n" );
60  
61      if( schutzBegin == null )
62      {
63        buf.append( "  schutzBegin   = null \n" );
64      }
65      else
66      {
67        buf.append( "  schutzBegin   = <" + this.schutzBegin + ">\n" );
68  
69      }
70      buf.append( "  ihrZeichen    = <" + this.ihrZeichen + "> \n" );
71      buf.append( "  marTyp        = <" + this.marTyp + "> \n" );
72      buf.append( "  farbAnspr     = <" + this.farbAnspr + "> \n" );
73  
74      // RegAdrVO
75      if( alRegAdrVO == null || alRegAdrVO.size() == 0 )
76      {
77        buf.append( "  alRegAdrVO         = <keine>\n" );
78      }
79      else
80      {
81        tmp = new StringBuffer();
82  
83        for( int i = 0; i < alRegAdrVO.size(); i++ )
84        {
85          tmp.append( alRegAdrVO.get( i ).toString() + "\n" );
86        }
87        buf.append( "  alRegAdrVO         \n" + tmp.toString() );
88      }
89  
90      // PrioritaetVO
91      if( alPrioritaetVO == null || alPrioritaetVO.size() == 0 )
92      {
93        buf.append( "  alPrioritaetVO      = <keine>\n" );
94      }
95      else
96      {
97        tmp = new StringBuffer();
98  
99        for( int i = 0; i < alPrioritaetVO.size(); i++ )
100       {
101         tmp.append( alPrioritaetVO.get( i ).toString() + "\n" );
102       }
103       buf.append( "  alPrioritaetVO     \n" + tmp.toString() );
104     }
105 
106     // Marart
107     if( alMarart == null || alMarart.size() == 0 )
108     {
109       buf.append( "  alMarart          = <keine>\n" );
110     }
111     else
112     {
113       tmp = new StringBuffer();
114 
115       for( int i = 0; i < alMarart.size(); i++ )
116       {
117         tmp.append( alMarart.get( i ).toString() + "\n" );
118       }
119       buf.append( "  alMarart     \n" + tmp.toString() );
120     }
121 
122     return buf.toString();
123   }
124 }
125