Package org.minimalj.model.properties
Class VirtualProperty
java.lang.Object
org.minimalj.model.properties.VirtualProperty
- All Implemented Interfaces:
PropertyInterface
- Direct Known Subclasses:
CheckBoxFormElement.CheckBoxProperty
public abstract class VirtualProperty extends java.lang.Object implements PropertyInterface
Base class for properties which don't belong to an existing class.
This can be helpful if you want to edit a single property with two form fields.
This class could be removed by adding default methods to the PropertyInterface. This is not done on purpose as it would pollute the interface and suggest 'virtual' as the default implementation of a property (which it is not).
-
Constructor Summary
Constructors Constructor Description VirtualProperty()
-
Method Summary
Modifier and Type Method Description <T extends java.lang.annotation.Annotation>
TgetAnnotation(java.lang.Class<T> annotationClass)
java.lang.Class<?>
getDeclaringClass()
java.lang.Class<?>
getGenericClass()
java.lang.String
getPath()
boolean
isFinal()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.minimalj.model.properties.PropertyInterface
getClazz, getName, getValue, setValue
-
Constructor Details
-
VirtualProperty
public VirtualProperty()
-
-
Method Details
-
getDeclaringClass
public java.lang.Class<?> getDeclaringClass()- Specified by:
getDeclaringClass
in interfacePropertyInterface
-
getPath
public java.lang.String getPath()- Specified by:
getPath
in interfacePropertyInterface
-
getGenericClass
public java.lang.Class<?> getGenericClass()- Specified by:
getGenericClass
in interfacePropertyInterface
-
getAnnotation
public <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationClass)- Specified by:
getAnnotation
in interfacePropertyInterface
-
isFinal
public boolean isFinal()- Specified by:
isFinal
in interfacePropertyInterface
-