Search in sources :

Example 1 with SimpleAtomicItemTypeImpl

use of org.eclipse.wst.xml.xpath2.processor.internal.types.SimpleAtomicItemTypeImpl in project webtools.sourceediting by eclipse.

the class AbstractPsychoPathTest method setVariable.

protected void setVariable(String name, ResultSequence values) {
    if (useNewApi) {
        staticContextBuilder.withVariable(new javax.xml.namespace.QName(name), new SimpleAtomicItemTypeImpl(BuiltinTypeLibrary.XS_ANYATOMICTYPE, ItemType.OCCURRENCE_NONE_OR_MANY));
        dynamicContextBuilder.withVariable(new javax.xml.namespace.QName(name), values);
    } else {
        dynamicContext.set_variable(new QName(name), values);
    }
}
Also used : QName(org.eclipse.wst.xml.xpath2.processor.internal.types.QName) SimpleAtomicItemTypeImpl(org.eclipse.wst.xml.xpath2.processor.internal.types.SimpleAtomicItemTypeImpl)

Aggregations

QName (org.eclipse.wst.xml.xpath2.processor.internal.types.QName)1 SimpleAtomicItemTypeImpl (org.eclipse.wst.xml.xpath2.processor.internal.types.SimpleAtomicItemTypeImpl)1