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(java.lang.String sectionName,
ArchetypeAttribute archetypeAttribute)
Adds an
ArchetypeAttribute to this archetype type. |
void |
addSection(ArchetypeAttributeSection section)
Adds an
ArchetypeAttributeSection . |
boolean |
hasAttribute()
Returns whether this archetype type defines at least one archetype
attribute.
|
boolean |
hasAttributeKey(java.lang.Comparable<java.lang.String> key)
Returns whether an attribute key is defined.
|
java.util.Iterator<ArchetypeAttributeSection> |
iterator()
Returns a read-only
Iterator returning all sections in display order. |
public ArchetypeAttributeSections()
public final void addSection(@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 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 java.lang.Comparable<java.lang.String> key)
key
- the attribute keypublic void addArchetypeAttribute(@NotNull java.lang.String sectionName, @NotNull ArchetypeAttribute archetypeAttribute)
ArchetypeAttribute
to this archetype type.sectionName
- the name of the section to add toarchetypeAttribute
- the archetype attribute to add