1 22 23 24 package org.xquark.xquery.parser; 25 26 import org.xquark.xquery.typing.TypeException; 27 28 29 public class AttributeTest extends XQueryExpression implements Cloneable { 30 31 private static final String RCSRevision = "$Revision: 1.8 $"; 32 private static final String RCSName = "$Name: $"; 33 34 protected SchemaContextPath schemaContextPath = null; 35 protected QName elementQName = null; 36 protected QName typeQName = null; 37 38 42 public void accept(ParserVisitor visitor) throws XQueryException { 43 visitor.visit(this); 44 } 45 46 50 public AttributeTest(SchemaContextPath scp, QName elementQName, QName typeQName, XQueryModule parentModule) throws TypeException, XQueryException { 51 setSchemaContextPath(scp); 52 setElementQName(elementQName); 53 setTypeQName(typeQName); 54 setParentModule(parentModule); 55 if (parentModule != null && parentModule.getStaticContext().getTypeVisitor() != null) 56 accept(parentModule.getStaticContext().getTypeVisitor()); 57 } 58 59 63 public SchemaContextPath getSchemaContextPath() { return schemaContextPath; } 64 public void setSchemaContextPath(SchemaContextPath schemaContextPath) { 65 this.schemaContextPath = schemaContextPath ; 66 } 67 68 public QName getDeclQName() { return elementQName; } 69 public void setElementQName(QName elementQName) { 70 this.elementQName = elementQName ; 71 } 72 73 public QName getTypeQName() { return typeQName; } 74 public void setTypeQName(QName typeQName) { 75 this.typeQName = typeQName ; 76 } 77 78 } 79 80 81 82 | Popular Tags |