protected void addBinding(XmlNamespaceBinding binding) { bindings = bindings.add(binding); }
public void addBindings(XmlNamespaceContext ctx) { bindings = this.bindings.add(ctx); }
/** Create a new context with the given bindings added. Existing bindings will not be overwritten. */ public XmlNamespaceContext add(XmlNamespaceBinding... bindings) { return add($(bindings)); }
/** Create a new context with the given bindings added. Existing bindings will not be overwritten. */ public XmlNamespaceContext add(XmlNamespaceContext bindings) { if (bindings.prefixToUri.size() == DEFAULT_BINDINGS) { // bindings contains only the default bindings return this; } else { return add($(bindings.getBindings())); } }