@Platform(include="<nix/Group.hpp>") @Platform(value="linux",link="nix@.1",preload="hdf5@.7") @Platform(value="windows",link="nix",preload={"hdf5","msvcp120","msvcr120","szip","zlib"}) @Namespace(value="nix") public class Group extends EntityWithSources
Constructor and Description |
---|
Group() |
Modifier and Type | Method and Description |
---|---|
void |
addDataArray(DataArray dataArray)
Add a DataArray to the list of referenced data of the group.
|
void |
addDataArray(String nameOrId)
Add a DataArray to the list of referenced data of the group.
|
void |
addMultiTag(MultiTag tag)
Add a MultiTag to the list of referenced tags of the group.
|
void |
addMultiTag(String nameOrId)
Add a MultiTag to the list of referenced tags of the group.
|
void |
addSource(Source source)
Associate a new source with the entity.
|
void |
addSource(String id)
Associate a new source with the entity.
|
void |
addTag(String nameOrId)
Add a Tag to the list of referenced tags of the group.
|
void |
addTag(Tag tag)
Add a Tag to the list of referenced tags of the group.
|
void |
forceCreatedAt(Date date)
Sets the creation date to the provided value even if the attribute is set.
|
void |
forceUpdatedAt()
Sets the time of the last update to the current time.
|
Date |
getCreatedAt()
Get the creation date of the group.
|
DataArray |
getDataArray(long index)
Retrieves a data array by index.
|
DataArray |
getDataArray(String nameOrId)
Retrieves a specific data array from the group by name or id.
|
long |
getDataArrayCount()
Returns the number of all data arrays of the block.
|
List<DataArray> |
getDataArrays()
Get data arrays within this group.
|
List<DataArray> |
getDataArrays(java.util.function.Predicate<DataArray> filter)
Get data arrays within this group.
|
String |
getDefinition()
Getter for the definition of the group.
|
String |
getId()
Get id of the group.
|
Section |
getMetadata()
Get metadata associated with this entity.
|
MultiTag |
getMultiTag(long index)
Retrieves a specific tag by index.
|
MultiTag |
getMultiTag(String nameOrId)
Retrieves a specific tag from the group by its id.
|
long |
getMultiTagCount()
Returns the number of tags within this group.
|
List<MultiTag> |
getMultiTags()
Gets all MultiTags within this group.
|
List<MultiTag> |
getMultiTags(java.util.function.Predicate<MultiTag> filter)
Get tags within this block.
|
String |
getName()
Getter for the name of the group.
|
Source |
getSource(long index)
Retrieves an associated source identified by its index.
|
Source |
getSource(String id)
Returns an associated source identified by its id.
|
long |
getSourceCount()
Get the number of sources associated with this entity.
|
List<Source> |
getSources()
Get all sources associated with this entity.
|
List<Source> |
getSources(java.util.function.Predicate<Source> filter)
Get all sources associated with this entity.
|
Tag |
getTag(long index)
Retrieves a specific tag by index.
|
Tag |
getTag(String nameOrId)
Retrieves a specific tag from the group by its id.
|
long |
getTagCount()
Returns the number of tags within this group.
|
List<Tag> |
getTags()
Gets all Tags within this group.
|
List<Tag> |
getTags(java.util.function.Predicate<Tag> filter)
Get tags within this block.
|
String |
getType()
Getter for the type of the group.
|
Date |
getUpdatedAt()
Get the date of the last update.
|
boolean |
hasDataArray(DataArray dataArray)
Checks if a specific data array exists in this group.
|
boolean |
hasDataArray(String nameOrId)
Checks if a specific data array exists in this group.
|
boolean |
hasMultiTag(MultiTag tag)
Checks if a specific tag exists in the group.
|
boolean |
hasMultiTag(String nameOrId)
Checks if a specific tag exists in the group.
|
boolean |
hasSource(Source source)
Checks if a specific source is associated with this entity.
|
boolean |
hasSource(String id)
Checks if a specific source is associated with this entity.
|
boolean |
hasTag(String nameOrId)
Checks if a specific tag exists in the group.
|
boolean |
hasTag(Tag tag)
Checks if a specific tag exists in the group.
|
boolean |
isNone()
Check if entity is null
|
boolean |
removeDataArray(DataArray dataArray)
Remove a DataArray from the list of referenced data of the group.
|
boolean |
removeDataArray(String nameOrId)
Remove a DataArray from the list of referenced data of the group.
|
void |
removeMetadata()
Removes metadata associated with the entity.
|
boolean |
removeMultiTag(MultiTag tag)
Remove a MultiTag from the list of referenced data of the group.
|
boolean |
removeMultiTag(String nameOrId)
Remove a MultiTag from the list of referenced tags of the group.
|
boolean |
removeSource(Source source)
Remove a source from the list of associated sources.
|
boolean |
removeSource(String id)
Remove a source from the list of associated sources.
|
boolean |
removeTag(String nameOrId)
Remove a Tag from the list of referenced tags of the group.
|
boolean |
removeTag(Tag tag)
Remove a Tag from the list of referenced data of the group.
|
void |
setCreatedAt()
Sets the creation time to the current time if the field is not set.
|
void |
setDataArrays(List<DataArray> dataArrays)
Set all DataArray associations for this group.
|
void |
setDefinition(String definition)
Setter for the definition of the group.
|
void |
setMetadata(Section metadata)
Associate the entity with some metadata.
|
void |
setMetadata(String id)
Associate the entity with some metadata.
|
void |
setMultiTags(List<MultiTag> tags)
Set all MultiTag associations for this group.
|
void |
setSources(List<Source> sources)
Set all sources associations for this entity.
|
void |
setTags(List<Tag> tags)
Set all Tag associations for this group.
|
void |
setType(String type)
Setter for the type of the group.
|
void |
setUpdatedAt()
Sets the time of the last update to the current time if the field is not set.
|
compareTo
isInitialized
@Cast(value="bool") public boolean isNone()
ImplContainer
isNone
in class ImplContainer
@Name(value="id") @StdString public String getId()
public Date getCreatedAt()
getCreatedAt
in class Entity
public Date getUpdatedAt()
getUpdatedAt
in class Entity
public void setUpdatedAt()
setUpdatedAt
in class Entity
public void forceUpdatedAt()
forceUpdatedAt
in class Entity
public void setCreatedAt()
setCreatedAt
in class Entity
public void forceCreatedAt(Date date)
forceCreatedAt
in class Entity
date
- The creation date to set.@Name(value="type") public void setType(@StdString String type)
setType
in class NamedEntity
type
- The type of the group.@Name(value="type") @StdString public String getType()
getType
in class NamedEntity
@Name(value="name") @StdString public String getName()
getName
in class NamedEntity
public void setDefinition(String definition)
setDefinition
in class NamedEntity
definition
- definition of the group.public String getDefinition()
getDefinition
in class NamedEntity
@Name(value="metadata") public Section getMetadata()
getMetadata
in class EntityWithMetadata
Section
@Name(value="metadata") public void setMetadata(@Const @ByRef Section metadata)
setMetadata
in class EntityWithMetadata
metadata
- The Section
that should be associated
with this entity.Section
@Name(value="metadata") public void setMetadata(@StdString String id)
setMetadata
in class EntityWithMetadata
id
- The id of the Section
that should be associated
with this entity.Section
public void removeMetadata()
removeMetadata
in class EntityWithMetadata
Section
@Name(value="sourceCount") public long getSourceCount()
getSourceCount
in class EntityWithSources
Source
@Cast(value="bool") public boolean hasSource(@StdString String id)
hasSource
in class EntityWithSources
id
- The source id to check.Source
@Cast(value="bool") public boolean hasSource(@Const @ByRef Source source)
hasSource
in class EntityWithSources
source
- The source to check.Source
public Source getSource(String id)
getSource
in class EntityWithSources
id
- The id of the associated source.Source
public Source getSource(long index)
getSource
in class EntityWithSources
index
- The index of the associated source.Source
public List<Source> getSources()
getSources
in class EntityWithSources
Source
public List<Source> getSources(java.util.function.Predicate<Source> filter)
Source
public void setSources(List<Source> sources)
setSources
in class EntityWithSources
sources
- A list with all sources.Source
public void addSource(@StdString String id)
addSource
in class EntityWithSources
id
- The id of the source.Source
public void addSource(@Const @ByRef Source source)
addSource
in class EntityWithSources
source
- The source to add.Source
@Cast(value="bool") public boolean removeSource(@StdString String id)
removeSource
in class EntityWithSources
id
- The id of the source to remove.Source
@Cast(value="bool") public boolean removeSource(@Const @ByRef Source source)
removeSource
in class EntityWithSources
source
- The source to remove.Source
@Cast(value="bool") public boolean hasDataArray(@StdString String nameOrId)
nameOrId
- Name or id of a data array.DataArray
@Name(value="dataArrayCount") public long getDataArrayCount()
DataArray
@Cast(value="bool") public boolean hasDataArray(@Const @ByRef DataArray dataArray)
dataArray
- The data array to check.DataArray
public DataArray getDataArray(String nameOrId)
nameOrId
- Name or id of an existing data array.DataArray
public DataArray getDataArray(long index)
index
- The index of the data array.DataArray
public List<DataArray> getDataArrays()
DataArray
public List<DataArray> getDataArrays(java.util.function.Predicate<DataArray> filter)
filter
- A filter function.DataArray
public void setDataArrays(List<DataArray> dataArrays)
dataArrays
- A list with all DataArray entities to add.DataArray
public void addDataArray(@StdString String nameOrId)
nameOrId
- The id of the DataArray to add.public void addDataArray(@Const @ByRef DataArray dataArray)
dataArray
- The DataArray to add.@Cast(value="bool") public boolean removeDataArray(@StdString String nameOrId)
nameOrId
- The id of the DataArray to remove.@Cast(value="bool") public boolean removeDataArray(@Const @ByRef DataArray dataArray)
dataArray
- The DataArray to remove.@Cast(value="bool") public boolean hasTag(@StdString String nameOrId)
nameOrId
- Name or id of a tag to check.Tag
@Cast(value="bool") public boolean hasTag(@Const @ByRef Tag tag)
tag
- The tag to check.Tag
@Name(value="tagCount") public long getTagCount()
public Tag getTag(String nameOrId)
nameOrId
- Name or id of the tag.Tag
public Tag getTag(long index)
index
- The index of the tag.Tag
public List<Tag> getTags()
Tag
public List<Tag> getTags(java.util.function.Predicate<Tag> filter)
filter
- A filter function.Tag
public void setTags(List<Tag> tags)
tags
- A list with all Tag entities to add.Tag
public void addTag(@StdString String nameOrId)
nameOrId
- The id of the Tag to add.public void addTag(@Const @ByRef Tag tag)
tag
- The Tag to add.@Cast(value="bool") public boolean removeTag(@StdString String nameOrId)
nameOrId
- The id of the Tag to remove.@Cast(value="bool") public boolean removeTag(@Const @ByRef Tag tag)
tag
- The Tag to remove.@Cast(value="bool") public boolean hasMultiTag(@StdString String nameOrId)
nameOrId
- Name or id of a tag to check.MultiTag
@Cast(value="bool") public boolean hasMultiTag(@Const @ByRef MultiTag tag)
tag
- The tag to check.MultiTag
@Name(value="multiTagCount") public long getMultiTagCount()
public MultiTag getMultiTag(String nameOrId)
nameOrId
- Name or id of the tag.MultiTag
public MultiTag getMultiTag(long index)
index
- The index of the tag.MultiTag
public List<MultiTag> getMultiTags()
MultiTag
public List<MultiTag> getMultiTags(java.util.function.Predicate<MultiTag> filter)
filter
- A filter function.MultiTag
public void setMultiTags(List<MultiTag> tags)
tags
- A list with all MultiTag entities to add.MultiTag
public void addMultiTag(@StdString String nameOrId)
nameOrId
- The id of the MultiTag to add.public void addMultiTag(@Const @ByRef MultiTag tag)
tag
- The MultiTag to add.@Cast(value="bool") public boolean removeMultiTag(@StdString String nameOrId)
nameOrId
- The id of the MultiTag to remove.@Cast(value="bool") public boolean removeMultiTag(@Const @ByRef MultiTag tag)
tag
- The MultiTag to remove.Copyright © 2016. All rights reserved.