Class MetaGroup
- java.lang.Object
-
- ru.ispras.microtesk.model.metadata.MetaGroup
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MetaGroup.Kind
Specifies the kind of stored items.
-
Constructor Summary
Constructors Constructor Description MetaGroup(MetaGroup.Kind kind, java.lang.String name, java.util.Collection<? extends MetaData> items)
Constructs aMetaGroup
object.MetaGroup(MetaGroup.Kind kind, java.lang.String name, MetaData... items)
Constructs aMetaGroup
object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Type
getDataType()
Returns the type associated with the metadata element ornull
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.
-
-
-
Constructor Detail
-
MetaGroup
public MetaGroup(MetaGroup.Kind kind, java.lang.String name, MetaData... items)
Constructs aMetaGroup
object.- Parameters:
kind
- Kind of items being grouped.name
- Group name.items
- Items being grouped.- Throws:
java.lang.IllegalArgumentException
- if any parameter isnull
; if the collection of items is empty.
-
MetaGroup
public MetaGroup(MetaGroup.Kind kind, java.lang.String name, java.util.Collection<? extends MetaData> items)
Constructs aMetaGroup
object.- Parameters:
kind
- Kind of items being grouped.name
- Group name.items
- Items being grouped.- Throws:
java.lang.IllegalArgumentException
- if any parameter isnull
; 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.
-
getDataType
public final Type getDataType()
Description copied from interface:MetaData
Returns the type associated with the metadata element ornull
if the element has no type.- Specified by:
getDataType
in interfaceMetaData
- 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).
-
-