@Test public void testToString() { String string1 = associationEnd.toString(); String string2 = "{id: " + associationEnd.getId() + ", name: TestAssocEnd, type: " + identifier + ", multiplicity: " + TestUtils.ZERO_TO_ONE + "}"; assertEquals(string1, string2); }
@Override public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("{"); sb.append("id: " + getId()); sb.append(", "); sb.append("name: " + getName()); sb.append(", "); sb.append("type: " + getType()); sb.append(", "); sb.append("multiplicity: " + getMultiplicity()); if (!getTaggedValues().isEmpty()) { sb.append(", "); sb.append("taggedValues: " + getTaggedValues()); } sb.append("}"); return sb.toString(); }
AssociationEnd extends Feature { @Override public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("{"); sb.append("id: " + getId()); sb.append(", "); sb.append("name: " + getName()); sb.append(", "); sb.append("type: " + getType()); sb.append(", "); sb.append("multiplicity: " + getMultiplicity()); if (!getTaggedValues().isEmpty()) { sb.append(", "); sb.append("taggedValues: " + getTaggedValues()); } sb.append("}"); return sb.toString(); } }
AssociationEnd extends Feature { @Override public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("{"); sb.append("id: " + getId()); sb.append(", "); sb.append("name: " + getName()); sb.append(", "); sb.append("type: " + getType()); sb.append(", "); sb.append("multiplicity: " + getMultiplicity()); if (!getTaggedValues().isEmpty()) { sb.append(", "); sb.append("taggedValues: " + getTaggedValues()); } sb.append("}"); return sb.toString(); } AssociationEnd(final Multiplicity multiplicity, final String name, final boolean isNavigable,
            final Identifier type, final String associatedAttributeName);  AssociationEnd(final Multiplicity multiplicity, final String name, final boolean isNavigable,
            final Identifier id, final List<TaggedValue> taggedValues, final Identifier type, final String associatedAttributeName);  AssociationEnd(final Multiplicity multiplicity, final String name, final boolean isNavigable,
            final List<TaggedValue> taggedValues, final Identifier type, final String associatedAttributeName); }
AssociationEnd extends Feature { @Override public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("{"); sb.append("id: " + getId()); sb.append(", "); sb.append("name: " + getName()); sb.append(", "); sb.append("type: " + getType()); sb.append(", "); sb.append("multiplicity: " + getMultiplicity()); if (!getTaggedValues().isEmpty()) { sb.append(", "); sb.append("taggedValues: " + getTaggedValues()); } sb.append("}"); return sb.toString(); } AssociationEnd(final Multiplicity multiplicity, final String name, final boolean isNavigable,
            final Identifier type, final String associatedAttributeName);  AssociationEnd(final Multiplicity multiplicity, final String name, final boolean isNavigable,
            final Identifier id, final List<TaggedValue> taggedValues, final Identifier type, final String associatedAttributeName);  AssociationEnd(final Multiplicity multiplicity, final String name, final boolean isNavigable,
            final List<TaggedValue> taggedValues, final Identifier type, final String associatedAttributeName); @Override void accept(final Visitor visitor); @Override boolean isAssociationEnd(); @Override boolean isAttribute(); boolean isNavigable(); String getAssociatedAttributeName(); @Override String toString(); }
AssociationEnd extends Feature { @Override public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("{"); sb.append("id: " + getId()); sb.append(", "); sb.append("name: " + getName()); sb.append(", "); sb.append("type: " + getType()); sb.append(", "); sb.append("multiplicity: " + getMultiplicity()); if (!getTaggedValues().isEmpty()) { sb.append(", "); sb.append("taggedValues: " + getTaggedValues()); } sb.append("}"); return sb.toString(); } AssociationEnd(final Multiplicity multiplicity, final String name, final boolean isNavigable,
            final Identifier type, final String associatedAttributeName);  AssociationEnd(final Multiplicity multiplicity, final String name, final boolean isNavigable,
            final Identifier id, final List<TaggedValue> taggedValues, final Identifier type, final String associatedAttributeName);  AssociationEnd(final Multiplicity multiplicity, final String name, final boolean isNavigable,
            final List<TaggedValue> taggedValues, final Identifier type, final String associatedAttributeName); @Override void accept(final Visitor visitor); @Override boolean isAssociationEnd(); @Override boolean isAttribute(); boolean isNavigable(); String getAssociatedAttributeName(); @Override String toString();  }