org.apache.jackrabbit.spi
Interface QPropertyDefinition

All Superinterfaces:
QItemDefinition
All Known Implementing Classes:
QPropertyDefinitionImpl, QPropertyDefinitionImpl

public interface QPropertyDefinition
extends QItemDefinition

QPropertyDefinition is the qualified SPI representation of a property definition. It refers to qualified default values and value constraints only and is thus isolated from session-specific namespace mappings.

See Also:
PropertyDefinition

Field Summary
static QPropertyDefinition[] EMPTY_ARRAY
          Empty array of QPropertyDefinition.
 
Method Summary
 QValue[] getDefaultValues()
          Returns the array of default values or null if no default values are defined.
 int getRequiredType()
          Returns the required type.
 String[] getValueConstraints()
          Returns the array of value constraints.
 boolean isMultiple()
          Reports whether this property can have multiple values.
 
Methods inherited from interface org.apache.jackrabbit.spi.QItemDefinition
definesNode, definesResidual, getDeclaringNodeType, getName, getOnParentVersion, isAutoCreated, isMandatory, isProtected
 

Field Detail

EMPTY_ARRAY

static final QPropertyDefinition[] EMPTY_ARRAY
Empty array of QPropertyDefinition.

Method Detail

getRequiredType

int getRequiredType()
Returns the required type.

Returns:
the required type.

getValueConstraints

String[] getValueConstraints()
Returns the array of value constraints.

Returns:
the array of value constraints.

getDefaultValues

QValue[] getDefaultValues()
Returns the array of default values or null if no default values are defined.

Returns:
the array of default values or null

isMultiple

boolean isMultiple()
Reports whether this property can have multiple values.

Returns:
the 'multiple' flag.


Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.