public class RestrictionDefinitionImpl extends Object implements RestrictionDefinition
RestrictionDefinition interface.| Constructor and Description |
|---|
RestrictionDefinitionImpl(@NotNull String name,
org.apache.jackrabbit.oak.api.Type<?> type,
boolean isMandatory)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
@NotNull String |
getName()
The internal oak name of this restriction definition.
|
@NotNull org.apache.jackrabbit.oak.api.Type<?> |
getRequiredType()
The required type as defined by this definition.
|
int |
hashCode() |
boolean |
isMandatory()
Indicates if this restriction is mandatory.
|
public RestrictionDefinitionImpl(@NotNull
@NotNull String name,
org.apache.jackrabbit.oak.api.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 String getName()
RestrictionDefinitiongetName in interface RestrictionDefinition@NotNull public @NotNull org.apache.jackrabbit.oak.api.Type<?> getRequiredType()
RestrictionDefinitiongetRequiredType in interface RestrictionDefinitionPropertyType.public boolean isMandatory()
RestrictionDefinitionisMandatory in interface RestrictionDefinitiontrue if this restriction is mandatory; false otherwise.Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.