Class InfobaseAssociationContext


  • public final class InfobaseAssociationContext
    extends Object
    The infobase association context.
    • Method Detail

      • of

        public static final InfobaseAssociationContext of​(String context,
                                                          InfobaseAssociationContext reference)
        Returns an infobase association context with the provided String presentation that refers to the other provided context. Presentation must not be started with . and must be convertable to Path.
        Parameters:
        context - the String presentation, cannot be null
        reference - the references association context, cannot be null
        Returns:
        an infobase association context that refers to the provided, never null
      • of

        public static final InfobaseAssociationContext of​(InfobaseAssociationContext context,
                                                          InfobaseAssociationContext reference)
        Returns an infobase association context with presentation equals to the provided that refers to the other provided context. Presentation must not be started with . and must be convertable to Path.
        Parameters:
        context - the association context, cannot be null
        reference - the references association context, cannot be null
        Returns:
        an infobase association context that refers to the provided, never null
      • of

        public static final InfobaseAssociationContext of​(String context)
        Returns an infobase association context with the provided String presentation. Presentation must not be started with . and must be convertable to Path.
        Parameters:
        context - the String presentation, cannot be null
        Returns:
        an infobase association context with the provided String presentation, never null
      • empty

        public static final InfobaseAssociationContext empty()
        Returns an empty infobase association context
        Returns:
        an empty infobase association context, never null
      • getContext

        public Optional<String> getContext()
        Returns an optional String presentation of infobase context.
        Returns:
        an optional String presentation of infobase context
      • getReference

        public Optional<InfobaseAssociationContext> getReference()
        Returns an optional referenced infobase association context.
        Returns:
        an optional referenced infobase association context
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object