20 package net.sf.gridarta.model.archetypetype;
22 import java.util.ArrayList;
23 import java.util.Collections;
24 import java.util.Iterator;
25 import java.util.List;
26 import org.jetbrains.annotations.NotNull;
78 archetypeAttributes.add(archetypeAttribute);
87 archetypeAttributes.addAll(archetypeAttributeSection.archetypeAttributes);
91 public Iterator<ArchetypeAttribute>
iterator() {
92 return Collections.unmodifiableList(archetypeAttributes).iterator();
100 return archetypeAttributes.isEmpty();
110 if (attr.getArchetypeAttributeName().equals(key)) {
121 return sectionName +
"(" + archetypeAttributes.size() +
")";
String getSectionName()
Returns this section's name.
static final String GENERAL_SECTION
The name of the "General" section.
This Class contains the data of one archetype attribute.
static final String SPECIAL_SECTION
The name of the "Special" section.
Iterator< ArchetypeAttribute > iterator()
boolean isEmpty()
Returns whether no ArchetypeAttributes exist.
A set of ArchetypeAttributes.
void add(@NotNull final ArchetypeAttribute archetypeAttribute)
Adds an ArchetypeAttribute.
ArchetypeAttributeSection(@NotNull final String sectionName)
Creates a new instance.
boolean hasAttributeKey(@NotNull final Comparable< String > key)
Returns whether an attribute key is defined.
final String sectionName
This section's name.
void addAll(@NotNull final ArchetypeAttributeSection archetypeAttributeSection)
Adds all ArchetypeAttributes of another archetype attributes to this archetype attributes.
final List< ArchetypeAttribute > archetypeAttributes
The ArchetypeAttributes.