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

Quick Search    Search Deep

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

java.lang.Object
  extended byorg.jdaemon.era.SimpleCubeDescriptor
All Implemented Interfaces:
CubeDescriptor

public class SimpleCubeDescriptor
extends java.lang.Object
implements CubeDescriptor

Simple Cube Descriptor class to be used for Cubes other than xml, java or sql Cubes, e.g. for existing Business Object classes that extend the Cube interface. (Adapted from JavaCubeDescriptor)


Field Summary
private  org.jdaemon.util.Accessor attributeAccessor
          Object which actually does the work of retrieving named attributes from an object
private  java.util.Map attributeMap
           
 
Constructor Summary
SimpleCubeDescriptor(org.jdaemon.util.Accessor attributeAccessor)
          Creates a new instance of SimpleCubeDescriptor
 
Method Summary
protected  org.jdaemon.util.Accessor getAccessor()
          Allow subclasses read-only access to the accessor
 java.util.Map getAllMetadata()
          This method is a stopgap measure to allow the FilteredXMLCube to obtain the entire meta data map at once and hand it off to the GenericTotal component.
 java.lang.Object getAttribute(java.lang.String attributeName, java.lang.Object datum)
          Get attribute value for named attribute
 java.util.Iterator getAttributeNames()
          Get the names of all attributes of this descriptor
 org.jdaemon.util.AttributeList getMetadata(java.lang.String attributeName)
          Get metadata attributes for a given cube attribute
 Cube makeCube()
          Not supported by SimpleCube
 void setMetadata(java.lang.String attributeName, org.jdaemon.util.AttributeList values)
          E.g.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

attributeAccessor

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


attributeMap

private java.util.Map attributeMap
Constructor Detail

SimpleCubeDescriptor

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

Method Detail

getAccessor

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


getAttribute

public java.lang.Object getAttribute(java.lang.String attributeName,
                                     java.lang.Object datum)
Get attribute value for named attribute


getAttributeNames

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

Specified by:
getAttributeNames in interface CubeDescriptor

makeCube

public Cube makeCube()
Not supported by SimpleCube

Specified by:
makeCube in interface CubeDescriptor

getMetadata

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

Specified by:
getMetadata in interface CubeDescriptor

setMetadata

public void setMetadata(java.lang.String attributeName,
                        org.jdaemon.util.AttributeList values)
E.g. attributeName = 'Currency' and values = ('total-dependency', {'Market Value Local', 'Fee Local')}


getAllMetadata

public java.util.Map getAllMetadata()
This method is a stopgap measure to allow the FilteredXMLCube to obtain the entire meta data map at once and hand it off to the GenericTotal component. Needs refactoring (specifically in GenericTotal).