Package jadex.bridge.nonfunctional
Class AbstractNFProperty<T,U>
- java.lang.Object
-
- jadex.bridge.nonfunctional.AbstractNFProperty<T,U>
-
- All Implemented Interfaces:
INFProperty<T,U>
- Direct Known Subclasses:
NFPropertyRef
,SimpleValueNFProperty
,TagProperty
public abstract class AbstractNFProperty<T,U> extends java.lang.Object implements INFProperty<T,U>
A non-functional property. NOTE: Implementing classes must implement a constructor with the signature INFProperty(String name) to allow the service to initialize the property during creation.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jadex.bridge.nonfunctional.INFProperty
INFProperty.Target
-
-
Field Summary
Fields Modifier and Type Field Description protected NFPropertyMetaInfo
metainfo
Name of the property.
-
Constructor Summary
Constructors Constructor Description AbstractNFProperty(NFPropertyMetaInfo metainfo)
Creates the property.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static INFProperty<?,?>
createProperty(java.lang.Class<?> clazz, IInternalAccess comp, IService service, MethodInfo mi, java.util.List<UnparsedExpression> params)
Create a property instance from its type.IFuture<java.lang.Void>
dispose()
Property was removed and should be disposed.NFPropertyMetaInfo
getMetaInfo()
Get the metainfo.java.lang.String
getName()
Gets the name of the property.IFuture<java.lang.String>
getPrettyPrintValue()
Returns the current value of the property in a human readable form.IFuture<T>
getValue()
Returns the current value of the property.static java.util.List<INFProperty<?,?>>
readNFProperties(java.lang.Class<?> type, IInternalAccess comp, IService ser, MethodInfo mi)
Create nf properties form a class with nf annotations.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jadex.bridge.nonfunctional.INFProperty
getValue
-
-
-
-
Field Detail
-
metainfo
protected NFPropertyMetaInfo metainfo
Name of the property.
-
-
Constructor Detail
-
AbstractNFProperty
public AbstractNFProperty(NFPropertyMetaInfo metainfo)
Creates the property.- Parameters:
name
- Name of the property.
-
-
Method Detail
-
getName
public java.lang.String getName()
Gets the name of the property.- Specified by:
getName
in interfaceINFProperty<T,U>
- Returns:
- The name of the property.
-
getValue
public IFuture<T> getValue()
Returns the current value of the property.- Specified by:
getValue
in interfaceINFProperty<T,U>
- Returns:
- The current value of the property.
-
getMetaInfo
public NFPropertyMetaInfo getMetaInfo()
Get the metainfo.- Specified by:
getMetaInfo
in interfaceINFProperty<T,U>
- Returns:
- The metainfo.
-
getPrettyPrintValue
public IFuture<java.lang.String> getPrettyPrintValue()
Returns the current value of the property in a human readable form.- Specified by:
getPrettyPrintValue
in interfaceINFProperty<T,U>
- Returns:
- The current value of the property.
-
readNFProperties
public static java.util.List<INFProperty<?,?>> readNFProperties(java.lang.Class<?> type, IInternalAccess comp, IService ser, MethodInfo mi)
Create nf properties form a class with nf annotations.
-
createProperty
public static INFProperty<?,?> createProperty(java.lang.Class<?> clazz, IInternalAccess comp, IService service, MethodInfo mi, java.util.List<UnparsedExpression> params)
Create a property instance from its type.
-
dispose
public IFuture<java.lang.Void> dispose()
Property was removed and should be disposed.- Specified by:
dispose
in interfaceINFProperty<T,U>
-
-