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

Quick Search    Search Deep

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

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byorg.jdaemon.era.AbstractCube
          extended byorg.jdaemon.era.java.AbstractJavaCube
All Implemented Interfaces:
java.util.Collection, org.jdaemon.era.Cube, java.lang.Iterable
Direct Known Subclasses:
AbstractIndexedJavaCube, ListJavaCube

public abstract class AbstractJavaCube
extends org.jdaemon.era.AbstractCube

AbstractJavaCube JavaCubes delegate their getAttribute() and getComparator() methods to their descriptor object (which will be a JavaCubeDescriptor rather than a simple CubeDescriptor). This is because the data structures supporting these methods will be invariant across all cubes having the same descriptor.


Nested Class Summary
 
Nested classes inherited from class org.jdaemon.era.AbstractCube
 
Field Summary
 
Fields inherited from class org.jdaemon.era.AbstractCube
 
Fields inherited from interface org.jdaemon.era.Cube
EQUAL, GREATER, GREATER_OR_EQUAL, LAST_OPERAND, LESS, LESS_OR_EQUAL
 
Constructor Summary
AbstractJavaCube()
           
 
Method Summary
 java.lang.Object getAttribute(java.lang.String attribute, java.lang.Object datum)
          Get the value of an individual attribute of an object contained by this cube
 java.util.Comparator getComparator(java.lang.String attribute)
          Get a comparator object which orders an attribute of this cube The default implementation returns a default comparator which assumes the attribute is of a type that implements Comparable.
abstract  org.jdaemon.era.CubeDescriptor getDescriptor()
          Get metadata describing this cube
abstract  java.util.Iterator iterator()
          Get an interator over all data items contained by this cube
 
Methods inherited from class org.jdaemon.era.AbstractCube
addAll, constrain, constrain, getAttributeSet, getMax, getMin, getSum, groupBy, size, union
 
Methods inherited from class java.util.AbstractCollection
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Collection
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, toArray, toArray
 

Constructor Detail

AbstractJavaCube

public AbstractJavaCube()
Method Detail

getAttribute

public java.lang.Object getAttribute(java.lang.String attribute,
                                     java.lang.Object datum)
Description copied from class: org.jdaemon.era.AbstractCube
Get the value of an individual attribute of an object contained by this cube


getComparator

public java.util.Comparator getComparator(java.lang.String attribute)
Description copied from class: org.jdaemon.era.AbstractCube
Get a comparator object which orders an attribute of this cube The default implementation returns a default comparator which assumes the attribute is of a type that implements Comparable.


getDescriptor

public abstract org.jdaemon.era.CubeDescriptor getDescriptor()
Description copied from class: org.jdaemon.era.AbstractCube
Get metadata describing this cube


iterator

public abstract java.util.Iterator iterator()
Description copied from class: org.jdaemon.era.AbstractCube
Get an interator over all data items contained by this cube