1 /* 2 * ==================================================================== 3 * This software is subject to the terms of the Common Public License 4 * Agreement, available at the following URL: 5 * http://www.opensource.org/licenses/cpl.html . 6 * Copyright (C) 2003-2004 TONBELLER AG. 7 * All Rights Reserved. 8 * You must accept the terms of that agreement to use this software. 9 * ==================================================================== 10 * 11 * 12 */ 13 package com.tonbeller.jpivot.olap.model; 14 15 /** 16 * Cell of an OLAP result. Cells may have properties for alerting, e.g. 17 * a cell may have an "arrow" property, thats value is some code 18 * for an trend arrow. 19 * @author av 20 */ 21 public interface Cell extends PropertyHolder, Visitable, Decorator { 22 /** 23 * return the value of the cell 24 */ 25 Object getValue(); 26 27 /** 28 * If the cells value represents a java.lang.Number, return its format. Returns null otherwise. 29 * @see getValue() 30 */ 31 NumberFormat getFormat(); 32 33 /** 34 * return the formatted value of the cell 35 */ 36 String getFormattedValue(); 37 38 /** 39 * true if the cell is null 40 */ 41 boolean isNull(); 42 } 43