@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.
|
compareToisInitialized@Cast(value="bool") public boolean isNone()
ImplContainerisNone in class ImplContainer@Name(value="id") @StdString public String getId()
public Date getCreatedAt()
getCreatedAt in class Entitypublic Date getUpdatedAt()
getUpdatedAt in class Entitypublic void setUpdatedAt()
setUpdatedAt in class Entitypublic void forceUpdatedAt()
forceUpdatedAt in class Entitypublic void setCreatedAt()
setCreatedAt in class Entitypublic void forceCreatedAt(Date date)
forceCreatedAt in class Entitydate - The creation date to set.@Name(value="type")
public void setType(@StdString
String type)
setType in class NamedEntitytype - 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 NamedEntitypublic void setDefinition(String definition)
setDefinition in class NamedEntitydefinition - definition of the group.public String getDefinition()
getDefinition in class NamedEntity@Name(value="metadata") public Section getMetadata()
getMetadata in class EntityWithMetadataSection@Name(value="metadata")
public void setMetadata(@Const @ByRef
Section metadata)
setMetadata in class EntityWithMetadatametadata - The Section that should be associated
with this entity.Section@Name(value="metadata")
public void setMetadata(@StdString
String id)
setMetadata in class EntityWithMetadataid - The id of the Section that should be associated
with this entity.Sectionpublic void removeMetadata()
removeMetadata in class EntityWithMetadataSection@Name(value="sourceCount") public long getSourceCount()
getSourceCount in class EntityWithSourcesSource@Cast(value="bool")
public boolean hasSource(@StdString
String id)
hasSource in class EntityWithSourcesid - The source id to check.Source@Cast(value="bool")
public boolean hasSource(@Const @ByRef
Source source)
hasSource in class EntityWithSourcessource - The source to check.Sourcepublic Source getSource(String id)
getSource in class EntityWithSourcesid - The id of the associated source.Sourcepublic Source getSource(long index)
getSource in class EntityWithSourcesindex - The index of the associated source.Sourcepublic List<Source> getSources()
getSources in class EntityWithSourcesSourcepublic List<Source> getSources(java.util.function.Predicate<Source> filter)
Sourcepublic void setSources(List<Source> sources)
setSources in class EntityWithSourcessources - A list with all sources.Sourcepublic void addSource(@StdString
String id)
addSource in class EntityWithSourcesid - The id of the source.Sourcepublic void addSource(@Const @ByRef
Source source)
addSource in class EntityWithSourcessource - The source to add.Source@Cast(value="bool")
public boolean removeSource(@StdString
String id)
removeSource in class EntityWithSourcesid - The id of the source to remove.Source@Cast(value="bool")
public boolean removeSource(@Const @ByRef
Source source)
removeSource in class EntityWithSourcessource - 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.DataArraypublic DataArray getDataArray(String nameOrId)
nameOrId - Name or id of an existing data array.DataArraypublic DataArray getDataArray(long index)
index - The index of the data array.DataArraypublic List<DataArray> getDataArrays()
DataArraypublic List<DataArray> getDataArrays(java.util.function.Predicate<DataArray> filter)
filter - A filter function.DataArraypublic void setDataArrays(List<DataArray> dataArrays)
dataArrays - A list with all DataArray entities to add.DataArraypublic 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.Tagpublic Tag getTag(long index)
index - The index of the tag.Tagpublic List<Tag> getTags()
Tagpublic List<Tag> getTags(java.util.function.Predicate<Tag> filter)
filter - A filter function.Tagpublic void setTags(List<Tag> tags)
tags - A list with all Tag entities to add.Tagpublic 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.MultiTagpublic MultiTag getMultiTag(long index)
index - The index of the tag.MultiTagpublic List<MultiTag> getMultiTags()
MultiTagpublic List<MultiTag> getMultiTags(java.util.function.Predicate<MultiTag> filter)
filter - A filter function.MultiTagpublic void setMultiTags(List<MultiTag> tags)
tags - A list with all MultiTag entities to add.MultiTagpublic 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.