Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.jdaemon.era
Class AbstractCubeDirectoryPath  view AbstractCubeDirectoryPath download AbstractCubeDirectoryPath.java

java.lang.Object
  extended byorg.jdaemon.era.AbstractCubeDirectoryPath
All Implemented Interfaces:
CubeDirectoryPath

public class AbstractCubeDirectoryPath
extends java.lang.Object
implements CubeDirectoryPath


Nested Class Summary
private static class AbstractCubeDirectoryPath.KeyMap
           
private static class AbstractCubeDirectoryPath.PathElement
           
 
Field Summary
static AbstractCubeDirectoryPath EMPTY
           
private  AbstractCubeDirectoryPath.KeyMap map
           
private  org.jdaemon.util.QuickList path_elements
           
 
Constructor Summary
  AbstractCubeDirectoryPath()
          Creates a new instance of AbstractCubeDirectoryPath
protected AbstractCubeDirectoryPath(org.jdaemon.util.QuickList path_elements)
           
 
Method Summary
 CubeDirectoryPath addKey(java.lang.String attribute, java.lang.Object key)
          Create a new path, specifying cubes containing only a particular value of the given attribute
 CubeDirectoryPath addKeys(java.lang.String attribute, java.util.List keys)
          Create a new path, specifying cubes containing only particular values of the given attribute
protected  void buildMap()
           
 java.util.Set getKeyAttributeSet()
          get key values bound to given attribute
 java.util.List getKeyValues(java.lang.String attribute)
          get key values bound to given attribute
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EMPTY

public static final AbstractCubeDirectoryPath EMPTY

map

private AbstractCubeDirectoryPath.KeyMap map

path_elements

private org.jdaemon.util.QuickList path_elements
Constructor Detail

AbstractCubeDirectoryPath

protected AbstractCubeDirectoryPath(org.jdaemon.util.QuickList path_elements)

AbstractCubeDirectoryPath

public AbstractCubeDirectoryPath()
Creates a new instance of AbstractCubeDirectoryPath

Method Detail

buildMap

protected void buildMap()

addKey

public CubeDirectoryPath addKey(java.lang.String attribute,
                                java.lang.Object key)
Create a new path, specifying cubes containing only a particular value of the given attribute

Specified by:
addKey in interface CubeDirectoryPath

addKeys

public CubeDirectoryPath addKeys(java.lang.String attribute,
                                 java.util.List keys)
Create a new path, specifying cubes containing only particular values of the given attribute

Specified by:
addKeys in interface CubeDirectoryPath

getKeyAttributeSet

public java.util.Set getKeyAttributeSet()
get key values bound to given attribute

Specified by:
getKeyAttributeSet in interface CubeDirectoryPath

getKeyValues

public java.util.List getKeyValues(java.lang.String attribute)
get key values bound to given attribute

Specified by:
getKeyValues in interface CubeDirectoryPath

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).