org.apache.jackrabbit.api.jsr283
Interface Repository

All Superinterfaces:
Repository

public interface Repository
extends Repository

This interface holds extensions made in JCR 2.0 while work is in progress implementing JCR 2.0.

Since:
JCR 2.0

Field Summary
 
Fields inherited from interface javax.jcr.Repository
LEVEL_1_SUPPORTED, LEVEL_2_SUPPORTED, OPTION_LOCKING_SUPPORTED, OPTION_OBSERVATION_SUPPORTED, OPTION_QUERY_SQL_SUPPORTED, OPTION_TRANSACTIONS_SUPPORTED, OPTION_VERSIONING_SUPPORTED, QUERY_XPATH_DOC_ORDER, QUERY_XPATH_POS_INDEX, REP_NAME_DESC, REP_VENDOR_DESC, REP_VENDOR_URL_DESC, REP_VERSION_DESC, SPEC_NAME_DESC, SPEC_VERSION_DESC
 
Method Summary
 Value getDescriptorValue(String key)
          The value of a single-value descriptor is found by passing the key for that descriptor to this method.
 Value[] getDescriptorValues(String key)
          The value array of a multi-value descriptor is found by passing the key for that descriptor to this method.
 boolean isSingleValueDescriptor(String key)
          Returns true if key is a valid single-value descriptor; otherwise returns false.
 boolean isStandardDescriptor(String key)
          Returns true if key is a standard descriptor defined by the string constants in this interface and false if it is either a valid implementation-specific key or not a valid key.
 
Methods inherited from interface javax.jcr.Repository
getDescriptor, getDescriptorKeys, login, login, login, login
 

Method Detail

isStandardDescriptor

boolean isStandardDescriptor(String key)
Returns true if key is a standard descriptor defined by the string constants in this interface and false if it is either a valid implementation-specific key or not a valid key.

Parameters:
key - a descriptor key.
Returns:
whether key is a standard descriptor.
Since:
JCR 2.0

isSingleValueDescriptor

boolean isSingleValueDescriptor(String key)
Returns true if key is a valid single-value descriptor; otherwise returns false.

Parameters:
key - a descriptor key.
Returns:
whether the specified desdfriptor is multi-valued.
Since:
JCR 2.0

getDescriptorValue

Value getDescriptorValue(String key)
The value of a single-value descriptor is found by passing the key for that descriptor to this method. If key is the key of a multi-value descriptor or not a valid key this method returns null.

Parameters:
key - a descriptor key.
Returns:
The value of the indicated descriptor
Since:
JCR 2.0

getDescriptorValues

Value[] getDescriptorValues(String key)
The value array of a multi-value descriptor is found by passing the key for that descriptor to this method. If key is the key of a single-value descriptor then this method returns that value as an array of size one. If key is not a valid key this method returns null.

Parameters:
key - a descriptor key.
Returns:
the value array for the indicated descriptor
Since:
JCR 2.0


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