public class RestrictionDefinitionImpl extends java.lang.Object implements RestrictionDefinition
RestrictionDefinition interface.| Constructor and Description |
|---|
RestrictionDefinitionImpl(java.lang.String name,
Type<?> type,
boolean isMandatory)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.lang.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(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
javax.jcr.PropertyType except javax.jcr.PropertyType#UNDEFINED
is allowed.isMandatory - A boolean indicating if the restriction is mandatory.public java.lang.String getName()
RestrictionDefinitiongetName in interface RestrictionDefinitionpublic Type<?> getRequiredType()
RestrictionDefinitiongetRequiredType in interface RestrictionDefinitionjavax.jcr.PropertyType.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.Object"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"