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()
RestrictionDefinitiongetName in interface RestrictionDefinition@NotNull public @NotNull Type<?> getRequiredType()
RestrictionDefinitiongetRequiredType in interface RestrictionDefinitionPropertyType.public boolean isMandatory()
RestrictionDefinitionisMandatory in interface RestrictionDefinitiontrue if this restriction is mandatory; false otherwise.public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.ObjectCopyright © 2010 - 2023 Adobe. All Rights Reserved