org.apache.sling.commons.testing.jcr
Class MockPropertyDefinition

java.lang.Object
  extended by 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


Constructor Summary
MockPropertyDefinition(boolean multiple)
           
 
Method Summary
 javax.jcr.nodetype.NodeType getDeclaringNodeType()
           
 javax.jcr.Value[] getDefaultValues()
           
 java.lang.String getName()
           
 int getOnParentVersion()
           
 int getRequiredType()
           
 java.lang.String[] getValueConstraints()
           
 boolean isAutoCreated()
           
 boolean isMandatory()
           
 boolean isMultiple()
           
 boolean isProtected()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockPropertyDefinition

public MockPropertyDefinition(boolean multiple)
Method Detail

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.