Package de.haumacher.msgbuf.generator
Interface FieldOperations
-
- All Known Implementing Classes:
Field
public interface FieldOperationsMix-in interface forFieldproviding operations.- Author:
- Bernhard Haumacher
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Fieldcontainer()default StringgetReverse()The name of the inverse reference of this one.default OptiongetReverseAnnotation()The annotation marking this reference as "reverse".default booleanisContainer()Whether this is a derived reference pointing to the owner of the object this referenec belongs to.default booleanisDerived()Whether this field cannot be set by the applicationdefault booleanisRef()Whether this is a cross reference (not a composition which is the default).default booleanisReverse()Whether this is a reverse reference.default booleanisReverseOf(String name)Whether this field is the reverse to the reference with the given name.Fieldself()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
nullif no such reference exists.
-
getReverseAnnotation
default Option getReverseAnnotation()
The annotation marking this reference as "reverse".
-
container
default Field container()
-
-