Modifier and Type | Class and Description |
---|---|
static class |
MetaGroup.Kind
Specifies the kind of stored items.
|
Constructor and Description |
---|
MetaGroup(MetaGroup.Kind kind,
java.lang.String name,
java.util.Collection<? extends MetaData> items)
Constructs a
MetaGroup object. |
MetaGroup(MetaGroup.Kind kind,
java.lang.String name,
MetaData... items)
Constructs a
MetaGroup object. |
Modifier and Type | Method and 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.
|
public MetaGroup(MetaGroup.Kind kind, java.lang.String name, MetaData... items)
MetaGroup
object.kind
- Kind of items being grouped.name
- Group name.items
- Items being grouped.java.lang.IllegalArgumentException
- if any parameter is null
;
if the collection of items is empty.public MetaGroup(MetaGroup.Kind kind, java.lang.String name, java.util.Collection<? extends MetaData> items)
MetaGroup
object.kind
- Kind of items being grouped.name
- Group name.items
- Items being grouped.java.lang.IllegalArgumentException
- if any parameter is null
;
if the collection of items is empty.public final MetaGroup.Kind getKind()
public final java.lang.String getName()
public final Type getDataType()
MetaData
null
if the element has no type.getDataType
in interface MetaData
null
if the element has no type.public final java.util.Collection<? extends MetaData> getItems()
Iterable
object).