@Platform(include="<nix/Feature.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 Feature extends Entity
Tag
or
MultiTag
A Feature entity contains a link to an existing DataArray
containing additional
data that belongs to the respective tag. The way how data and feature are connected is specified by the
link type.
DataArray
belongs to the Feature. This subset is defined by the position and extent of the
respective tag.
DataArray
belongs to
the Feature.
Constructor and Description |
---|
Feature()
Constructor that creates an uninitialized Feature.
|
Modifier and Type | Method and Description |
---|---|
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 feature.
|
DataArray |
getData()
Gets the data array associated with this feature.
|
String |
getId()
Get id of the feature.
|
int |
getLinkType()
Getter for the link type.
|
Date |
getUpdatedAt()
Get the date of the last update.
|
boolean |
isNone()
Check if entity is null
|
static String |
linkTypeToString(int linkType)
Convert
LinkType to string. |
void |
setCreatedAt()
Sets the creation time to the current time if the field is not set.
|
void |
setData(DataArray data)
Sets the data array associated with this feature.
|
void |
setData(String nameOrId)
Sets the data array associated with this feature.
|
void |
setLinkType(int type)
Setter for the link type.
|
void |
setUpdatedAt()
Sets the time of the last update to the current time if the field is not set.
|
String |
toString() |
isInitialized
public Feature()
Calling any method on an uninitialized feature will throw a RuntimeException
.
@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="linkType") public void setLinkType(@Cast(value="nix::LinkType") int type)
type
- The link type to set.LinkType
@Name(value="linkType") @ByVal @Cast(value="nix::LinkType") public int getLinkType()
LinkType
@Name(value="data") public void setData(@StdString String nameOrId)
nameOrId
- Name or id of the data array to set.@Name(value="data") public void setData(@Const @ByRef DataArray data)
data
- The data array to set.DataArray
@Name(value="data") @ByVal public DataArray getData()
DataArray
public static String linkTypeToString(int linkType)
LinkType
to string.linkType
- link to convertLinkType
public String toString()
toString
in class org.bytedeco.javacpp.Pointer
Copyright © 2016. All rights reserved.