public class ArchetypeAttributeSections extends java.lang.Object implements java.lang.Iterable<ArchetypeAttributeSection>
ArchetypeAttributeSection instances.| Constructor and Description |
|---|
ArchetypeAttributeSections()
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addArchetypeAttribute(@NotNull java.lang.String sectionName,
@NotNull ArchetypeAttribute archetypeAttribute)
Adds an
ArchetypeAttribute to this archetype type. |
void |
addSection(@NotNull ArchetypeAttributeSection section)
Adds an
ArchetypeAttributeSection. |
boolean |
hasAttribute()
Returns whether this archetype type defines at least one archetype
attribute.
|
boolean |
hasAttributeKey(@NotNull java.lang.Comparable<java.lang.String> key)
Returns whether an attribute key is defined.
|
@NotNull java.util.Iterator<ArchetypeAttributeSection> |
iterator()
Returns a read-only
Iterator returning all sections in display order. |
public ArchetypeAttributeSections()
public final void addSection(@NotNull
@NotNull ArchetypeAttributeSection section)
ArchetypeAttributeSection. If an section with the same
name already exists, the new section is appended. Otherwise the section
is added.section - the section to add; it is not copied@NotNull public @NotNull java.util.Iterator<ArchetypeAttributeSection> iterator()
Iterator returning all sections in display order.iterator in interface java.lang.Iterable<ArchetypeAttributeSection>public boolean hasAttribute()
public boolean hasAttributeKey(@NotNull
@NotNull java.lang.Comparable<java.lang.String> key)
key - the attribute keypublic void addArchetypeAttribute(@NotNull
@NotNull java.lang.String sectionName,
@NotNull
@NotNull ArchetypeAttribute archetypeAttribute)
ArchetypeAttribute to this archetype type.sectionName - the name of the section to add toarchetypeAttribute - the archetype attribute to add