Class RestrictionImpl

  • All Implemented Interfaces:
    Restriction

    public class RestrictionImpl
    extends java.lang.Object
    implements Restriction
    RestrictionImpl
    • Constructor Detail

      • RestrictionImpl

        public RestrictionImpl​(@NotNull
                               @NotNull PropertyState property,
                               boolean isMandatory)
    • Method Detail

      • getDefinition

        @NotNull
        public @NotNull RestrictionDefinition getDefinition()
        Description copied from interface: Restriction
        Returns the underlying restriction definition.
        Specified by:
        getDefinition in interface Restriction
        Returns:
        the restriction definition that applies to this restriction.
      • getProperty

        @NotNull
        public @NotNull PropertyState getProperty()
        Description copied from interface: Restriction
        The OAK property state associated with this restriction.
        Specified by:
        getProperty in interface Restriction
        Returns:
        An PropertyState.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object