public String output(final int offset) { return "(" + attributes.toString() + ")"; }
private void enforceChildLayout(@Nonnull final Attributes attributes, final int childCount) { if (!attributes.isSet("childLayout") && childCount > 0) { throw new RuntimeException("missing childLayout attribute for an element with [" + childCount + "] child " + "elements. Attributes of error element [" + attributes.toString() + "]"); } }
@Override @Nonnull public String output(final int offset) { return StringHelper.whitespace(offset) + "<attributes> (" + getAttributes().toString() + ")"; }
@Override @Nonnull public String output(final int offset) { final StringBuilder builder = new StringBuilder(); builder.append(StringHelper.whitespace(offset)); builder.append("<effects> (").append(getAttributes().toString()).append(')'); for (EffectEventId id : EffectEventId.values()) { builder.append(getCollectionString(id, offset + 1)); } return builder.toString(); }
@Override @Nonnull public String output(final int offset) { String result = StringHelper.whitespace(offset) + "<style> (" + getAttributes().toString() + ")"; if (attributesType != null) { result += "\n" + attributesType.output(offset + 1); } if (interactType != null) { result += "\n" + interactType.output(offset + 1); } if (effectsType != null) { result += "\n" + effectsType.output(offset + 1); } return result; }