/[cashew-s-editor]/cashews/src/nongnu/cashews/language/process/MultiPerform.java
ViewVC logotype

Diff of /cashews/src/nongnu/cashews/language/process/MultiPerform.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by gnu_andrew, Wed May 4 22:14:05 2005 UTC revision 1.3 by gnu_andrew, Fri May 6 10:26:51 2005 UTC
# Line 21  Line 21 
21    
22  package nongnu.cashews.language.process;  package nongnu.cashews.language.process;
23    
24    import java.util.ArrayList;
25  import java.util.List;  import java.util.List;
26    
27  import nongnu.cashews.xml.Xmlizable;  import nongnu.cashews.xml.Xmlizable;
# Line 45  public abstract class MultiPerform Line 46  public abstract class MultiPerform
46     */     */
47    private List<MultiPerformElement> content;    private List<MultiPerformElement> content;
48    
49      /**
50       * Construct a new <code>MultiPerform</code> construct.
51       */
52      public MultiPerform()
53      {
54        content = new ArrayList<MultiPerformElement>();
55      }
56    
57      /**
58       * Adds a new <code>MultiPerformElement</code> to the content of
59       * this <code>MultiPerform</code>.
60       *
61       * @param element the element to add.
62       * @return <code>true</code> if the element was added.
63       */
64      public boolean add(MultiPerformElement element)
65      {
66        if (element == null)
67          return false;
68        content.add(element);
69        return true;
70      }
71    
72      /**
73       * Returns a <code>String</code> representation of this
74       * <code>MultiPerform</code>.
75       *
76       * @return a textual representation.
77       */
78      public String toString()
79      {
80        return getClass().getName() +
81          "[content=" +
82          content +
83          "]";
84      }
85    
86  }  }
87    

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26