org.apache.jackrabbit.state.nodetype
Class PropertyDefinitionState

java.lang.Object
  extended byorg.apache.jackrabbit.state.nodetype.ItemDefinitionState
      extended byorg.apache.jackrabbit.state.nodetype.PropertyDefinitionState

public class PropertyDefinitionState
extends ItemDefinitionState

Property definition state. Instances of this class are used to hold and manage the internal state of property definitions.


Constructor Summary
PropertyDefinitionState()
          Creates an empty property definition state instance.
 
Method Summary
 void addValueConstraints(String constraint)
          Adds a constraint string to the list of property value constraints.
 int getRequiredType()
          Returns the required type of the defined property.
 String[] getValueConstraints()
          Returns the property value constraint strings.
 boolean isMultiple()
          Returns the value of the Multiple property definition property.
 void setMultiple(boolean multiple)
          Sets the value of the Multiple property definition property.
 void setRequiredType(int requiredType)
          Sets the required type of the defined property.
 
Methods inherited from class org.apache.jackrabbit.state.nodetype.ItemDefinitionState
getName, getOnParentVersion, isAutoCreated, isMandatory, isProtected, setAutoCreated, setMandatory, setName, setOnParentVersion, setProtected
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyDefinitionState

public PropertyDefinitionState()
Creates an empty property definition state instance.

Method Detail

getRequiredType

public int getRequiredType()
Returns the required type of the defined property.

Returns:
required property type

setRequiredType

public void setRequiredType(int requiredType)
Sets the required type of the defined property.

Parameters:
requiredType - new required property type

getValueConstraints

public String[] getValueConstraints()
Returns the property value constraint strings. The returned array can be modified freely as it is freshly instantiated and not a part of the property definition state.

Returns:
value constraints

addValueConstraints

public void addValueConstraints(String constraint)
Adds a constraint string to the list of property value constraints.

Parameters:
constraint - constraint string

isMultiple

public boolean isMultiple()
Returns the value of the Multiple property definition property.

Returns:
Multiple property value

setMultiple

public void setMultiple(boolean multiple)
Sets the value of the Multiple property definition property.

Parameters:
multiple - new Multiple property value


Copyright © 2004-2005 . All Rights Reserved.