Interface IMetaElementList

  • All Superinterfaces:
    com.helger.commons.collection.impl.ICommonsIterable<IMetaElement>, Iterable<IMetaElement>
    All Known Implementing Classes:
    MetaElementList

    @MustImplementEqualsAndHashcode
    public interface IMetaElementList
    extends com.helger.commons.collection.impl.ICommonsIterable<IMetaElement>
    Read only base interface for a list of IMetaElement objects.
    Author:
    Philip Helger
    • Method Detail

      • getAllMetaElementNames

        @Nonnull
        @ReturnsMutableCopy
        com.helger.commons.collection.impl.ICommonsOrderedSet<String> getAllMetaElementNames()
        Returns:
        A set with used meta element names. Never null.
      • getAllMetaElements

        @Nonnull
        @ReturnsMutableCopy
        com.helger.commons.collection.impl.ICommonsList<IMetaElement> getAllMetaElements()
        Returns:
        A list with all contained meta elements. Never null.
      • getAllMetaElements

        void getAllMetaElements​(@Nonnull
                                Collection<? super IMetaElement> aTarget)
        Add all contained meta elements to the passed container.
        Parameters:
        aTarget - The target container to be filled. May not be null.
      • getMetaElementOfName

        @Nullable
        IMetaElement getMetaElementOfName​(@Nullable
                                          String sName)
        Find the meta element with the given name.
        Parameters:
        sName - The name to search. May be null or empty.
        Returns:
        null if no such meta element exists.
      • containsMetaElementWithName

        boolean containsMetaElementWithName​(@Nullable
                                            String sName)
        Check if a meta element with the given name exists.
        Parameters:
        sName - The name to check. May be null or empty.
        Returns:
        true if a meta element with the passed name exists.
      • getMetaElementCount

        @Nonnegative
        int getMetaElementCount()
        Returns:
        The number of contained meta elements. Always ≥ 0.
      • hasMetaElements

        boolean hasMetaElements()
        Returns:
        true if at least one meta element is contained, false otherwise.