org.apache.sling.commons.testing.jcr
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 java.lang.Object
- implements javax.jcr.nodetype.PropertyDefinition
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MockPropertyDefinition
public MockPropertyDefinition(boolean multiple)
getDefaultValues
public javax.jcr.Value[] getDefaultValues()
- Specified by:
getDefaultValues
in interface javax.jcr.nodetype.PropertyDefinition
getRequiredType
public int getRequiredType()
- Specified by:
getRequiredType
in interface javax.jcr.nodetype.PropertyDefinition
getValueConstraints
public java.lang.String[] getValueConstraints()
- Specified by:
getValueConstraints
in interface javax.jcr.nodetype.PropertyDefinition
isMultiple
public boolean isMultiple()
- Specified by:
isMultiple
in interface javax.jcr.nodetype.PropertyDefinition
getDeclaringNodeType
public javax.jcr.nodetype.NodeType getDeclaringNodeType()
- Specified by:
getDeclaringNodeType
in interface javax.jcr.nodetype.ItemDefinition
getName
public java.lang.String getName()
- Specified by:
getName
in interface javax.jcr.nodetype.ItemDefinition
getOnParentVersion
public int getOnParentVersion()
- Specified by:
getOnParentVersion
in interface javax.jcr.nodetype.ItemDefinition
isAutoCreated
public boolean isAutoCreated()
- Specified by:
isAutoCreated
in interface javax.jcr.nodetype.ItemDefinition
isMandatory
public boolean isMandatory()
- Specified by:
isMandatory
in interface javax.jcr.nodetype.ItemDefinition
isProtected
public boolean isProtected()
- Specified by:
isProtected
in interface javax.jcr.nodetype.ItemDefinition
Copyright © 2007-2009. All Rights Reserved.