public Object exec(List arguments) throws TemplateModelException { if (arguments.size() != 2) { throw new TemplateModelException("_registerNamespace(prefix, uri) requires two arguments"); } registerNamespace((String) arguments.get(0), (String) arguments.get(1)); return TemplateScalarModel.EMPTY_STRING; }
/** * Registers a namespace prefix-URI pair for subsequent use in {@link * #get(String)} as well as for use in XPath expressions. * @param prefix the namespace prefix to use for the namespace * @param uri the namespace URI that identifies the namespace. */ public void registerNamespace(String prefix, String uri) { if (namespaces.isShared()) { namespaces = (Namespaces) namespaces.clone(); } namespaces.registerNamespace(prefix, uri); }
public Object exec(List arguments) throws TemplateModelException { if (arguments.size() != 2) { throw new TemplateModelException("_registerNamespace(prefix, uri) requires two arguments"); } registerNamespace((String) arguments.get(0), (String) arguments.get(1)); return TemplateScalarModel.EMPTY_STRING; }
public Object exec(List arguments) throws TemplateModelException { if (arguments.size() != 2) { throw new TemplateModelException("_registerNamespace(prefix, uri) requires two arguments"); } registerNamespace((String) arguments.get(0), (String) arguments.get(1)); return TemplateScalarModel.EMPTY_STRING; }
public Object exec(List arguments) throws TemplateModelException { if (arguments.size() != 2) { throw new TemplateModelException("_registerNamespace(prefix, uri) requires two arguments"); } registerNamespace((String)arguments.get(0), (String)arguments.get(1)); return TemplateScalarModel.EMPTY_STRING; }
/** * Registers a namespace prefix-URI pair for subsequent use in {@link * #get(String)} as well as for use in XPath expressions. * @param prefix the namespace prefix to use for the namespace * @param uri the namespace URI that identifies the namespace. */ public void registerNamespace(String prefix, String uri) { if(namespaces.isShared()) { namespaces = (Namespaces)namespaces.clone(); } namespaces.registerNamespace(prefix, uri); }
/** * Registers a namespace prefix-URI pair for subsequent use in {@link * #get(String)} as well as for use in XPath expressions. * @param prefix the namespace prefix to use for the namespace * @param uri the namespace URI that identifies the namespace. */ public void registerNamespace(String prefix, String uri) { if (namespaces.isShared()) { namespaces = (Namespaces) namespaces.clone(); } namespaces.registerNamespace(prefix, uri); }
/** * Registers a namespace prefix-URI pair for subsequent use in {@link * #get(String)} as well as for use in XPath expressions. * @param prefix the namespace prefix to use for the namespace * @param uri the namespace URI that identifies the namespace. */ public void registerNamespace(String prefix, String uri) { if (namespaces.isShared()) { namespaces = (Namespaces) namespaces.clone(); } namespaces.registerNamespace(prefix, uri); }