use of org.eclipse.wst.xml.xpath2.processor.internal.function.ConstructorFL in project webtools.sourceediting by eclipse.
the class DefaultStaticContext method make_atomic.
/**
* Creates an atomic from a specific type name initialized with a default
* value.
*
* @param name
* name of type to create
* @return Atomic type of desired type.
*/
public AnyAtomicType make_atomic(QName name) {
String ns = name.namespace();
if (!_functions.containsKey(ns))
return null;
FunctionLibrary fl = (FunctionLibrary) _functions.get(ns);
if (!(fl instanceof ConstructorFL))
return null;
ConstructorFL cfl = (ConstructorFL) fl;
return cfl.atomic_type(name);
}
use of org.eclipse.wst.xml.xpath2.processor.internal.function.ConstructorFL in project webtools.sourceediting by eclipse.
the class SeqType method make_atomic.
private AnyAtomicType make_atomic(StaticContext sc, QName qname) {
String ns = qname.namespace();
Map functionLibraries = sc.getFunctionLibraries();
if (!functionLibraries.containsKey(ns))
return null;
FunctionLibrary fl = (FunctionLibrary) functionLibraries.get(ns);
if (!(fl instanceof ConstructorFL))
return null;
ConstructorFL cfl = (ConstructorFL) fl;
return cfl.atomic_type(qname);
}
Aggregations