Class ArchetypeAttributeSections

    • Constructor Detail

      • ArchetypeAttributeSections

        public ArchetypeAttributeSections()
        Creates a new instance.
    • Method Detail

      • addSection

        public final void addSection​(@NotNull
                                     @NotNull ArchetypeAttributeSection section)
        Adds an ArchetypeAttributeSection. 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
      • 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 an ArchetypeAttribute to this archetype type.
        Parameters:
        sectionName - the name of the section to add to
        archetypeAttribute - the archetype attribute to add