java.lang.Object
java.util.AbstractCollection
org.jdaemon.era.AbstractCube
org.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 classes inherited from class org.jdaemon.era.AbstractCube |
|
| Methods inherited from class java.util.AbstractCollection |
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString |
| Methods inherited from interface java.util.Collection |
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, size, toArray, toArray |
descriptor
private XMLCubeDescriptor descriptor
AbstractXMLCube
public AbstractXMLCube(XMLCubeDescriptor descriptor)
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