@Test public void testToString() { String string1 = classType.toString(); String string2 = "{id: " + classType.getId() + ", name: , attributes: []}"; 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("attributes: " + attributes); if (!getTaggedValues().isEmpty()) { sb.append(", "); sb.append("taggedValues: " + getTaggedValues()); } sb.append("}"); return sb.toString(); }
ClassType extends ComplexType implements Navigable { @Override public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("{"); sb.append("id: " + getId()).append(", "); sb.append("name: " + getName()).append(", "); sb.append("attributes: " + attributes); if (!getTaggedValues().isEmpty()) { sb.append(", "); sb.append("taggedValues: " + getTaggedValues()); } sb.append("}"); return sb.toString(); } }
ClassType extends ComplexType implements Navigable { @Override public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("{"); sb.append("id: " + getId()).append(", "); sb.append("name: " + getName()).append(", "); sb.append("attributes: " + attributes); if (!getTaggedValues().isEmpty()) { sb.append(", "); sb.append("taggedValues: " + getTaggedValues()); } sb.append("}"); return sb.toString(); } ClassType(final AssociationEnd lhs, final AssociationEnd rhs); private  ClassType(final boolean isClassType, final Identifier id, final String name, final boolean isAbstract,
            final List<Attribute> attributes, final AssociationEnd lhs, final AssociationEnd rhs,
            final List<TaggedValue> taggedValues);  ClassType(final Identifier id, final String name, final AssociationEnd lhs, final AssociationEnd rhs,
            final List<TaggedValue> taggedValues);  ClassType(final Identifier id, final String name, final boolean isAbstract,
            final List<Attribute> attributes, final AssociationEnd lhs, final AssociationEnd rhs,
            final List<TaggedValue> taggedValues);  ClassType(final Identifier id, final String name, final boolean isAbstract,
            final List<Attribute> attributes, final List<TaggedValue> taggedValues);  ClassType(final String name, final AssociationEnd lhs, final AssociationEnd rhs);  ClassType(final String name, final AssociationEnd lhs, final AssociationEnd rhs,
            final List<TaggedValue> taggedValues); }
ClassType extends ComplexType implements Navigable { @Override public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("{"); sb.append("id: " + getId()).append(", "); sb.append("name: " + getName()).append(", "); sb.append("attributes: " + attributes); if (!getTaggedValues().isEmpty()) { sb.append(", "); sb.append("taggedValues: " + getTaggedValues()); } sb.append("}"); return sb.toString(); } ClassType(final AssociationEnd lhs, final AssociationEnd rhs); private  ClassType(final boolean isClassType, final Identifier id, final String name, final boolean isAbstract,
            final List<Attribute> attributes, final AssociationEnd lhs, final AssociationEnd rhs,
            final List<TaggedValue> taggedValues);  ClassType(final Identifier id, final String name, final AssociationEnd lhs, final AssociationEnd rhs,
            final List<TaggedValue> taggedValues);  ClassType(final Identifier id, final String name, final boolean isAbstract,
            final List<Attribute> attributes, final AssociationEnd lhs, final AssociationEnd rhs,
            final List<TaggedValue> taggedValues);  ClassType(final Identifier id, final String name, final boolean isAbstract,
            final List<Attribute> attributes, final List<TaggedValue> taggedValues);  ClassType(final String name, final AssociationEnd lhs, final AssociationEnd rhs);  ClassType(final String name, final AssociationEnd lhs, final AssociationEnd rhs,
            final List<TaggedValue> taggedValues); void setAssociatedDatedCollectionStore(List<String> associatedDatedCollectionStore); Attribute getBeginDateAttribute(); Attribute getEndDateAttribute(); List<String> getAssociatedDatedCollectionStore(); @Override void accept(final Visitor visitor); @Override List<Attribute> getAttributes(); @Override AssociationEnd getLHS(); @Override AssociationEnd getRHS(); @Override boolean isAbstract(); @Override boolean isAssociation(); @Override boolean isClassType(); @Override boolean isDataType(); @Override boolean isEnumType(); @Override String toString(); }
ClassType extends ComplexType implements Navigable { @Override public String toString() { final StringBuilder sb = new StringBuilder(); sb.append("{"); sb.append("id: " + getId()).append(", "); sb.append("name: " + getName()).append(", "); sb.append("attributes: " + attributes); if (!getTaggedValues().isEmpty()) { sb.append(", "); sb.append("taggedValues: " + getTaggedValues()); } sb.append("}"); return sb.toString(); } ClassType(final AssociationEnd lhs, final AssociationEnd rhs); private  ClassType(final boolean isClassType, final Identifier id, final String name, final boolean isAbstract,
            final List<Attribute> attributes, final AssociationEnd lhs, final AssociationEnd rhs,
            final List<TaggedValue> taggedValues);  ClassType(final Identifier id, final String name, final AssociationEnd lhs, final AssociationEnd rhs,
            final List<TaggedValue> taggedValues);  ClassType(final Identifier id, final String name, final boolean isAbstract,
            final List<Attribute> attributes, final AssociationEnd lhs, final AssociationEnd rhs,
            final List<TaggedValue> taggedValues);  ClassType(final Identifier id, final String name, final boolean isAbstract,
            final List<Attribute> attributes, final List<TaggedValue> taggedValues);  ClassType(final String name, final AssociationEnd lhs, final AssociationEnd rhs);  ClassType(final String name, final AssociationEnd lhs, final AssociationEnd rhs,
            final List<TaggedValue> taggedValues); void setAssociatedDatedCollectionStore(List<String> associatedDatedCollectionStore); Attribute getBeginDateAttribute(); Attribute getEndDateAttribute(); List<String> getAssociatedDatedCollectionStore(); @Override void accept(final Visitor visitor); @Override List<Attribute> getAttributes(); @Override AssociationEnd getLHS(); @Override AssociationEnd getRHS(); @Override boolean isAbstract(); @Override boolean isAssociation(); @Override boolean isClassType(); @Override boolean isDataType(); @Override boolean isEnumType(); @Override String toString();  }