/** Get the string representation of this attribute, implemented as {@link #html()}. @return string */ @Override public String toString() { return html(); }
protected void html(Appendable accum, Document.OutputSettings out) throws IOException { html(key, val, accum, out); }
private void getWholeDeclaration(Appendable accum, Document.OutputSettings out) throws IOException { for (Attribute attribute : attributes()) { if (!attribute.getKey().equals(nodeName())) { // skips coreValue (name) accum.append(' '); attribute.html(accum, out); } } }
/** Get the HTML representation of this attribute; e.g. {@code href="index.html"}. @return HTML */ public String html() { StringBuilder accum = new StringBuilder(); try { html(accum, (new Document("")).outputSettings()); } catch(IOException exception) { throw new SerializationException(exception); } return accum.toString(); }