- All Superinterfaces:
Member
@OVLInaccessible public interface Field extends Member
This interface represents a field defined in OVL code.
- Author:
- Dr. Peter Droste, Omix Visualization
-
Method Summary
Modifier and Type Method Description void
connect(ValueChangeListener... listeners)
The method connects the sender to the submitted listeners Vice versa, a reverse connection is established by callingValueChangeListener.addSender(ValueChangeSender)
.void
disconnect(ValueChangeListener... listeners)
This method disconnects the submitted listeners from the sender By callingValueChangeListener.removeSender(ValueChangeSender)
the reverse connection is deleted.ClassType
getType()
Returns the type of the field.@IsVarType Object
getValue()
Reads the content of the field dynamically.boolean
isPrivate()
Returnstrue
if this field was definedprivate
.boolean
isProtected()
Returnstrue
if this field was definedprotected
.boolean
isPublic()
Returnstrue
if this field was definedpublic
.void
setValue(@IsVarType Object value)
Changes the content of the field dynamically.Methods inherited from interface omix.lang.reflect.Member
getAnnotation, getAnnotations, getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotations, getDeclaredAnnotationsByType, getName, getNamespace, isAnnotationPresent
-
Method Details
-
getValue
@IsVarType Object getValue()Reads the content of the field dynamically.- Returns:
- value of the field.
-
getType
ClassType getType()Returns the type of the field.- Returns:
- type
-
isPrivate
boolean isPrivate()Returnstrue
if this field was definedprivate
.- Returns:
- has private modifier?
-
isProtected
boolean isProtected()Returnstrue
if this field was definedprotected
.- Returns:
- has protected modifier?
-
isPublic
boolean isPublic()Returnstrue
if this field was definedpublic
.- Returns:
- has public modifier?
-
setValue
Changes the content of the field dynamically.- Parameters:
value
- the new value- Throws:
IllegalArgumentException
- if value does not matchgetType()
IllegalAccessException
- if field is not accessible
-
connect
The method connects the sender to the submitted listeners Vice versa, a reverse connection is established by callingValueChangeListener.addSender(ValueChangeSender)
.- Parameters:
listeners
- to be connected.
-
disconnect
This method disconnects the submitted listeners from the sender By callingValueChangeListener.removeSender(ValueChangeSender)
the reverse connection is deleted.- Parameters:
listeners
- to be disconnected.
-