Class PropertyDefinitionImpl
- java.lang.Object
-
- org.apache.jackrabbit.spi.commons.nodetype.PropertyDefinitionImpl
-
- All Implemented Interfaces:
ItemDefinition,PropertyDefinition
public class PropertyDefinitionImpl extends java.lang.Object implements PropertyDefinition
This class implements thePropertyDefinitioninterface. All method calls are delegated to the wrappedQPropertyDefinition, performing the translation fromNames to JCR names (and vice versa) where necessary.
-
-
Constructor Summary
Constructors Constructor Description PropertyDefinitionImpl(QPropertyDefinition propDef, NamePathResolver resolver, ValueFactory valueFactory)Package private constructorPropertyDefinitionImpl(QPropertyDefinition propDef, AbstractNodeTypeManager ntMgr, NamePathResolver resolver, ValueFactory valueFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.String[]getAvailableQueryOperators()NodeTypegetDeclaringNodeType()Value[]getDefaultValues()java.lang.StringgetName()intgetOnParentVersion()intgetRequiredType()java.lang.String[]getValueConstraints()inthashCode()booleanisAutoCreated()booleanisFullTextSearchable()booleanisMandatory()booleanisMultiple()booleanisProtected()booleanisQueryOrderable()QPropertyDefinitionunwrap()Returns the wrapped property definition.-
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.jcr.nodetype.ItemDefinition
getDeclaringNodeType, getName, getOnParentVersion, isAutoCreated, isMandatory, isProtected
-
-
-
-
Constructor Detail
-
PropertyDefinitionImpl
public PropertyDefinitionImpl(QPropertyDefinition propDef, NamePathResolver resolver, ValueFactory valueFactory)
Package private constructor- Parameters:
propDef- property definitionresolver- the name-path resolvervalueFactory- a value factory
-
PropertyDefinitionImpl
public PropertyDefinitionImpl(QPropertyDefinition propDef, AbstractNodeTypeManager ntMgr, NamePathResolver resolver, ValueFactory valueFactory)
- Parameters:
propDef- underlying propdefntMgr- nodetype managerresolver- name-path resolvervalueFactory- value factory (for default values)
-
-
Method Detail
-
unwrap
public QPropertyDefinition unwrap()
Returns the wrapped property definition.- Returns:
- the wrapped property definition.
-
getDefaultValues
public Value[] getDefaultValues()
- Specified by:
getDefaultValuesin interfacePropertyDefinition
-
getRequiredType
public int getRequiredType()
- Specified by:
getRequiredTypein interfacePropertyDefinition
-
getValueConstraints
public java.lang.String[] getValueConstraints()
- Specified by:
getValueConstraintsin interfacePropertyDefinition
-
isMultiple
public boolean isMultiple()
- Specified by:
isMultiplein interfacePropertyDefinition
-
getAvailableQueryOperators
public java.lang.String[] getAvailableQueryOperators()
- Specified by:
getAvailableQueryOperatorsin interfacePropertyDefinition- See Also:
PropertyDefinition.getAvailableQueryOperators()
-
isFullTextSearchable
public boolean isFullTextSearchable()
- Specified by:
isFullTextSearchablein interfacePropertyDefinition- See Also:
PropertyDefinition.isFullTextSearchable()
-
isQueryOrderable
public boolean isQueryOrderable()
- Specified by:
isQueryOrderablein interfacePropertyDefinition- See Also:
PropertyDefinition.isQueryOrderable()
-
getDeclaringNodeType
public NodeType getDeclaringNodeType()
- Specified by:
getDeclaringNodeTypein interfaceItemDefinition
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceItemDefinition
-
getOnParentVersion
public int getOnParentVersion()
- Specified by:
getOnParentVersionin interfaceItemDefinition
-
isAutoCreated
public boolean isAutoCreated()
- Specified by:
isAutoCreatedin interfaceItemDefinition
-
isMandatory
public boolean isMandatory()
- Specified by:
isMandatoryin interfaceItemDefinition
-
isProtected
public boolean isProtected()
- Specified by:
isProtectedin interfaceItemDefinition
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-