Module omix.api

Interface FieldInfo


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 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()
      Returns true if this field was defined private.
      Returns:
      has private modifier?
    • isProtected

      boolean isProtected()
      Returns true if this field was defined protected.
      Returns:
      has protected modifier?
    • isPublic

      boolean isPublic()
      Returns true if this field was defined public.
      Returns:
      has public modifier?
    • isFinal

      boolean isFinal()
      Returns true if this field was defined final.
      Returns:
      has final modifier?
    • getOwner

      Object getOwner()
      owner of the field. Usually an instance of Component or OVLObject.
    • isAnnotationPresent

      boolean isAnnotationPresent​(Class<? extends Annotation> a)
      This method tests if the member is defined with a certain Java annotation.
      Parameters:
      a - the Java annotation
      Returns:
      true if available
    • getAnnotation

      <T extends Annotation> T getAnnotation​(Class<T> cls)
      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

      <T extends Annotation> T[] getAnnotationsByType​(Class<T> annotationClass)
    • 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