org.apache.jackrabbit.jcr2spi.nodetype
Interface EffectiveNodeTypeCache.Key

All Superinterfaces:
Comparable<EffectiveNodeTypeCache.Key>
Enclosing interface:
EffectiveNodeTypeCache

public static interface EffectiveNodeTypeCache.Key
extends Comparable<EffectiveNodeTypeCache.Key>

An ENTKey uniquely identifies a combination (i.e. an aggregation) of one or more node types.


Method Summary
 boolean contains(EffectiveNodeTypeCache.Key otherKey)
          Checks if the otherKey is contained in this one.
 Name[] getNames()
          Returns the node type names of this key.
 EffectiveNodeTypeCache.Key subtract(EffectiveNodeTypeCache.Key otherKey)
          Creates a new key as a result of a subtract operation. i.e. removes all node type names that from the other key.
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getNames

Name[] getNames()
Returns the node type names of this key.

Returns:
the node type names of this key.

contains

boolean contains(EffectiveNodeTypeCache.Key otherKey)
Checks if the otherKey is contained in this one. I.e. if this key contains all node type names of the other key.

Parameters:
otherKey - the other key to check
Returns:
true if this key contains the other key; false otherwise.

subtract

EffectiveNodeTypeCache.Key subtract(EffectiveNodeTypeCache.Key otherKey)
Creates a new key as a result of a subtract operation. i.e. removes all node type names that from the other key.

Please note that no exception is thrown if the other key has node type names that are not contained in this key (i.e. EffectiveNodeTypeCache.contains(Key) returns false).

Parameters:
otherKey - the other key to subtract
Returns:
the new key of the subtraction operation.


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