|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.spi.commons.nodetype.PropertyDefinitionImpl
public class PropertyDefinitionImpl
This class implements the 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.
Field Summary | |
---|---|
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 Summary | |
---|---|
PropertyDefinitionImpl(QPropertyDefinition propDef,
AbstractNodeTypeManager ntMgr,
NamePathResolver resolver,
ValueFactory valueFactory)
|
|
PropertyDefinitionImpl(QPropertyDefinition propDef,
NamePathResolver resolver,
ValueFactory valueFactory)
Package private constructor |
Method Summary | |
---|---|
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 |
---|
protected static final String ANY_NAME
protected final NamePathResolver resolver
Name
s to JCR name strings.
protected final AbstractNodeTypeManager ntMgr
protected final QItemDefinition itemDef
Constructor Detail |
---|
public PropertyDefinitionImpl(QPropertyDefinition propDef, NamePathResolver resolver, ValueFactory valueFactory)
propDef
- property definitionresolver
- the name-path resolvervalueFactory
- a value factorypublic PropertyDefinitionImpl(QPropertyDefinition propDef, AbstractNodeTypeManager ntMgr, NamePathResolver resolver, ValueFactory valueFactory)
propDef
- underlying propdefntMgr
- nodetype managerresolver
- name-path resolvervalueFactory
- value factory (for default values)Method Detail |
---|
public QPropertyDefinition unwrap()
public Value[] getDefaultValues()
getDefaultValues
in interface PropertyDefinition
public int getRequiredType()
getRequiredType
in interface PropertyDefinition
public String[] getValueConstraints()
getValueConstraints
in interface PropertyDefinition
public boolean isMultiple()
isMultiple
in interface PropertyDefinition
public String[] getAvailableQueryOperators()
getAvailableQueryOperators
in interface PropertyDefinition
PropertyDefinition.getAvailableQueryOperators()
public boolean isFullTextSearchable()
isFullTextSearchable
in interface PropertyDefinition
PropertyDefinition.isFullTextSearchable()
public boolean isQueryOrderable()
isQueryOrderable
in interface PropertyDefinition
PropertyDefinition.isQueryOrderable()
public NodeType getDeclaringNodeType()
getDeclaringNodeType
in interface ItemDefinition
public String getName()
getName
in interface ItemDefinition
public int getOnParentVersion()
getOnParentVersion
in interface ItemDefinition
public boolean isAutoCreated()
isAutoCreated
in interface ItemDefinition
public boolean isMandatory()
isMandatory
in interface ItemDefinition
public boolean isProtected()
isProtected
in interface ItemDefinition
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |