public class RestrictionDefinitionImpl extends Object implements RestrictionDefinition
RestrictionDefinition
interface.Constructor and Description |
---|
RestrictionDefinitionImpl(String name,
Type<?> type,
boolean isMandatory)
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getName()
The internal oak name of this restriction definition.
|
Type<?> |
getRequiredType()
The required type as defined by this definition.
|
int |
hashCode() |
boolean |
isMandatory()
Indicates if this restriction is mandatory.
|
public RestrictionDefinitionImpl(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
is allowed.isMandatory
- A boolean indicating if the restriction is mandatory.public String getName()
RestrictionDefinition
getName
in interface RestrictionDefinition
public Type<?> getRequiredType()
RestrictionDefinition
getRequiredType
in interface RestrictionDefinition
PropertyType
.public boolean isMandatory()
RestrictionDefinition
isMandatory
in interface RestrictionDefinition
true
if this restriction is mandatory; false
otherwise."Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"