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.NodeType
getDeclaringNodeType()
javax.jcr.Value[]
getDefaultValues()
String
getName()
int
getOnParentVersion()
int
getRequiredType()
String[]
getValueConstraints()
boolean
isAutoCreated()
boolean
isFullTextSearchable()
boolean
isMandatory()
boolean
isMultiple()
boolean
isProtected()
boolean
isQueryOrderable()
-
-
-
Method Detail
-
getDefaultValues
public javax.jcr.Value[] getDefaultValues()
- Specified by:
getDefaultValues
in interfacejavax.jcr.nodetype.PropertyDefinition
-
getRequiredType
public int getRequiredType()
- Specified by:
getRequiredType
in interfacejavax.jcr.nodetype.PropertyDefinition
-
getValueConstraints
public String[] getValueConstraints()
- Specified by:
getValueConstraints
in interfacejavax.jcr.nodetype.PropertyDefinition
-
isMultiple
public boolean isMultiple()
- Specified by:
isMultiple
in interfacejavax.jcr.nodetype.PropertyDefinition
-
getDeclaringNodeType
public javax.jcr.nodetype.NodeType getDeclaringNodeType()
- Specified by:
getDeclaringNodeType
in interfacejavax.jcr.nodetype.ItemDefinition
-
getName
public String getName()
- Specified by:
getName
in interfacejavax.jcr.nodetype.ItemDefinition
-
getOnParentVersion
public int getOnParentVersion()
- Specified by:
getOnParentVersion
in interfacejavax.jcr.nodetype.ItemDefinition
-
isAutoCreated
public boolean isAutoCreated()
- Specified by:
isAutoCreated
in interfacejavax.jcr.nodetype.ItemDefinition
-
isMandatory
public boolean isMandatory()
- Specified by:
isMandatory
in interfacejavax.jcr.nodetype.ItemDefinition
-
isProtected
public boolean isProtected()
- Specified by:
isProtected
in interfacejavax.jcr.nodetype.ItemDefinition
-
getAvailableQueryOperators
public String[] getAvailableQueryOperators()
- Specified by:
getAvailableQueryOperators
in interfacejavax.jcr.nodetype.PropertyDefinition
-
isFullTextSearchable
public boolean isFullTextSearchable()
- Specified by:
isFullTextSearchable
in interfacejavax.jcr.nodetype.PropertyDefinition
-
isQueryOrderable
public boolean isQueryOrderable()
- Specified by:
isQueryOrderable
in interfacejavax.jcr.nodetype.PropertyDefinition
-
-