public class ArchetypeAttributeSection extends java.lang.Object implements java.lang.Iterable<ArchetypeAttribute>
ArchetypeAttributes.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
GENERAL_SECTION
The name of the "General" section.
|
static java.lang.String |
SPECIAL_SECTION
The name of the "Special" section.
|
| Constructor and Description |
|---|
ArchetypeAttributeSection(@NotNull java.lang.String sectionName)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(@NotNull ArchetypeAttribute archetypeAttribute)
Adds an
ArchetypeAttribute. |
void |
addAll(@NotNull ArchetypeAttributeSection archetypeAttributeSection)
Adds all
ArchetypeAttributes of another
archetype attributes to this archetype attributes. |
@NotNull java.lang.String |
getSectionName()
Returns this section's name.
|
boolean |
hasAttributeKey(@NotNull java.lang.Comparable<java.lang.String> key)
Returns whether an attribute key is defined.
|
boolean |
isEmpty()
Returns whether no
ArchetypeAttributes exist. |
java.util.Iterator<ArchetypeAttribute> |
iterator() |
@NotNull java.lang.String |
toString() |
public static final java.lang.String GENERAL_SECTION
public static final java.lang.String SPECIAL_SECTION
public ArchetypeAttributeSection(@NotNull
@NotNull java.lang.String sectionName)
sectionName - the section's name@NotNull public @NotNull java.lang.String getSectionName()
public void add(@NotNull
@NotNull ArchetypeAttribute archetypeAttribute)
ArchetypeAttribute.archetypeAttribute - the archetype attributepublic void addAll(@NotNull
@NotNull ArchetypeAttributeSection archetypeAttributeSection)
ArchetypeAttributes of another
archetype attributes to this archetype attributes.archetypeAttributeSection - the other archetype attributespublic java.util.Iterator<ArchetypeAttribute> iterator()
iterator in interface java.lang.Iterable<ArchetypeAttribute>public boolean isEmpty()
ArchetypeAttributes exist.public boolean hasAttributeKey(@NotNull
@NotNull java.lang.Comparable<java.lang.String> key)
key - the attribute key@NotNull public @NotNull java.lang.String toString()
toString in class java.lang.Object