Class NullNavigationNavigator

java.lang.Object
ch.tocco.nice2.model.form.impl.datanavigation.NullNavigationNavigator
All Implemented Interfaces:
DataPathNavigator

public class NullNavigationNavigator extends Object implements DataPathNavigator
Hack to have fields in entity forms that are not related to an entity field.
  • Constructor Details

    • NullNavigationNavigator

      public NullNavigationNavigator()
  • Method Details

    • asSchemaNavigation

      @Nullable public @Nullable String asSchemaNavigation(String pathAsString, Class<?> cls)
      Description copied from interface: DataPathNavigator
      Q: I really don't know how this thing can be used on queries or scripts... A (roman): Can only be used in stuff like relation-names/field-names. Maybe i can be used on queries, but then it only returns the target type or something.

      The idea is that the system can navigate on a schema (like relation, fields, java-bean-properties etc) without having the actual data yet.
      Specified by:
      asSchemaNavigation in interface DataPathNavigator
      Parameters:
      pathAsString - the path we want to navigate on
      cls - a class which represents the schema-type. For example if its an 'EntityModel' the navigation is on the data-base-schema.
      Returns:
      null if the navigation isn't supportet for this type. Otherwhise it returns the path.
    • useNullDataSource

      public boolean useNullDataSource()
      Specified by:
      useNullDataSource in interface DataPathNavigator