@Test public void testToString() { String string1 = taggedValue.toString(); String string2 = "{id: 1234, value: \"TestValue\", tagDefinition: TestTagDefn}"; assertEquals(string2, string1); }
@Override public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("{"); sb.append("id: " + getId()).append(", "); sb.append("value: \"" + value + "\""); sb.append(", "); sb.append("tagDefinition: " + tagDefinition); if (!getTaggedValues().isEmpty()) { sb.append(", "); sb.append("taggedValues: " + getTaggedValues()); } sb.append("}"); return sb.toString(); }
TaggedValue extends ModelElement { @Override public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("{"); sb.append("id: " + getId()).append(", "); sb.append("value: \"" + value + "\""); sb.append(", "); sb.append("tagDefinition: " + tagDefinition); if (!getTaggedValues().isEmpty()) { sb.append(", "); sb.append("taggedValues: " + getTaggedValues()); } sb.append("}"); return sb.toString(); } }
TaggedValue extends ModelElement { @Override public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("{"); sb.append("id: " + getId()).append(", "); sb.append("value: \"" + value + "\""); sb.append(", "); sb.append("tagDefinition: " + tagDefinition); if (!getTaggedValues().isEmpty()) { sb.append(", "); sb.append("taggedValues: " + getTaggedValues()); } sb.append("}"); return sb.toString(); } TaggedValue(final Identifier id, final List<TaggedValue> taggedValues, final String value,
            final Identifier tagDefinition);  TaggedValue(final List<TaggedValue> taggedValues, final String value, final Identifier tagDefinition);  TaggedValue(final String value, final Identifier tagDefinition); }
TaggedValue extends ModelElement { @Override public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("{"); sb.append("id: " + getId()).append(", "); sb.append("value: \"" + value + "\""); sb.append(", "); sb.append("tagDefinition: " + tagDefinition); if (!getTaggedValues().isEmpty()) { sb.append(", "); sb.append("taggedValues: " + getTaggedValues()); } sb.append("}"); return sb.toString(); } TaggedValue(final Identifier id, final List<TaggedValue> taggedValues, final String value,
            final Identifier tagDefinition);  TaggedValue(final List<TaggedValue> taggedValues, final String value, final Identifier tagDefinition);  TaggedValue(final String value, final Identifier tagDefinition); @Override void accept(final Visitor visitor); Identifier getTagDefinition(); String getValue(); @Override String toString(); }
TaggedValue extends ModelElement { @Override public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("{"); sb.append("id: " + getId()).append(", "); sb.append("value: \"" + value + "\""); sb.append(", "); sb.append("tagDefinition: " + tagDefinition); if (!getTaggedValues().isEmpty()) { sb.append(", "); sb.append("taggedValues: " + getTaggedValues()); } sb.append("}"); return sb.toString(); } TaggedValue(final Identifier id, final List<TaggedValue> taggedValues, final String value,
            final Identifier tagDefinition);  TaggedValue(final List<TaggedValue> taggedValues, final String value, final Identifier tagDefinition);  TaggedValue(final String value, final Identifier tagDefinition); @Override void accept(final Visitor visitor); Identifier getTagDefinition(); String getValue(); @Override String toString();  }