1 19 package org.netbeans.tax.decl; 20 21 import java.util.*; 22 import org.netbeans.tax.*; 23 24 public class SequenceType extends ChildrenType { 25 26 30 public SequenceType (Collection types) { 31 super (types); 32 } 33 34 public SequenceType () { 35 super (); 36 } 37 38 public SequenceType (SequenceType sequenceType) { 39 super (sequenceType); 40 } 41 42 43 47 49 public Object clone () { 50 return new SequenceType (this); 51 } 52 53 57 59 public String toString () { 60 Iterator it = getTypes ().iterator (); 61 StringBuffer sb = new StringBuffer (); 62 while (it.hasNext ()) { 63 TreeElementDecl.ContentType next = (TreeElementDecl.ContentType) it.next (); 64 sb.append (", ").append (next.toString ()); } 66 if (sb.length () > 0) sb.delete (0,2); 67 68 return "( " + sb.toString () + " )" + getMultiplicity (); } 70 71 73 public String getName () { 74 return Util.THIS.getString ("NAME_SEQUENCE") + getMultiplicity (); 75 } 76 77 79 public String getSeparator () { 80 return ","; } 82 83 } 84 | Popular Tags |