public class NFPropertyMetaInfo extends Object implements INFPropertyMetaInfo
| Constructor and Description |
|---|
NFPropertyMetaInfo()
Creates an empty meta info.
|
NFPropertyMetaInfo(String name,
Class<?> type)
Creates a meta info.
|
NFPropertyMetaInfo(String name,
Class<?> type,
Class<?> unit,
boolean dynamic,
long updaterate,
boolean realtime,
INFProperty.Target target)
Creates a meta info.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Gets the name of the property.
|
INFProperty.Target |
getTarget()
Get the target.
|
Class<?> |
getType()
Gets the type of the property.
|
Class<?> |
getUnit()
Gets the unit of the property.
|
long |
getUpdateRate()
Gets the update rate of the property, if it exists, for dynamic properties.
|
boolean |
isDynamic()
Checks if the property is dynamic.
|
boolean |
isRealtime()
Checks if the property is real time.
|
void |
setDynamic(boolean dynamic)
Sets the dynamic flag of the property.
|
void |
setName(String name)
Sets the name of the property.
|
void |
setRealtime(boolean realtime)
Sets the real time flag of the property.
|
void |
setTarget(INFProperty.Target target)
Set the target.
|
void |
setType(Class<?> type)
Sets the type of the property.
|
void |
setUnit(Class<?> unit)
Sets the unit of the property.
|
void |
setUpdateRate(long updaterate)
Sets the update rate of the property for dynamic properties.
|
public NFPropertyMetaInfo()
public NFPropertyMetaInfo(String name, Class<?> type)
name - Name of the property.public NFPropertyMetaInfo(String name, Class<?> type, Class<?> unit, boolean dynamic, long updaterate, boolean realtime, INFProperty.Target target)
name - Name of the property.type - Type of the property.unit - Unit of the property.dynamic - Flag if the property is dynamic.updaterate - Update rate of the property.target - Target of the property.public String getName()
getName in interface INFPropertyMetaInfopublic Class<?> getType()
getType in interface INFPropertyMetaInfopublic Class<?> getUnit()
getUnit in interface INFPropertyMetaInfopublic boolean isDynamic()
isDynamic in interface INFPropertyMetaInfopublic long getUpdateRate()
getUpdateRate in interface INFPropertyMetaInfopublic boolean isRealtime()
isRealtime in interface INFPropertyMetaInfopublic void setName(String name)
name - The name of the property.public void setType(Class<?> type)
type - The type.public void setUnit(Class<?> unit)
unit - The unit of the property.public void setDynamic(boolean dynamic)
dynamic - The dynamic flag value.public void setUpdateRate(long updaterate)
updaterate - The update rate.public void setRealtime(boolean realtime)
realtime - The real time flag value.public INFProperty.Target getTarget()
getTarget in interface INFPropertyMetaInfopublic void setTarget(INFProperty.Target target)
target - The target to set.Copyright © 2015. All Rights Reserved.