/** * Get the QName in Clark notation, that is "{uri}local" if in a namespace, or "local" otherwise * * @return the name in Clark notation */ public final String getClarkName() { return qName.getClarkName(); }
/** * Get the initial mode for the transformation * @return the initial mode, as a name in Clark format */ public String getInitialMode() { return initialMode.getClarkName(); }
/** * Get the initial mode for the transformation * @return the initial mode, as a name in Clark format */ public String getInitialMode() { return initialMode.getClarkName(); }
/** * Get the name in Clark notation, that is "{uri}local" if in a namespace, or "local" otherwise */ public final String getClarkName() { return qName.getClarkName(); }
/** * Get the QName in Clark notation, that is "{uri}local" if in a namespace, or "local" otherwise * * @return the name in Clark notation */ public final String getClarkName() { return qName.getClarkName(); }
/** * Get the name in Clark notation, that is "{uri}local" if in a namespace, or "local" otherwise */ public final String getClarkName() { return qName.getClarkName(); }
/** * Get an identifying key for this function, which incorporates the URI and local part of the * function name plus the arity * @return an identifying key */ public String getIdentificationKey() { return functionName.getClarkName() + '/' + arguments.size(); }
/** * Get an identifying key for this function, which incorporates the URI and local part of the * function name plus the arity * @return an identifying key */ public String getIdentificationKey() { return functionName.getClarkName() + '/' + arguments.size(); }
/** * Create a Properties object holding the serialization properties explicitly declared * within this Serializer object, and not including any defaults taken from the stylesheet or query. * @return a newly-constructed Properties object holding the declared serialization properties. Specifically, * it holds the properties defined explicitly on this Serializer object, and excludes any properties defined * in named or unnamed xsl:output declarations in the stylesheet, or the equivalent in XQuery. */ protected Properties getLocallyDefinedProperties() { Properties props = new Properties(); for (StructuredQName p : properties.keySet()) { String value = properties.get(p); props.setProperty(p.getClarkName(), value); } return props; }
/** * Create a Properties object holding the serialization properties explicitly declared * within this Serializer object, and not including any defaults taken from the stylesheet or query. * @return a newly-constructed Properties object holding the declared serialization properties. Specifically, * it holds the properties defined explicitly on this Serializer object, and excludes any properties defined * in named or unnamed xsl:output declarations in the stylesheet, or the equivalent in XQuery. */ protected Properties getLocallyDefinedProperties() { Properties props = new Properties(); for (StructuredQName p : properties.keySet()) { String value = properties.get(p); props.setProperty(p.getClarkName(), value); } return props; }
/** * Get the Clark form of a name, given its name code or fingerprint * * @param nameCode the integer name code or fingerprint of a name in the name pool * @return the local name if the name is in the null namespace, or "{uri}local" * otherwise. The name is always interned. */ public String getClarkName(int nameCode) { return getUnprefixedQName(nameCode).getClarkName(); }
/** * Get the initial template * @return the name of the initial template, as an expanded name in Clark format if set, or null otherwise * @since 8.7 */ public String getInitialTemplate() { if (initialTemplate == null) { return null; } else { return initialTemplate.getTemplateName().getClarkName(); } }
/** * Get the initial template * @return the name of the initial template, as an expanded name in Clark format if set, or null otherwise * @since 8.7 */ public String getInitialTemplate() { if (initialTemplate == null) { return null; } else { return initialTemplate.getTemplateName().getClarkName(); } }
/** * Get the Clark form of a name, given its name code or fingerprint * * @param nameCode the integer name code or fingerprint of a name in the name pool * @return the local name if the name is in the null namespace, or "{uri}local" * otherwise. The name is always interned. */ public String getClarkName(int nameCode) { return getUnprefixedQName(nameCode).getClarkName(); }
/** * Bind a variable used in an XPath Expression to the XSLVariable element in which it is declared. * This method is provided for use by the XPath parser, and it should not be called by the user of * the API, or overridden, unless variables are to be declared using a mechanism other than the * declareVariable method of this class. * @param qName the name of the variable * @return the resulting variable reference */ public VariableReference bindVariable(StructuredQName qName) throws XPathException { XPathVariable var = (XPathVariable)variables.get(qName); if (var==null) { throw new XPathException("Undeclared variable in XPath expression: $" + qName.getClarkName()); } else { return new VariableReference(var); } }
/** * Get an iterator over all the properties available. The values returned by the iterator * will be of type String, and each string can be supplied as input to the getProperty() * method to retrieve the value of the property. */ public Iterator<String> getProperties() { List<String> list = new ArrayList<>(10); iterateAxis(AxisInfo.ATTRIBUTE).forEach(a -> list.add(NameOfNode.makeName(a).getStructuredQName().getClarkName()) ); return list.iterator(); }
/** * Get an iterator over all the properties available. The values returned by the iterator * will be of type String, and each string can be supplied as input to the getProperty() * method to retrieve the value of the property. */ public Iterator<String> getProperties() { List<String> list = new ArrayList<>(10); iterateAxis(AxisInfo.ATTRIBUTE).forEach(a -> list.add(NameOfNode.makeName(a).getStructuredQName().getClarkName()) ); return list.iterator(); }
@Override protected void setParameter(StructuredQName name, Item value) { evaluator.getUnderlyingQueryContext().setParameterValue (name.getClarkName(), value); }
public boolean isAvailable(StructuredQName functionName, int arity) { String key = functionName.getClarkName(); List<FunctionEntry> functions = index.getFunctions(key); if (functions != null) { for (FunctionEntry fe : functions) { if (arity == -1) { return true; } if (arity >= fe.getMinArgs() && arity <= fe.getMaxArgs()) { return true; } } } return false; }
private Map<String, Object> getXQItemParams() throws XQException, XPathException { GlobalParameterSet paramSet = dqc.getParameters(); Map<String, Object> params = new HashMap<>(paramSet.getNumberOfKeys()); for (StructuredQName qName: paramSet.getKeys()) { String pName = qName.getClarkName(); params.put(pName, itemToXQItem((Item) paramSet.get(qName), this.getXQDataFactory())); } return params; }