public List operate(Object node) { if (node instanceof Element) return Collections.singletonList(((Element) node).getQualifiedName()); else if (node instanceof Attribute) return Collections.singletonList(((Attribute) node).getQualifiedName()); // With 2.1 semantics it makes more sense to just return a null and let the core // throw an InvalidReferenceException and the template writer can use ?exists etcetera. (JR) return null; // throw new TemplateModelException("_qname can not be applied on " + node.getClass()); } }
public void output(Attribute attribute, Writer out) throws IOException { out.write(" "); out.write(attribute.getQualifiedName()); out.write("="); out.write("\""); out.write(escapeAttributeEntities(attribute.getValue())); out.write("\""); } }
public String getAttributeName(int index) { return decodeAttribute(((Attribute) currentElement.getAttributes().get(index)).getQualifiedName()); }
Attribute attribute = (Attribute) node; sw.write(" "); sw.write(attribute.getQualifiedName()); sw.write("=\""); sw.write(OUTPUT.escapeAttributeEntities(attribute.getValue()));
protected List<Attribute> sortAttributes(List attributes) throws IOException { List<Attribute> sortedAttributes = new ArrayList<>(attributes); sortedAttributes.sort((o1, o2) -> o1.getQualifiedName().compareTo(o2.getQualifiedName())); return sortedAttributes; }
public List operate(Object node) { if (node instanceof Element) return Collections.singletonList(((Element) node).getQualifiedName()); else if (node instanceof Attribute) return Collections.singletonList(((Attribute) node).getQualifiedName()); // With 2.1 semantics it makes more sense to just return a null and let the core // throw an InvalidReferenceException and the template writer can use ?exists etcetera. (JR) return null; // throw new TemplateModelException("_qname can not be applied on " + node.getClass()); } }
public List operate(Object node) { if (node instanceof Element) return Collections.singletonList(((Element) node).getQualifiedName()); else if (node instanceof Attribute) return Collections.singletonList(((Attribute) node).getQualifiedName()); // With 2.1 semantics it makes more sense to just return a null and let the core // throw an InvalidReferenceException and the template writer can use ?exists etcetera. (JR) return null; // throw new TemplateModelException("_qname can not be applied on " + node.getClass()); } }
public void output(Attribute attribute, Writer out) throws IOException { out.write(" "); out.write(attribute.getQualifiedName()); out.write("="); out.write("\""); out.write(escapeAttributeEntities(attribute.getValue())); out.write("\""); } }
public void output(Attribute attribute, Writer out) throws IOException { out.write(" "); out.write(attribute.getQualifiedName()); out.write("="); out.write("\""); out.write(escapeAttributeEntities(attribute.getValue())); out.write("\""); } }
public void output(Attribute attribute, Writer out) throws IOException { out.write(" "); out.write(attribute.getQualifiedName()); out.write("="); out.write("\""); out.write(escapeAttributeEntities(attribute.getValue())); out.write("\""); } }
public void output(Attribute attribute, Writer out) throws IOException { out.write(" "); out.write(attribute.getQualifiedName()); out.write("="); out.write("\""); out.write(escapeAttributeEntities(attribute.getValue())); out.write("\""); } }
@Override public String getAttributeName(final int index) { return decodeAttribute(((Attribute)currentElement.getAttributes().get(index)).getQualifiedName()); }
public String getAttributeName(int index) { return decodeAttribute(((Attribute) currentElement.getAttributes().get(index)).getQualifiedName()); }
public String getAttributeName(int index) { return decodeAttribute(((Attribute) currentElement.getAttributes().get(index)).getQualifiedName()); }
public String getAttributeName(int index) { return unescapeXmlName(((Attribute) currentElement.getAttributes().get(index)).getQualifiedName()); }
public String getAttributeName(int index) { return decodeAttribute(((Attribute) currentElement.getAttributes().get(index)).getQualifiedName()); }
public String getAttributeName(int index) { return unescapeXmlName(((Attribute) currentElement.getAttributes().get(index)).getQualifiedName()); }
public String getAttributeName(int index) { return unescapeXmlName(((Attribute) currentElement.getAttributes().get(index)).getQualifiedName()); }
public String getAttributeName(int index) { return decodeAttribute(((Attribute) currentElement.getAttributes().get(index)).getQualifiedName()); }
public List operate(Object node) { if (node instanceof Element) return Collections12.singletonList(((Element)node).getQualifiedName()); else if (node instanceof Attribute) return Collections12.singletonList(((Attribute)node).getQualifiedName()); // With 2.1 semantics it makes more sense to just return a null and let the core // throw an InvalidReferenceException and the template writer can use ?exists etcetera. (JR) return null; // throw new TemplateModelException("_qname can not be applied on " + node.getClass()); } }