protected void declareNamespacesForStartElement() throws XPathException { for (int i = namespacesSize - countStack[depth - 1]; i < namespacesSize; i++) { nextReceiver.namespace(namespaces[i], 0); } }
/** * Notify a namespace. Namespaces are notified <b>after</b> the startElement event, and before * any children for the element. The namespaces that are reported are only required * to include those that are different from the parent element; however, duplicates may be reported. * A namespace must not conflict with any namespaces already used for element or attribute names. * * @param namespaceBindings the prefix/uri pair representing the namespace binding * @param properties any special properties to be passed on this call */ public void namespace(NamespaceBindingSet namespaceBindings, int properties) throws XPathException { nextReceiver.namespace(namespaceBindings, properties); }
@Override public void replay(Receiver out) throws XPathException { out.namespace(bindings, properties); } }
/** * Signal namespace events for all in-scope namespaces to the current receiver in the pipeline * * @throws XPathException if any downstream error occurs */ protected void declareAllNamespaces() throws XPathException { for (int i = 0; i < namespacesSize; i++) { nextReceiver.namespace(namespaces[i], 0); } }
/** * Copy this node to a given outputter * @param out the Receiver to which the node should be copied * @param copyOptions a selection of the options defined in {@link CopyOptions} * @param locationId If non-zero, identifies the location of the instruction * that requested this copy. If zero, indicates that the location information */ public void copy(/*@NotNull*/ Receiver out, int copyOptions, Location locationId) throws XPathException { out.namespace(nsBinding, ReceiverOptions.REJECT_DUPLICATES); }
@Override public void replay(Receiver out) throws XPathException { out.namespace(bindings, properties); } }
/** * Callback from the superclass ElementCreator to output the namespace nodes * @param context The evaluation context (not used) * @param out The receiver to handle the output */ protected void outputNamespaceNodes(XPathContext context, Receiver out) throws XPathException { if (namespaceCodes != null) { for (int i=0; i<namespaceCodes.length; i++) { out.namespace(namespaceCodes[i], 0); } } }
/** * Notify a namespace. Namespaces are notified <b>after</b> the startElement event, and before * any children for the element. The namespaces that are reported are only required * to include those that are different from the parent element; however, duplicates may be reported. * A namespace must not conflict with any namespaces already used for element or attribute names. * * @param namespaceBindings the prefix/uri pair representing the namespace binding * @param properties any special properties to be passed on this call */ public void namespace(NamespaceBindingSet namespaceBindings, int properties) throws XPathException { nextReceiver.namespace(namespaceBindings, properties); }
/** * Signal namespace events for all in-scope namespaces to the current receiver in the pipeline * * @throws XPathException if any downstream error occurs */ protected void declareAllNamespaces() throws XPathException { for (int i = 0; i < namespacesSize; i++) { nextReceiver.namespace(namespaces[i], 0); } }
@Override public void namespace(NamespaceBindingSet namespaceBindings, int properties) throws XPathException { reciever.namespace(namespaceBindings, properties); }
protected void declareAllNamespaces() throws XPathException { for (int i=0; i<namespacesSize; i++) { nextReceiver.namespace(namespaces[i], 0); } }
protected void declareNamespacesForStartElement() throws XPathException { for (int i=namespacesSize - countStack[depth-1]; i<namespacesSize; i++) { nextReceiver.namespace(namespaces[i], 0); } }
protected void declareAllNamespaces() throws XPathException { for (int i=0; i<namespacesSize; i++) { nextReceiver.namespace(namespaces[i], 0); } }
@Override public void namespace(NamespaceBindingSet namespaceBindings, int properties) throws XPathException { myWrapped.namespace(namespaceBindings, properties); }
@Override public void namespace(NamespaceBindingSet namespaceBindings, int properties) throws XPathException { myWrapped.namespace(namespaceBindings, properties); }
public void addNamespace(String prefix, String uri) { NamespaceBinding nsbind = new NamespaceBinding(prefix, uri); try { receiver.namespace(nsbind, 0); } catch (XPathException e) { throw new XProcException(e); } }
public void processValue(CharSequence value, XPathContext context) throws XPathException { String prefix = evaluatePrefix(context); String uri = value.toString(); checkPrefixAndUri(prefix, uri, context); NamespaceBinding nscode = new NamespaceBinding(prefix, uri); Receiver out = context.getReceiver(); out.namespace(nscode, ReceiverOptions.REJECT_DUPLICATES); }
/** * Handle a namespace */ public void namespace(int namespaceCode, int properties) throws XPathException { int nc = newPool.allocateNamespaceCode(oldPool.getPrefixFromNamespaceCode(namespaceCode), oldPool.getURIFromNamespaceCode(namespaceCode)); nextReceiver.namespace(nc, properties); }
public void processValue(CharSequence value, XPathContext context) throws XPathException { String prefix = evaluatePrefix(context); String uri = value.toString(); checkPrefixAndUri(prefix, uri, context); NamespaceBinding nscode = new NamespaceBinding(prefix, uri); Receiver out = context.getReceiver(); out.namespace(nscode, ReceiverOptions.REJECT_DUPLICATES); }
/** * Handle a namespace */ public void namespace(int namespaceCode, int properties) throws XPathException { int nc = newPool.allocateNamespaceCode(oldPool.getPrefixFromNamespaceCode(namespaceCode), oldPool.getURIFromNamespaceCode(namespaceCode)); nextReceiver.namespace(nc, properties); }