Template template = ns.getTemplate(); String prefix = template.getPrefixForNamespace(nsURI); if (prefix == null) {
public String getPrefixForNamespace(String nsURI) { return currentNamespace.getTemplate().getPrefixForNamespace(nsURI); }
public String getPrefixForNamespace(String nsURI) { return currentNamespace.getTemplate().getPrefixForNamespace(nsURI); }
public String getPrefixForNamespace(String nsURI) { return currentNamespace.getTemplate().getPrefixForNamespace(nsURI); }
/** * @return the default node namespace for the current FTL namespace */ public String getDefaultNS() { return currentNamespace.getTemplate().getDefaultNS(); }
/** * @return the namespace URI registered for this prefix, or null. This is based on the mappings registered in the * current namespace. */ public String getNamespaceForPrefix(String prefix) { return currentNamespace.getTemplate().getNamespaceForPrefix(prefix); }
/** * @return the default node namespace for the current FTL namespace */ public String getDefaultNS() { return currentNamespace.getTemplate().getDefaultNS(); }
/** * @return the default node namespace for the current FTL namespace */ public String getDefaultNS() { return currentNamespace.getTemplate().getDefaultNS(); }
/** * Returns the topmost {@link Template}, with other words, the one for which this {@link Environment} was created. * That template will never change, like {@code #include} or macro calls don't change it. This method never returns * {@code null}. * * @see #getCurrentNamespace() * * @since 2.3.22 */ public Template getMainTemplate() { return mainNamespace.getTemplate(); }
/** * @return the namespace URI registered for this prefix, or null. * This is based on the mappings registered in the current namespace. */ public String getNamespaceForPrefix(String prefix) { return currentNamespace.getTemplate().getNamespaceForPrefix(prefix); }
@Override public Template getTemplate() { ensureInitializedRTE(); return super.getTemplate(); }
/** * @return the namespace URI registered for this prefix, or null. This is based on the mappings registered in the * current namespace. */ public String getNamespaceForPrefix(String prefix) { return currentNamespace.getTemplate().getNamespaceForPrefix(prefix); }
@Override public Template getTemplate() { ensureInitializedRTE(); return super.getTemplate(); }
/** * Returns the topmost {@link Template}, with other words, the one for which this {@link Environment} was created. * That template will never change, like {@code #include} or macro calls don't change it. This method never returns * {@code null}. * * @see #getCurrentNamespace() * * @since 2.3.22 */ public Template getMainTemplate() { return mainNamespace.getTemplate(); }
prevParent = getParent(); if (parentReplacementOn) { setParent(currentNamespace.getTemplate()); } else { legacyParent = currentNamespace.getTemplate();
public String getPrefixForNamespace(String nsURI) { return currentNamespace.getTemplate().getPrefixForNamespace(nsURI); }
@Override public Template getTemplate() { ensureInitializedRTE(); return super.getTemplate(); }
/** * @return the default node namespace for the current FTL namespace */ public String getDefaultNS() { return currentNamespace.getTemplate().getDefaultNS(); }
/** * Returns the topmost {@link Template}, with other words, the one for which this {@link Environment} was created. * That template will never change, like {@code #include} or macro calls don't change it. This method never returns * {@code null}. * * @see #getCurrentNamespace() * * @since 2.3.22 */ public Template getMainTemplate() { return mainNamespace.getTemplate(); }
/** * @return the namespace URI registered for this prefix, or null. This is based on the mappings registered in the * current namespace. */ public String getNamespaceForPrefix(String prefix) { return currentNamespace.getTemplate().getNamespaceForPrefix(prefix); }