Class ArchetypeAttributeSections
- java.lang.Object
-
- net.sf.gridarta.model.archetypetype.ArchetypeAttributeSections
-
- All Implemented Interfaces:
java.lang.Iterable<ArchetypeAttributeSection>
public class ArchetypeAttributeSections extends java.lang.Object implements java.lang.Iterable<ArchetypeAttributeSection>
A list ofArchetypeAttributeSectioninstances.
-
-
Constructor Summary
Constructors Constructor Description ArchetypeAttributeSections()Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddArchetypeAttribute(@NotNull java.lang.String sectionName, @NotNull ArchetypeAttribute archetypeAttribute)Adds anArchetypeAttributeto this archetype type.voidaddSection(@NotNull ArchetypeAttributeSection section)Adds anArchetypeAttributeSection.booleanhasAttribute()Returns whether this archetype type defines at least one archetype attribute.booleanhasAttributeKey(@NotNull java.lang.Comparable<java.lang.String> key)Returns whether an attribute key is defined.@NotNull java.util.Iterator<ArchetypeAttributeSection>iterator()Returns a read-onlyIteratorreturning allsectionsin display order.
-
-
-
Method Detail
-
addSection
public final void addSection(@NotNull @NotNull ArchetypeAttributeSection section)Adds anArchetypeAttributeSection. If an section with the same name already exists, the new section is appended. Otherwise the section is added.- Parameters:
section- the section to add; it is not copied
-
iterator
@NotNull public @NotNull java.util.Iterator<ArchetypeAttributeSection> iterator()
Returns a read-onlyIteratorreturning allsectionsin display order.- Specified by:
iteratorin interfacejava.lang.Iterable<ArchetypeAttributeSection>- Returns:
- the iterator
-
hasAttribute
public boolean hasAttribute()
Returns whether this archetype type defines at least one archetype attribute.- Returns:
- whether at least one archetype attribute exists
-
hasAttributeKey
public boolean hasAttributeKey(@NotNull @NotNull java.lang.Comparable<java.lang.String> key)Returns whether an attribute key is defined.- Parameters:
key- the attribute key- Returns:
- whether the attribute key is defined
-
addArchetypeAttribute
public void addArchetypeAttribute(@NotNull @NotNull java.lang.String sectionName, @NotNull @NotNull ArchetypeAttribute archetypeAttribute)Adds anArchetypeAttributeto this archetype type.- Parameters:
sectionName- the name of the section to add toarchetypeAttribute- the archetype attribute to add
-
-