~coolers/cool/cool-trunk

« back to all changes in this revision

Viewing changes to src/main/java/net/praqma/clearcase/ucm/entities/Stream.java

  • Committer: wolfgang
  • Date: 2011-03-11 09:50:03 UTC
  • Revision ID: chw@praqma.net-20110311095003-lt7o1mcifzhjx1s8
Added default target to Streams

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
        /* Stream specific fields */
18
18
        private ArrayList<Baseline> recommendedBaselines = null;
19
19
        private Project project                          = null;
 
20
        private Stream defaultTarget                     = null;
20
21
        
21
22
        
22
23
        Stream()
57
58
        {
58
59
                String[] data = context.LoadStream( this ).split( UCM.delim );
59
60
                
60
 
                /* name::project */
61
 
                this.project = UCMEntity.GetProject( data[1] );
 
61
                /* name::project::target_stream */
 
62
                this.project       = UCMEntity.GetProject( data[1] );
 
63
                this.defaultTarget = UCMEntity.GetStream( data[2] );
62
64
                
63
65
                this.loaded = true;
64
66
        }
144
146
                return this.project;
145
147
        }
146
148
        
 
149
        /**
 
150
         * This method returns the default Stream the given Stream will deliver to.
 
151
         * @return A Stream
 
152
         * @throws UCMException 
 
153
         */
 
154
        public Stream getDefaultTarget() throws UCMException
 
155
        {
 
156
                if( !this.loaded ) Load();
 
157
                return this.defaultTarget;
 
158
        }
 
159
        
147
160
        public String Stringify() throws UCMException
148
161
        {
149
162
                if( !this.loaded ) Load();