public interface FieldInfo
This class provides information about the edited field for the
TypeEditHandlerInterface
.- Since:
- Omix 1.5.4
- Author:
- Dr. Peter Droste, Omix Visualization
-
Method Summary
Modifier and Type Method Description <T extends Annotation>
TgetAnnotation(Class<T> cls)
This method returns the annotation of this member identified by its class.Annotation[]
getAnnotations()
This method returns an array of all available annotations of this member.<T extends Annotation>
T[]getAnnotationsByType(Class<T> annotationClass)
String
getName()
The name of the member in OVL source code.String
getNamespace()
The OVL namespace the member was defined in.Object
getOwner()
owner of the field.ClassType
getType()
Returns the type of the field.Object
getValue()
Reads the content of the field dynamically.boolean
isAnnotationPresent(Class<? extends Annotation> a)
This method tests if the member is defined with a certain Java annotation.boolean
isFinal()
Returnstrue
if this field was definedfinal
.boolean
isPrivate()
Returnstrue
if this field was definedprivate
.boolean
isProtected()
Returnstrue
if this field was definedprotected
.boolean
isPublic()
Returnstrue
if this field was definedpublic
.
-
Method Details
-
getValue
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?
-
isFinal
boolean isFinal()Returnstrue
if this field was definedfinal
.- Returns:
- has final modifier?
-
getOwner
Object getOwner() -
isAnnotationPresent
This method tests if the member is defined with a certain Java annotation.- Parameters:
a
- the Java annotation- Returns:
- true if available
-
getAnnotation
This method returns the annotation of this member identified by its class.- Type Parameters:
T
- the type of the annotation- Parameters:
cls
- the class of the annotation- Returns:
- the annotation if available
-
getAnnotationsByType
-
getAnnotations
Annotation[] getAnnotations()This method returns an array of all available annotations of this member.- Returns:
- list of annotations
-
getName
String getName()The name of the member in OVL source code.- Returns:
- name
-
getNamespace
String getNamespace()The OVL namespace the member was defined in.- Returns:
- name
-