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

Quick Search    Search Deep

org.jdaemon.era.xml.alt
Class AbstractXMLCube  view AbstractXMLCube download AbstractXMLCube.java

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byorg.jdaemon.era.AbstractCube
          extended byorg.jdaemon.era.xml.alt.AbstractXMLCube
All Implemented Interfaces:
java.util.Collection, org.jdaemon.era.Cube, java.lang.Iterable, XMLCube, org.jdaemon.util.xml.XMLWritable
Direct Known Subclasses:
DOMCube, FilteredXMLCube

public abstract class AbstractXMLCube
extends org.jdaemon.era.AbstractCube
implements XMLCube

Abstract base from XML Cubes


Nested Class Summary
 
Nested classes inherited from class org.jdaemon.era.AbstractCube
 
Field Summary
private  XMLCubeDescriptor descriptor
           
 
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
AbstractXMLCube(XMLCubeDescriptor descriptor)
           
 
Method Summary
 org.jdaemon.era.Cube constrain(java.lang.String attribute, int operator, java.lang.Object operand)
          Creates a new cube containing some subset of the contents of this cube.
protected  org.w3c.dom.Document createDocument()
           
 java.lang.Object getAttribute(java.lang.String attribute, java.lang.Object object)
          Get the value of an individual attribute of an object contained by this cube.
 org.jdaemon.era.CubeDescriptor getDescriptor()
          Get metadata describing this cube.
protected abstract  org.w3c.dom.Document getDocument()
           
 java.util.Iterator iterator()
          Get an iterator over all objects contained by this cube.
abstract  void write(javax.xml.transform.Result result)
          Write XML to a result object
protected  void writeDocument(javax.xml.transform.Result result)
           
 
Methods inherited from class org.jdaemon.era.AbstractCube
addAll, constrain, getAttributeSet, getComparator, 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 org.jdaemon.era.Cube
addAll, constrain, getAttributeSet, getMax, getMin, getSum, groupBy, union
 
Methods inherited from interface java.util.Collection
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, size, toArray, toArray
 

Field Detail

descriptor

private XMLCubeDescriptor descriptor
Constructor Detail

AbstractXMLCube

public AbstractXMLCube(XMLCubeDescriptor descriptor)
Method Detail

getDocument

protected abstract org.w3c.dom.Document getDocument()
                                             throws javax.xml.transform.TransformerException

write

public abstract void write(javax.xml.transform.Result result)
                    throws javax.xml.transform.TransformerException
Description copied from interface: org.jdaemon.util.xml.XMLWritable
Write XML to a result object

Specified by:
write in interface org.jdaemon.util.xml.XMLWritable

createDocument

protected org.w3c.dom.Document createDocument()
                                       throws javax.xml.transform.TransformerException,
                                              javax.xml.parsers.ParserConfigurationException

writeDocument

protected void writeDocument(javax.xml.transform.Result result)
                      throws javax.xml.transform.TransformerException

constrain

public org.jdaemon.era.Cube constrain(java.lang.String attribute,
                                      int operator,
                                      java.lang.Object operand)
Description copied from interface: org.jdaemon.era.Cube
Creates a new cube containing some subset of the contents of this cube. The constrain(attribute, operator, operand) method provides a way to generate standardised subsets of the data contained in the cube. The subset is formed by comparing the named attribute in all contained obects with the given operand. The comparison method is defined by operator, which should be one of the symbolic constants defined above: LESS, GREATER, EQUAL, LESS_OR_EQUAL, GREATER_OR_EQUAL

Specified by:
constrain in interface org.jdaemon.era.Cube

getAttribute

public java.lang.Object getAttribute(java.lang.String attribute,
                                     java.lang.Object object)
Get the value of an individual attribute of an object contained by this cube. Note requirements:
  • object parameter must point to a row element row element must contain only cell elements cell element must have text element as first child
  • Specified by:
    getAttribute in interface org.jdaemon.era.Cube

    getDescriptor

    public org.jdaemon.era.CubeDescriptor getDescriptor()
    Get metadata describing this cube.

    Specified by:
    getDescriptor in interface org.jdaemon.era.Cube

    iterator

    public java.util.Iterator iterator()
    Description copied from interface: org.jdaemon.era.Cube
    Get an iterator over all objects contained by this cube.

    Specified by:
    iterator in interface org.jdaemon.era.Cube