@Platform(include="<nix/Property.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 Property
extends Entity
implements Comparable<Property>
In the odML model information is stored in the form of extended
key-value pairs. A Property contains information that is valid for
all Values stored in it. Its DataType provides information about
the type of the stored Value entities (e.g. double or integer).
The setUnit(String) is the unit of the stored values. Similar
to the Section entity, mapping information can be provided
using the setMapping(String) field.
| Constructor and Description |
|---|
Property()
Constructor that creates an uninitialized Property.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Property property) |
void |
deleteValues()
Deletes all values from the property.
|
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 property.
|
int |
getDataType()
Returns the data type of the stored Values.
|
String |
getDefinition()
Getter for the definition of the property.
|
String |
getId()
Get id of the property.
|
String |
getMapping()
Retrieve Getter for the mapping information stored in this Property.
|
String |
getName()
Getter for the name of the property.
|
String |
getUnit()
Returns the unit for all stored values.
|
Date |
getUpdatedAt()
Get the date of the last update.
|
long |
getValueCount()
Get the number of values of the property.
|
List<Value> |
getValues()
Get all values of the property.
|
boolean |
isNone()
Check if entity is null
|
void |
setCreatedAt()
Sets the creation time to the current time if the field is not set.
|
void |
setDefinition(String definition)
Setter for the definition of the property.
|
void |
setMapping(String mapping)
Set the mapping information for this Property.
|
void |
setUnit(String unit)
Set the unit for all stored values.
|
void |
setUpdatedAt()
Sets the time of the last update to the current time if the field is not set.
|
void |
setValues(List<Value> values)
Set the values of the property.
|
String |
toString() |
isInitializedpublic Property()
Calling any method on an uninitialized property will throw a RuntimeException.
@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="name") @StdString public String getName()
The of an property serves as a human readable identifier. It is not obliged
to be unique. However it is strongly recommended to use unique name inside one specific
Section.
public void setDefinition(String definition)
definition - definition of property. If null is passed definition is removed.public String getDefinition()
The definition is an optional property that allows the user to add a freely assignable textual definition to the property.
public String getMapping()
public void setMapping(String mapping)
The mapping defines how this Property should be treated in a mapping procedure. The mapping is provided in form of an url pointing to the definition of a section into which this property should be mapped.
mapping - The mapping information. If null is passed the unit is removed.@Name(value="dataType") @ByVal @Cast(value="nix::DataType") public int getDataType()
DataTypepublic String getUnit()
public void setUnit(String unit)
unit - The unit for all values. If null is passed the unit is removed.public void deleteValues()
Value@Name(value="valueCount") public long getValueCount()
Valuepublic void setValues(List<Value> values)
values - The values to set.Valuepublic List<Value> getValues()
Valuepublic int compareTo(Property property)
compareTo in interface Comparable<Property>public String toString()
toString in class org.bytedeco.javacpp.PointerCopyright © 2016. All rights reserved.