Class RestrictionImpl

  • All Implemented Interfaces:
    Restriction

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

      Constructors 
      Constructor Description
      RestrictionImpl​(@NotNull org.apache.jackrabbit.oak.api.PropertyState property, boolean isMandatory)  
      RestrictionImpl​(@NotNull org.apache.jackrabbit.oak.api.PropertyState property, @NotNull RestrictionDefinition def)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      @NotNull RestrictionDefinition getDefinition()
      Returns the underlying restriction definition.
      @NotNull org.apache.jackrabbit.oak.api.PropertyState getProperty()
      The OAK property state associated with this restriction.
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RestrictionImpl

        public RestrictionImpl​(@NotNull
                               @NotNull org.apache.jackrabbit.oak.api.PropertyState property,
                               @NotNull
                               @NotNull RestrictionDefinition def)
      • RestrictionImpl

        public RestrictionImpl​(@NotNull
                               @NotNull org.apache.jackrabbit.oak.api.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 org.apache.jackrabbit.oak.api.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