public class PropertyDefinitionImpl extends Object implements javax.jcr.nodetype.PropertyDefinition
PropertyDefinition interface.
All method calls are delegated to the wrapped QPropertyDefinition,
performing the translation from Names to JCR names
(and vice versa) where necessary.| Modifier and Type | Field and Description |
|---|---|
protected static String |
ANY_NAME
Literal for 'any name'.
|
protected org.apache.jackrabbit.spi.QItemDefinition |
itemDef
The wrapped item definition.
|
protected AbstractNodeTypeManager |
ntMgr
The node type manager of this session.
|
protected NamePathResolver |
resolver
The namespace resolver used to translate
Names to JCR name strings. |
| Constructor and Description |
|---|
PropertyDefinitionImpl(org.apache.jackrabbit.spi.QPropertyDefinition propDef,
AbstractNodeTypeManager ntMgr,
NamePathResolver resolver,
javax.jcr.ValueFactory valueFactory) |
PropertyDefinitionImpl(org.apache.jackrabbit.spi.QPropertyDefinition propDef,
NamePathResolver resolver,
javax.jcr.ValueFactory valueFactory)
Package private constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String[] |
getAvailableQueryOperators() |
javax.jcr.nodetype.NodeType |
getDeclaringNodeType() |
javax.jcr.Value[] |
getDefaultValues() |
String |
getName() |
int |
getOnParentVersion() |
int |
getRequiredType() |
String[] |
getValueConstraints() |
int |
hashCode() |
boolean |
isAutoCreated() |
boolean |
isFullTextSearchable() |
boolean |
isMandatory() |
boolean |
isMultiple() |
boolean |
isProtected() |
boolean |
isQueryOrderable() |
org.apache.jackrabbit.spi.QPropertyDefinition |
unwrap()
Returns the wrapped property definition.
|
protected static final String ANY_NAME
protected final NamePathResolver resolver
Names to JCR name strings.protected final AbstractNodeTypeManager ntMgr
protected final org.apache.jackrabbit.spi.QItemDefinition itemDef
public PropertyDefinitionImpl(org.apache.jackrabbit.spi.QPropertyDefinition propDef,
NamePathResolver resolver,
javax.jcr.ValueFactory valueFactory)
propDef - property definitionresolver - the name-path resolvervalueFactory - a value factorypublic PropertyDefinitionImpl(org.apache.jackrabbit.spi.QPropertyDefinition propDef,
AbstractNodeTypeManager ntMgr,
NamePathResolver resolver,
javax.jcr.ValueFactory valueFactory)
propDef - underlying propdefntMgr - nodetype managerresolver - name-path resolvervalueFactory - value factory (for default values)public org.apache.jackrabbit.spi.QPropertyDefinition unwrap()
public javax.jcr.Value[] getDefaultValues()
getDefaultValues in interface javax.jcr.nodetype.PropertyDefinitionpublic int getRequiredType()
getRequiredType in interface javax.jcr.nodetype.PropertyDefinitionpublic String[] getValueConstraints()
getValueConstraints in interface javax.jcr.nodetype.PropertyDefinitionpublic boolean isMultiple()
isMultiple in interface javax.jcr.nodetype.PropertyDefinitionpublic String[] getAvailableQueryOperators()
getAvailableQueryOperators in interface javax.jcr.nodetype.PropertyDefinitionPropertyDefinition.getAvailableQueryOperators()public boolean isFullTextSearchable()
isFullTextSearchable in interface javax.jcr.nodetype.PropertyDefinitionPropertyDefinition.isFullTextSearchable()public boolean isQueryOrderable()
isQueryOrderable in interface javax.jcr.nodetype.PropertyDefinitionPropertyDefinition.isQueryOrderable()public javax.jcr.nodetype.NodeType getDeclaringNodeType()
getDeclaringNodeType in interface javax.jcr.nodetype.ItemDefinitionpublic String getName()
getName in interface javax.jcr.nodetype.ItemDefinitionpublic int getOnParentVersion()
getOnParentVersion in interface javax.jcr.nodetype.ItemDefinitionpublic boolean isAutoCreated()
isAutoCreated in interface javax.jcr.nodetype.ItemDefinitionpublic boolean isMandatory()
isMandatory in interface javax.jcr.nodetype.ItemDefinitionpublic boolean isProtected()
isProtected in interface javax.jcr.nodetype.ItemDefinitionCopyright © 2004-2016 The Apache Software Foundation. All Rights Reserved.