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 Name
s to JCR names
(and vice versa) where necessary.Modifier and Type | Field and 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 translate
Name s to JCR name strings. |
Constructor and Description |
---|
PropertyDefinitionImpl(QPropertyDefinition propDef,
AbstractNodeTypeManager ntMgr,
NamePathResolver resolver,
javax.jcr.ValueFactory valueFactory) |
PropertyDefinitionImpl(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() |
QPropertyDefinition |
unwrap()
Returns the wrapped property definition.
|
protected static final String ANY_NAME
protected final NamePathResolver resolver
Name
s to JCR name strings.protected final AbstractNodeTypeManager ntMgr
protected final QItemDefinition itemDef
public PropertyDefinitionImpl(QPropertyDefinition propDef, NamePathResolver resolver, javax.jcr.ValueFactory valueFactory)
propDef
- property definitionresolver
- the name-path resolvervalueFactory
- a value factorypublic PropertyDefinitionImpl(QPropertyDefinition propDef, AbstractNodeTypeManager ntMgr, NamePathResolver resolver, javax.jcr.ValueFactory valueFactory)
propDef
- underlying propdefntMgr
- nodetype managerresolver
- name-path resolvervalueFactory
- value factory (for default values)public QPropertyDefinition unwrap()
public javax.jcr.Value[] getDefaultValues()
getDefaultValues
in interface javax.jcr.nodetype.PropertyDefinition
public int getRequiredType()
getRequiredType
in interface javax.jcr.nodetype.PropertyDefinition
public String[] getValueConstraints()
getValueConstraints
in interface javax.jcr.nodetype.PropertyDefinition
public boolean isMultiple()
isMultiple
in interface javax.jcr.nodetype.PropertyDefinition
public String[] getAvailableQueryOperators()
getAvailableQueryOperators
in interface javax.jcr.nodetype.PropertyDefinition
PropertyDefinition.getAvailableQueryOperators()
public boolean isFullTextSearchable()
isFullTextSearchable
in interface javax.jcr.nodetype.PropertyDefinition
PropertyDefinition.isFullTextSearchable()
public boolean isQueryOrderable()
isQueryOrderable
in interface javax.jcr.nodetype.PropertyDefinition
PropertyDefinition.isQueryOrderable()
public javax.jcr.nodetype.NodeType getDeclaringNodeType()
getDeclaringNodeType
in interface javax.jcr.nodetype.ItemDefinition
public String getName()
getName
in interface javax.jcr.nodetype.ItemDefinition
public int getOnParentVersion()
getOnParentVersion
in interface javax.jcr.nodetype.ItemDefinition
public boolean isAutoCreated()
isAutoCreated
in interface javax.jcr.nodetype.ItemDefinition
public boolean isMandatory()
isMandatory
in interface javax.jcr.nodetype.ItemDefinition
public boolean isProtected()
isProtected
in interface javax.jcr.nodetype.ItemDefinition
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.