Class MetaGroup

  • All Implemented Interfaces:
    MetaData

    public class MetaGroup
    extends java.lang.Object
    implements MetaData
    The MetaGroup class describes a group of metadata items such as addressing modes and operations.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  MetaGroup.Kind
      Specifies the kind of stored items.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Type getDataType()
      Returns the type associated with the metadata element or null if the element has no type.
      java.util.Collection<? extends MetaData> getItems()
      Returns items being grouped.
      MetaGroup.Kind getKind()
      Returns the kind of stored items.
      java.lang.String getName()
      Returns the name of the group.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MetaGroup

        public MetaGroup​(MetaGroup.Kind kind,
                         java.lang.String name,
                         MetaData... items)
        Constructs a MetaGroup object.
        Parameters:
        kind - Kind of items being grouped.
        name - Group name.
        items - Items being grouped.
        Throws:
        java.lang.IllegalArgumentException - if any parameter is null; if the collection of items is empty.
      • MetaGroup

        public MetaGroup​(MetaGroup.Kind kind,
                         java.lang.String name,
                         java.util.Collection<? extends MetaData> items)
        Constructs a MetaGroup object.
        Parameters:
        kind - Kind of items being grouped.
        name - Group name.
        items - Items being grouped.
        Throws:
        java.lang.IllegalArgumentException - if any parameter is null; if the collection of items is empty.
    • Method Detail

      • getKind

        public final MetaGroup.Kind getKind()
        Returns the kind of stored items.
        Returns:
        Item kind.
      • getName

        public final java.lang.String getName()
        Returns the name of the group.
        Specified by:
        getName in interface MetaData
        Returns:
        Group name.
      • getDataType

        public final Type getDataType()
        Description copied from interface: MetaData
        Returns the type associated with the metadata element or null if the element has no type.
        Specified by:
        getDataType in interface MetaData
        Returns:
        type of the metadata element or null if the element has no type.
      • getItems

        public final java.util.Collection<? extends MetaData> getItems()
        Returns items being grouped.
        Returns:
        Items being grouped (an Iterable object).