/* Generated By:JJTree: Do not edit this line. ASTMyNs.java Version 4.3 */
/* JavaCCOptions:MULTI=true,NODE_USES_PARSER=false,VISITOR=true,TRACK_TOKENS=false,NODE_PREFIX=AST,NODE_EXTENDS=,NODE_FACTORY=,SUPPORT_CLASS_VISIBILITY_PUBLIC=true */
package eu.dnetlib.data.collective.transformation.rulelanguage.parser;

/**
 * @author jochen
 *
 */
public class ASTMyNs extends SimpleNode {

	private String nsPrefix;
	private String nsUri;

	public ASTMyNs(int id) {
		super(id);
	}

	public ASTMyNs(FtScript p, int id) {
		super(p, id);
	}


	/** Accept the visitor. **/
	public Object jjtAccept(FtScriptVisitor visitor, Object data) {
		return visitor.visit(this, data);
	}

	public void setNsDeclaration(String aNsPrefix, String aNsUri){
		this.nsPrefix = aNsPrefix;
		this.nsUri = aNsUri.substring( (aNsUri.indexOf("\"") + 1), aNsUri.lastIndexOf("\"") );
	}

	public String getNsPrefix(){
		return this.nsPrefix;
	}
	
	public String getNsUri(){
		return this.nsUri;
	}

}
/* JavaCC - OriginalChecksum=9d6d617b7c3f22f3603fcbd13f738170 (do not edit this line) */
