Class PropertyDefinitionImpl
- java.lang.Object
-
- org.apache.jackrabbit.spi.commons.nodetype.PropertyDefinitionImpl
-
- All Implemented Interfaces:
ItemDefinition,PropertyDefinition
public class PropertyDefinitionImpl extends 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.
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringANY_NAMELiteral for 'any name'.protected QItemDefinitionitemDefThe wrapped item definition.protected AbstractNodeTypeManagerntMgrThe node type manager of this session.protected NamePathResolverresolverThe namespace resolver used to translateNames to JCR name strings.
-
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(Object o)String[]getAvailableQueryOperators()NodeTypegetDeclaringNodeType()Value[]getDefaultValues()StringgetName()intgetOnParentVersion()intgetRequiredType()String[]getValueConstraints()inthashCode()booleanisAutoCreated()booleanisFullTextSearchable()booleanisMandatory()booleanisMultiple()booleanisProtected()booleanisQueryOrderable()QPropertyDefinitionunwrap()Returns the wrapped property definition.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.jcr.nodetype.ItemDefinition
getDeclaringNodeType, getName, getOnParentVersion, isAutoCreated, isMandatory, isProtected
-
-
-
-
Field Detail
-
ANY_NAME
protected static final String ANY_NAME
Literal for 'any name'.- See Also:
- Constant Field Values
-
resolver
protected final NamePathResolver resolver
The namespace resolver used to translateNames to JCR name strings.
-
ntMgr
protected final AbstractNodeTypeManager ntMgr
The node type manager of this session.
-
itemDef
protected final QItemDefinition itemDef
The wrapped item definition.
-
-
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 String[] getValueConstraints()
- Specified by:
getValueConstraintsin interfacePropertyDefinition
-
isMultiple
public boolean isMultiple()
- Specified by:
isMultiplein interfacePropertyDefinition
-
getAvailableQueryOperators
public 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 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
-
-