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 thePropertyDefinition
interface. All method calls are delegated to the wrappedQPropertyDefinition
, performing the translation fromName
s to JCR names (and vice versa) where necessary.
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
ANY_NAME
Literal for 'any name'.protected QItemDefinition
itemDef
The wrapped item definition.protected AbstractNodeTypeManager
ntMgr
The node type manager of this session.protected NamePathResolver
resolver
The namespace resolver used to translateName
s 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 boolean
equals(Object o)
String[]
getAvailableQueryOperators()
NodeType
getDeclaringNodeType()
Value[]
getDefaultValues()
String
getName()
int
getOnParentVersion()
int
getRequiredType()
String[]
getValueConstraints()
int
hashCode()
boolean
isAutoCreated()
boolean
isFullTextSearchable()
boolean
isMandatory()
boolean
isMultiple()
boolean
isProtected()
boolean
isQueryOrderable()
QPropertyDefinition
unwrap()
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 translateName
s 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:
getDefaultValues
in interfacePropertyDefinition
-
getRequiredType
public int getRequiredType()
- Specified by:
getRequiredType
in interfacePropertyDefinition
-
getValueConstraints
public String[] getValueConstraints()
- Specified by:
getValueConstraints
in interfacePropertyDefinition
-
isMultiple
public boolean isMultiple()
- Specified by:
isMultiple
in interfacePropertyDefinition
-
getAvailableQueryOperators
public String[] getAvailableQueryOperators()
- Specified by:
getAvailableQueryOperators
in interfacePropertyDefinition
- See Also:
PropertyDefinition.getAvailableQueryOperators()
-
isFullTextSearchable
public boolean isFullTextSearchable()
- Specified by:
isFullTextSearchable
in interfacePropertyDefinition
- See Also:
PropertyDefinition.isFullTextSearchable()
-
isQueryOrderable
public boolean isQueryOrderable()
- Specified by:
isQueryOrderable
in interfacePropertyDefinition
- See Also:
PropertyDefinition.isQueryOrderable()
-
getDeclaringNodeType
public NodeType getDeclaringNodeType()
- Specified by:
getDeclaringNodeType
in interfaceItemDefinition
-
getName
public String getName()
- Specified by:
getName
in interfaceItemDefinition
-
getOnParentVersion
public int getOnParentVersion()
- Specified by:
getOnParentVersion
in interfaceItemDefinition
-
isAutoCreated
public boolean isAutoCreated()
- Specified by:
isAutoCreated
in interfaceItemDefinition
-
isMandatory
public boolean isMandatory()
- Specified by:
isMandatory
in interfaceItemDefinition
-
isProtected
public boolean isProtected()
- Specified by:
isProtected
in interfaceItemDefinition
-
-