Class PropertyDefinitionImpl
- java.lang.Object
-
- org.apache.jackrabbit.spi.commons.nodetype.PropertyDefinitionImpl
-
- All Implemented Interfaces:
javax.jcr.nodetype.ItemDefinition,javax.jcr.nodetype.PropertyDefinition
public class PropertyDefinitionImpl extends java.lang.Object implements javax.jcr.nodetype.PropertyDefinitionThis 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, javax.jcr.ValueFactory valueFactory)Package private constructorPropertyDefinitionImpl(QPropertyDefinition propDef, AbstractNodeTypeManager ntMgr, NamePathResolver resolver, javax.jcr.ValueFactory valueFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.String[]getAvailableQueryOperators()javax.jcr.nodetype.NodeTypegetDeclaringNodeType()javax.jcr.Value[]getDefaultValues()java.lang.StringgetName()intgetOnParentVersion()intgetRequiredType()java.lang.String[]getValueConstraints()inthashCode()booleanisAutoCreated()booleanisFullTextSearchable()booleanisMandatory()booleanisMultiple()booleanisProtected()booleanisQueryOrderable()QPropertyDefinitionunwrap()Returns the wrapped property definition.
-
-
-
Constructor Detail
-
PropertyDefinitionImpl
public PropertyDefinitionImpl(QPropertyDefinition propDef, NamePathResolver resolver, javax.jcr.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, javax.jcr.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 javax.jcr.Value[] getDefaultValues()
- Specified by:
getDefaultValuesin interfacejavax.jcr.nodetype.PropertyDefinition
-
getRequiredType
public int getRequiredType()
- Specified by:
getRequiredTypein interfacejavax.jcr.nodetype.PropertyDefinition
-
getValueConstraints
public java.lang.String[] getValueConstraints()
- Specified by:
getValueConstraintsin interfacejavax.jcr.nodetype.PropertyDefinition
-
isMultiple
public boolean isMultiple()
- Specified by:
isMultiplein interfacejavax.jcr.nodetype.PropertyDefinition
-
getAvailableQueryOperators
public java.lang.String[] getAvailableQueryOperators()
- Specified by:
getAvailableQueryOperatorsin interfacejavax.jcr.nodetype.PropertyDefinition- See Also:
PropertyDefinition.getAvailableQueryOperators()
-
isFullTextSearchable
public boolean isFullTextSearchable()
- Specified by:
isFullTextSearchablein interfacejavax.jcr.nodetype.PropertyDefinition- See Also:
PropertyDefinition.isFullTextSearchable()
-
isQueryOrderable
public boolean isQueryOrderable()
- Specified by:
isQueryOrderablein interfacejavax.jcr.nodetype.PropertyDefinition- See Also:
PropertyDefinition.isQueryOrderable()
-
getDeclaringNodeType
public javax.jcr.nodetype.NodeType getDeclaringNodeType()
- Specified by:
getDeclaringNodeTypein interfacejavax.jcr.nodetype.ItemDefinition
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfacejavax.jcr.nodetype.ItemDefinition
-
getOnParentVersion
public int getOnParentVersion()
- Specified by:
getOnParentVersionin interfacejavax.jcr.nodetype.ItemDefinition
-
isAutoCreated
public boolean isAutoCreated()
- Specified by:
isAutoCreatedin interfacejavax.jcr.nodetype.ItemDefinition
-
isMandatory
public boolean isMandatory()
- Specified by:
isMandatoryin interfacejavax.jcr.nodetype.ItemDefinition
-
isProtected
public boolean isProtected()
- Specified by:
isProtectedin interfacejavax.jcr.nodetype.ItemDefinition
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-