@Test public void testToString() { String string1 = tagDefinition.toString(); String string2 = "{id: 1234, name: TestTagDefinition, multiplicity: " + TestUtils.ZERO_TO_ONE + "}"; assertEquals(string2, string1); }
@Override public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("{"); sb.append("id: " + getId()).append(", "); sb.append("name: " + getName()).append(", "); sb.append("multiplicity: " + multiplicity); if (!getTaggedValues().isEmpty()) { sb.append(", "); sb.append("taggedValues: " + getTaggedValues()); } sb.append("}"); return sb.toString(); }
TagDefinition extends NamespaceOwnedElement implements HasMultiplicity { @Override public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("{"); sb.append("id: " + getId()).append(", "); sb.append("name: " + getName()).append(", "); sb.append("multiplicity: " + multiplicity); if (!getTaggedValues().isEmpty()) { sb.append(", "); sb.append("taggedValues: " + getTaggedValues()); } sb.append("}"); return sb.toString(); } }
TagDefinition extends NamespaceOwnedElement implements HasMultiplicity { @Override public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("{"); sb.append("id: " + getId()).append(", "); sb.append("name: " + getName()).append(", "); sb.append("multiplicity: " + multiplicity); if (!getTaggedValues().isEmpty()) { sb.append(", "); sb.append("taggedValues: " + getTaggedValues()); } sb.append("}"); return sb.toString(); } TagDefinition(final Identifier id, final List<TaggedValue> taggedValues, final String name,
            final Multiplicity multiplicity);  TagDefinition(final Identifier id, final String name, final Multiplicity multiplicity); }
TagDefinition extends NamespaceOwnedElement implements HasMultiplicity { @Override public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("{"); sb.append("id: " + getId()).append(", "); sb.append("name: " + getName()).append(", "); sb.append("multiplicity: " + multiplicity); if (!getTaggedValues().isEmpty()) { sb.append(", "); sb.append("taggedValues: " + getTaggedValues()); } sb.append("}"); return sb.toString(); } TagDefinition(final Identifier id, final List<TaggedValue> taggedValues, final String name,
            final Multiplicity multiplicity);  TagDefinition(final Identifier id, final String name, final Multiplicity multiplicity); @Override void accept(final Visitor visitor); @Override Multiplicity getMultiplicity(); @Override String toString(); }
TagDefinition extends NamespaceOwnedElement implements HasMultiplicity { @Override public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("{"); sb.append("id: " + getId()).append(", "); sb.append("name: " + getName()).append(", "); sb.append("multiplicity: " + multiplicity); if (!getTaggedValues().isEmpty()) { sb.append(", "); sb.append("taggedValues: " + getTaggedValues()); } sb.append("}"); return sb.toString(); } TagDefinition(final Identifier id, final List<TaggedValue> taggedValues, final String name,
            final Multiplicity multiplicity);  TagDefinition(final Identifier id, final String name, final Multiplicity multiplicity); @Override void accept(final Visitor visitor); @Override Multiplicity getMultiplicity(); @Override String toString();  }