/** * Declare the static type of the context item. If this type is declared, and if a context item * is supplied when the query is invoked, then the context item must conform to this type (no * type conversion will take place to force it into this type). * * @param type the required type of the context item */ public void setRequiredContextItemType(ItemType type) { requiredContextItemType = type; env.setRequiredContextItemType(type.getUnderlyingItemType()); }
/** * Declare the static type of the context item. If this type is declared, and if a context item * is supplied when the query is invoked, then the context item must conform to this type (no * type conversion will take place to force it into this type). * @param type the required type of the context item */ public void setRequiredContextItemType(ItemType type) { requiredContextItemType = type; env.setRequiredContextItemType(type.getUnderlyingItemType()); }
/** * Declare the static type of the context item. If this type is declared, and if a context item * is supplied when the query is invoked, then the context item must conform to this type (no * type conversion will take place to force it into this type). * * @param type the required type of the context item */ public void setRequiredContextItemType(ItemType type) { requiredContextItemType = type; env.setRequiredContextItemType(type.getUnderlyingItemType()); }
ItemType t = resolveType(itf, rootNodeType); __log.debug("resolved context item type " + t); staticEnv.setRequiredContextItemType(t);
throw new IllegalArgumentException("Context item type must have no occurrence indicator"); getDefaultStaticQueryContext().setRequiredContextItemType(type.getPrimaryType()); } catch (XPathException err) { throw new IllegalArgumentException(err);
throw new IllegalArgumentException("Context item type must have no occurrence indicator"); getDefaultStaticQueryContext().setRequiredContextItemType(type.getPrimaryType()); } catch (XPathException err) { throw new IllegalArgumentException(err);