Class MockPropertyDefinition
- java.lang.Object
-
- org.apache.sling.commons.testing.jcr.MockPropertyDefinition
-
- All Implemented Interfaces:
javax.jcr.nodetype.ItemDefinition,javax.jcr.nodetype.PropertyDefinition
public class MockPropertyDefinition extends Object implements javax.jcr.nodetype.PropertyDefinition
-
-
Constructor Summary
Constructors Constructor Description MockPropertyDefinition(boolean multiple)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]getAvailableQueryOperators()javax.jcr.nodetype.NodeTypegetDeclaringNodeType()javax.jcr.Value[]getDefaultValues()StringgetName()intgetOnParentVersion()intgetRequiredType()String[]getValueConstraints()booleanisAutoCreated()booleanisFullTextSearchable()booleanisMandatory()booleanisMultiple()booleanisProtected()booleanisQueryOrderable()
-
-
-
Method Detail
-
getDefaultValues
public javax.jcr.Value[] getDefaultValues()
- Specified by:
getDefaultValuesin interfacejavax.jcr.nodetype.PropertyDefinition
-
getRequiredType
public int getRequiredType()
- Specified by:
getRequiredTypein interfacejavax.jcr.nodetype.PropertyDefinition
-
getValueConstraints
public String[] getValueConstraints()
- Specified by:
getValueConstraintsin interfacejavax.jcr.nodetype.PropertyDefinition
-
isMultiple
public boolean isMultiple()
- Specified by:
isMultiplein interfacejavax.jcr.nodetype.PropertyDefinition
-
getDeclaringNodeType
public javax.jcr.nodetype.NodeType getDeclaringNodeType()
- Specified by:
getDeclaringNodeTypein interfacejavax.jcr.nodetype.ItemDefinition
-
getName
public String getName()
- Specified by:
getNamein interfacejavax.jcr.nodetype.ItemDefinition
-
getOnParentVersion
public int getOnParentVersion()
- Specified by:
getOnParentVersionin interfacejavax.jcr.nodetype.ItemDefinition
-
isAutoCreated
public boolean isAutoCreated()
- Specified by:
isAutoCreatedin interfacejavax.jcr.nodetype.ItemDefinition
-
isMandatory
public boolean isMandatory()
- Specified by:
isMandatoryin interfacejavax.jcr.nodetype.ItemDefinition
-
isProtected
public boolean isProtected()
- Specified by:
isProtectedin interfacejavax.jcr.nodetype.ItemDefinition
-
getAvailableQueryOperators
public String[] getAvailableQueryOperators()
- Specified by:
getAvailableQueryOperatorsin interfacejavax.jcr.nodetype.PropertyDefinition
-
isFullTextSearchable
public boolean isFullTextSearchable()
- Specified by:
isFullTextSearchablein interfacejavax.jcr.nodetype.PropertyDefinition
-
isQueryOrderable
public boolean isQueryOrderable()
- Specified by:
isQueryOrderablein interfacejavax.jcr.nodetype.PropertyDefinition
-
-