public class RestrictionDefinitionImpl extends java.lang.Object implements RestrictionDefinition
RestrictionDefinition
interface.Constructor and Description |
---|
RestrictionDefinitionImpl(@NotNull java.lang.String name,
Type<?> type,
boolean isMandatory)
Create a new instance.
|
Modifier and Type | Method and 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.
|
public RestrictionDefinitionImpl(@NotNull @NotNull java.lang.String name, Type<?> type, boolean isMandatory)
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.@NotNull public @NotNull java.lang.String getName()
RestrictionDefinition
getName
in interface RestrictionDefinition
@NotNull public @NotNull Type<?> getRequiredType()
RestrictionDefinition
getRequiredType
in interface RestrictionDefinition
PropertyType
.public boolean isMandatory()
RestrictionDefinition
isMandatory
in interface RestrictionDefinition
true
if this restriction is mandatory; false
otherwise.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
Copyright © 2010 - 2023 Adobe. All Rights Reserved