/******************************************************************************* | |
* Copyright (c) 2009 Jesper Moller, and others | |
* All rights reserved. This program and the accompanying materials | |
* are made available under the terms of the Eclipse Public License v1.0 | |
* which accompanies this distribution, and is available at | |
* http://www.eclipse.org/legal/epl-v10.html | |
* | |
* Contributors: | |
* Jesper Moller - initial API and implementation | |
*******************************************************************************/ | |
package org.eclipse.wst.xml.xpath2.api; | |
import javax.xml.namespace.QName; | |
import org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition; | |
/** | |
* @since 2.0 | |
*/ | |
public interface StaticVariableResolver { | |
/** | |
* Is the variable present in the current context. | |
* | |
* @param name Variable name | |
* @return Availability of the variable | |
*/ | |
boolean isVariablePresent(QName name); | |
/** | |
* @param name | |
* @return | |
*/ | |
TypeDefinition getVariableType(QName name); | |
/** | |
* @param name | |
* @return | |
*/ | |
short getVariableOccurrence(QName name); | |
public static final short OPTIONAL = 0; | |
public static final short ONE = 1; | |
public static final short ANY = 2; | |
public static final short MANY = 3; | |
} |