Class RestrictionDefinitionImpl

    • Constructor Summary

      Constructors 
      Constructor Description
      RestrictionDefinitionImpl​(@NotNull java.lang.String name, Type<?> type, boolean isMandatory)
      Create a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      @NotNull java.lang.String getName()
      The internal oak name of this restriction definition.
      @NotNull Type<?> getRequiredType()
      The required type as defined by this definition.
      int hashCode()  
      boolean isMandatory()
      Indicates if this restriction is mandatory.
      • Methods inherited from class java.lang.Object

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

      • RestrictionDefinitionImpl

        public RestrictionDefinitionImpl​(@NotNull
                                         @NotNull java.lang.String name,
                                         Type<?> type,
                                         boolean isMandatory)
        Create a new instance.
        Parameters:
        name - The oak name of the restriction definition.
        type - The required type of this definition. Any valid JCR PropertyType except PropertyType.UNDEFINED is allowed.
        isMandatory - A boolean indicating if the restriction is mandatory.
    • Method Detail

      • getName

        @NotNull
        public @NotNull java.lang.String getName()
        Description copied from interface: RestrictionDefinition
        The internal oak name of this restriction definition.
        Specified by:
        getName in interface RestrictionDefinition
        Returns:
        The oak name.
      • isMandatory

        public boolean isMandatory()
        Description copied from interface: RestrictionDefinition
        Indicates if this restriction is mandatory.
        Specified by:
        isMandatory in interface RestrictionDefinition
        Returns:
        true if this restriction is mandatory; false otherwise.
      • 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