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()
RestrictionDefinition
getName
in interface RestrictionDefinition
public Type<?> getRequiredType()
RestrictionDefinition
getRequiredType
in interface RestrictionDefinition
javax.jcr.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 - 2020 Adobe Systems Incorporated. All Rights Reserved"