@Override @Nonnull public String output(final int offset) { return StringHelper.whitespace(offset) + "<registerMusic> " + super.output(offset); }
@Override @Nonnull public String output(final int offset) { return StringHelper.whitespace(offset) + "<registerMouseCursor> " + super.output(offset); }
@Override @Nonnull public String output(final int offset) { return StringHelper.whitespace(offset) + "<useStyle> " + super.output(offset); }
@Override @Nonnull public String output(final int offset) { return StringHelper.whitespace(offset) + "<useControls> " + super.output(offset); }
@Override @Nonnull public String output(final int offset) { return StringHelper.whitespace(offset) + "<value> " + super.output(offset); } }
@Override @Nonnull public String output(final int offset) { return StringHelper.whitespace(offset) + "<registerEffect> " + super.output(offset); }
@Override @Nonnull public String output(final int offset) { return StringHelper.whitespace(offset) + "<resourceBundle> " + super.output(offset); }
@Override @Nonnull public String output(final int offset) { return StringHelper.whitespace(offset) + "<hover> " + super.output(offset); }
@Override @Nonnull public String output(final int offset) { return StringHelper.whitespace(offset) + "<interact> " + super.output(offset); }
@Override @Nonnull public String output(final int offset) { return StringHelper.whitespace(offset) + "<registerSound> " + super.output(offset); }
@Nonnull public static String out( final int offset, @Nonnull final Collection<? extends XmlBaseType> collection, final String message) { if (collection.isEmpty()) { return StringHelper.whitespace(offset) + "no children " + message; } StringBuilder result = new StringBuilder(); result.append(StringHelper.whitespace(offset)); result.append("children "); result.append(message); result.append(": "); result.append(collection.size()); for (XmlBaseType type : collection) { result.append("\n"); result.append(type.output(offset + 1)); } return result.toString(); } }
private void debugOutputLayerElements( @Nonnull final String regexpElement, @Nonnull final String regexpAttribute, @Nonnull StringBuffer result, @Nonnull List<Element> layers) { for (int i = 0; i < layers.size(); i++) { Element layer = layers.get(i); String layerType = " +"; if (!layer.isVisible()) { layerType = " -"; } result.append("\n").append(layerType).append(getIdText(layer)).append("\n").append(StringHelper.whitespace (layerType.length())).append(layer.getElementStateString(StringHelper.whitespace(layerType.length()), regexpAttribute)); result.append(outputElement(layer, " ", regexpElement, regexpAttribute)); } }
@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) { return StringHelper.whitespace(offset) + "<screen> " + super.output(offset) + "\n" + CollectionLogger.out(offset + 1, layers, "layers"); }
@Override @Nonnull public String output(final int offset) { return StringHelper.whitespace(offset) + "<attributes> (" + getAttributes().toString() + ")"; }
@Nonnull private String getCollectionString(@Nonnull final EffectEventId effectId, final int offset) { if (!effects.isSet(effectId)) { return ""; } StringBuilder builder = new StringBuilder(); for (EffectType effect : effects.get(effectId)) { if (builder.length() > 0) { builder.append('\n'); } builder.append(StringHelper.whitespace(offset)).append('<').append(effectId.name()).append("> "); builder.append(effect.output(offset)); if (effect.getStyleId() != null) { builder.append(" [").append(effect.getStyleId()).append(']'); } } return builder.toString(); }
@Nonnull public String outputElement( @Nonnull final Element w, @Nonnull final String offset, @Nonnull final String regexpElement, @Nonnull final String regexpAttribute) { StringBuilder result = new StringBuilder(); List<Element> wwElements = w.getChildren(); for (int i = 0; i < wwElements.size(); i++) { Element ww = wwElements.get(i); String elementId = getIdText(ww); if (elementId.matches(regexpElement)) { result.append("\n").append(offset).append(elementId).append(" ").append(ww.getElementType().getClass() .getSimpleName()).append(" childLayout [").append(ww.getElementType().getAttributes().get("childLayout")) .append("]"); result.append("\n").append(StringHelper.whitespace(offset.length())).append(ww.getElementStateString (StringHelper.whitespace(offset.length()), regexpAttribute)); result.append(outputElement(ww, offset + " ", ".*", regexpAttribute)); } else { result.append(outputElement(ww, offset + " ", regexpElement, regexpAttribute)); } } return result.toString(); }
@Override @Nonnull public String output(final int offset) { String result = StringHelper.whitespace(offset) + tagName + " [element] " + super.output(offset); result += "\n" + interact.output(offset + 1); result += "\n" + effects.output(offset + 1); result += "\n" + CollectionLogger.out(offset + 1, elements, "elements"); return result; }
@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; }