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

Quick Search    Search Deep

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

java.lang.Object
  extended byorg.jdaemon.era.java.JavaCubeDescriptor
All Implemented Interfaces:
org.jdaemon.era.CubeDescriptor
Direct Known Subclasses:
IndexedJavaCubeDescriptor

public class JavaCubeDescriptor
extends java.lang.Object
implements org.jdaemon.era.CubeDescriptor


Field Summary
private  org.jdaemon.util.Accessor attributeAccessor
          Object which actually does the work of retrieving named attributes from an object
private static java.util.Comparator DEFAULT_COMPARATOR
          Default comparator which assumes objects to be compared implement the Comparable interface
 
Constructor Summary
JavaCubeDescriptor(org.jdaemon.util.Accessor attributeAccessor)
          Creates a new instance of CubeDescriptor
 
Method Summary
 org.jdaemon.era.CubeDescriptor addIndex(java.lang.String name)
           
protected  org.jdaemon.util.Accessor getAccessor()
          Allow subclasses read-only access to the accessor
 java.lang.Object getAttribute(java.lang.String attributeName, java.lang.Object datum)
           
 java.util.Iterator getAttributeNames()
          Get the names of all attributes of this cube
 java.util.Comparator getComparator(java.lang.String attribute_name)
          Get a comparator object which allows to attributes to be compared
 org.jdaemon.util.AttributeList getMetadata(java.lang.String attribute_name)
          Get metadata attributes for a given cube attribute
 org.jdaemon.era.Cube makeCube()
          Make a new cube of the type described by this Descriptor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_COMPARATOR

private static final java.util.Comparator DEFAULT_COMPARATOR
Default comparator which assumes objects to be compared implement the Comparable interface


attributeAccessor

private org.jdaemon.util.Accessor attributeAccessor
Object which actually does the work of retrieving named attributes from an object

Constructor Detail

JavaCubeDescriptor

public JavaCubeDescriptor(org.jdaemon.util.Accessor attributeAccessor)
Creates a new instance of CubeDescriptor

Method Detail

getAccessor

protected org.jdaemon.util.Accessor getAccessor()
Allow subclasses read-only access to the accessor


getComparator

public java.util.Comparator getComparator(java.lang.String attribute_name)
Get a comparator object which allows to attributes to be compared


getAttribute

public java.lang.Object getAttribute(java.lang.String attributeName,
                                     java.lang.Object datum)

makeCube

public org.jdaemon.era.Cube makeCube()
Description copied from interface: org.jdaemon.era.CubeDescriptor
Make a new cube of the type described by this Descriptor

Specified by:
makeCube in interface org.jdaemon.era.CubeDescriptor

addIndex

public org.jdaemon.era.CubeDescriptor addIndex(java.lang.String name)

getAttributeNames

public java.util.Iterator getAttributeNames()
Get the names of all attributes of this cube

Specified by:
getAttributeNames in interface org.jdaemon.era.CubeDescriptor

getMetadata

public org.jdaemon.util.AttributeList getMetadata(java.lang.String attribute_name)
Get metadata attributes for a given cube attribute

Specified by:
getMetadata in interface org.jdaemon.era.CubeDescriptor