AbstractAttribute extends AbstractTagBase { protected String getWffPrintStructure() { final String attributeValue = this.attributeValue; String result = ""; beforeWffPrintStructure(); final StringBuilder attrBuilder = new StringBuilder(); attrBuilder.append(attributeName); if (attributeValue != null) { attrBuilder.append(new char[] { '=' }).append(attributeValue); result = StringBuilderUtil.getTrimmedString(attrBuilder); } else if (attributeValueMap != null && attributeValueMap.size() > 0) { attrBuilder.append(new char[] { '=' }); final Set<Entry<String, String>> entrySet = getAttributeValueMap() .entrySet(); for (final Entry<String, String> entry : entrySet) { attrBuilder.append(entry.getKey()).append(':') .append(entry.getValue()).append(';'); } result = StringBuilderUtil.getTrimmedString(attrBuilder); } else if (attributeValueSet != null && attributeValueSet.size() > 0) { attrBuilder.append(new char[] { '=' }); for (final String each : getAttributeValueSet()) { attrBuilder.append(each).append(' '); } result = StringBuilderUtil.getTrimmedString(attrBuilder); } else { result = attrBuilder.toString(); } return result; } AbstractAttribute(); protected  AbstractAttribute(final boolean nullableAttrValueMapValue); String toWffString(); String getAttributeName(); @Override String toHtmlString(); byte[] toCompressedBytesByIndex(final boolean rebuild); byte[] toCompressedBytesByIndex(final boolean rebuild,
            final Charset charset); @Override String toHtmlString(final Charset charset); @Override String toHtmlString(final String charset); @Override String toHtmlString(final boolean rebuild); @Override String toHtmlString(final boolean rebuild, final Charset charset); @Override String toHtmlString(final boolean rebuild, final String charset); @Override String toString(); String getAttributeValue(); @Deprecated AbstractHtml getOwnerTag(); AbstractHtml[] getOwnerTags(); void setOwnerTag(final AbstractHtml ownerTag); boolean unsetOwnerTag(final AbstractHtml ownerTag); @Override void setModified(final boolean modified); Charset getCharset(); void setCharset(final Charset charset); void addValueChangeListener(
            final AttributeValueChangeListener valueChangeListener); void removeValueChangeListener(
            final AttributeValueChangeListener valueChangeListener); Set<AttributeValueChangeListener> getValueChangeListeners();  }
@Test public void testGetWffPrintStructure() { ClassAttribute classAttribute = new ClassAttribute( "cl1 cl2 cl3 cl-col-4"); System.out.println(classAttribute.getWffPrintStructure()); assertEquals("class=cl1 cl2 cl3 cl-col-4", classAttribute.getWffPrintStructure()); Style style = new Style("color:green;background:blue"); assertEquals("style=color:green;background:blue;", style.getWffPrintStructure()); Name name = new Name("somename"); assertEquals("name=somename", name.getWffPrintStructure()); }