1 22 23 28 29 package org.xquark.xquery.parser; 30 31 import org.xquark.xquery.typing.TypeException; 32 33 34 public class CData extends XQueryExpression implements Cloneable { 35 private static final String RCSRevision = "$Revision: 1.5 $"; 36 private static final String RCSName = "$Name: $"; 37 38 protected String data = null; 40 41 45 public void accept(ParserVisitor visitor) throws XQueryException { 46 visitor.visit(this); 47 } 48 49 53 public CData(String data, XQueryModule parentModule) throws TypeException, XQueryException { 54 setCData(data); 55 setParentModule(parentModule); 56 if (parentModule != null && parentModule.getStaticContext().getTypeVisitor() != null) 57 accept(parentModule.getStaticContext().getTypeVisitor()); 58 } 59 60 64 public String getCData() { 65 return data; 66 } 67 68 public void setCData(String data) throws XQueryException { 69 this.data = data; 70 } 71 72 } 73 | Popular Tags |