1 23 24 package org.xquark.xquery.typing; 25 26 import java.util.List ; 27 28 import org.xquark.xquery.parser.XQueryException; 29 30 public class QTypeSequence extends QTypePrime implements QTypeVisitable { 31 private static final String RCSRevision = "$Revision: 1.3 $"; 32 private static final String RCSName = "$Name: $"; 33 34 List list = null; 35 36 public QTypeSequence(List list) { 37 super(list,SEQUENCE); 38 setList(list); 39 subclass = SEQUENCE; 40 this.occurence = OCC_1_1; 42 } 43 public QTypeSequence(List list, byte occurence) { 44 super(list,SEQUENCE); 45 setList(list); 46 subclass = SEQUENCE; 47 this.occurence = occurence; 49 } 50 51 55 public void accept(QTypeVisitor visitor) throws XQueryException { 56 visitor.visit(this); 57 } 58 59 public List getList() { 61 return list; 62 } 63 64 private void setList(List list) { 65 this.list = list; 67 } 68 69 public Object clone() throws CloneNotSupportedException { 71 QTypeSequence newObj = new QTypeSequence(list,occurence); 72 return newObj; 73 } 74 public String toSimpleString() { 76 return "QTypeSequence(" + list + ")"; 77 } 78 79 public String toString() { 80 return "QTypeSequence(" + list + ")"; 81 } 82 83 } 84 | Popular Tags |