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;
27 import org.jetbrains.annotations.NotNull;
47 archetypeAttributes.add(archetypeAttribute);
58 if (!typeAttribute.matches(baseObject)) {
67 public Iterator<ArchetypeAttributeDefinition>
iterator() {
68 return Collections.unmodifiableList(archetypeAttributes).iterator();
76 return archetypeAttributes.isEmpty();
A set of key/value pairs.
A set of ArchetypeAttributeDefinitions.
Iterator< ArchetypeAttributeDefinition > iterator()
boolean isEmpty()
Returns whether no attribute definitions exist.
Base package of all Gridarta classes.
Holds the key/value pair of an archetype attribute definition.
final List< ArchetypeAttributeDefinition > archetypeAttributes
The ArchetypeAttributeDefinitions.
boolean matches(@NotNull final Attributes baseObject)
Checks whether an Attributes instance matches all type attributes.
void add(@NotNull final ArchetypeAttributeDefinition archetypeAttribute)
Adds an ArchetypeAttributeDefinition.