Interface FieldOperations

  • All Known Implementing Classes:
    Field

    public interface FieldOperations
    Mix-in interface for Field providing operations.
    Author:
    Bernhard Haumacher
    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default Field container()
      The Field in this field's type that is marked as container, or null if no such field exists.
      default String getReverse()
      The name of the inverse reference of this one.
      default Option getReverseAnnotation()
      The annotation marking this reference as "reverse".
      default boolean isContainer()
      Whether this is a derived reference pointing to the owner of the object this referenec belongs to.
      default boolean isDerived()
      Whether this field cannot be set by the application
      default boolean isRef()
      Whether this is a cross reference (not a composition which is the default).
      default boolean isReverse()
      Whether this is a reverse reference.
      default boolean isReverseOf​(String name)
      Whether this field is the reverse to the reference with the given name.
      Field self()
      The implementation.
    • Method Detail

      • self

        Field self()
        The implementation.
      • isDerived

        default boolean isDerived()
        Whether this field cannot be set by the application
      • isContainer

        default boolean isContainer()
        Whether this is a derived reference pointing to the owner of the object this referenec belongs to.
      • isRef

        default boolean isRef()
        Whether this is a cross reference (not a composition which is the default).
      • isReverse

        default boolean isReverse()
        Whether this is a reverse reference.
      • isReverseOf

        default boolean isReverseOf​(String name)
        Whether this field is the reverse to the reference with the given name.
      • getReverse

        default String getReverse()
        The name of the inverse reference of this one.
        Returns:
        The name of the reverse reference to this one, or null if no such reference exists.
      • getReverseAnnotation

        default Option getReverseAnnotation()
        The annotation marking this reference as "reverse".
      • container

        default Field container()
        The Field in this field's type that is marked as container, or null if no such field exists.