Class ArchetypeAttributeSection
- java.lang.Object
-
- net.sf.gridarta.model.archetypetype.ArchetypeAttributeSection
-
- All Implemented Interfaces:
java.lang.Iterable<ArchetypeAttribute>
public class ArchetypeAttributeSection extends java.lang.Object implements java.lang.Iterable<ArchetypeAttribute>
A set ofArchetypeAttributes.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringGENERAL_SECTIONThe name of the "General" section.static java.lang.StringSPECIAL_SECTIONThe name of the "Special" section.
-
Constructor Summary
Constructors Constructor Description ArchetypeAttributeSection(@NotNull java.lang.String sectionName)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(@NotNull ArchetypeAttribute archetypeAttribute)Adds anArchetypeAttribute.voidaddAll(@NotNull ArchetypeAttributeSection archetypeAttributeSection)Adds allArchetypeAttributesof another archetype attributes to this archetype attributes.@NotNull java.lang.StringgetSectionName()Returns this section's name.booleanhasAttributeKey(@NotNull java.lang.Comparable<java.lang.String> key)Returns whether an attribute key is defined.booleanisEmpty()Returns whether noArchetypeAttributesexist.java.util.Iterator<ArchetypeAttribute>iterator()@NotNull java.lang.StringtoString()
-
-
-
Field Detail
-
GENERAL_SECTION
public static final java.lang.String GENERAL_SECTION
The name of the "General" section.- See Also:
- Constant Field Values
-
SPECIAL_SECTION
public static final java.lang.String SPECIAL_SECTION
The name of the "Special" section.- See Also:
- Constant Field Values
-
-
Method Detail
-
getSectionName
@NotNull public @NotNull java.lang.String getSectionName()
Returns this section's name.- Returns:
- the name
-
add
public void add(@NotNull @NotNull ArchetypeAttribute archetypeAttribute)Adds anArchetypeAttribute.- Parameters:
archetypeAttribute- the archetype attribute
-
addAll
public void addAll(@NotNull @NotNull ArchetypeAttributeSection archetypeAttributeSection)Adds allArchetypeAttributesof another archetype attributes to this archetype attributes.- Parameters:
archetypeAttributeSection- the other archetype attributes
-
iterator
public java.util.Iterator<ArchetypeAttribute> iterator()
- Specified by:
iteratorin interfacejava.lang.Iterable<ArchetypeAttribute>
-
isEmpty
public boolean isEmpty()
Returns whether noArchetypeAttributesexist.- Returns:
- whether no archetype attributes exist
-
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
-
toString
@NotNull public @NotNull java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-