/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/**
* A class to represent the format for a column of data.
*
* @author Brian Doherty
* @since 1.5
*/
private int number;
private int width;
super("Column" + number);
}
/*
* method to apply various validation rules to the ColumnFormat object.
*/
// if we allow column spanning, then this method must change. it
// should allow null data statments
if (expression == null) {
// current policy is that a data statment must be specified
}
// current policy is that if a header is not specified, then we
// will use the last component of the name as the header and
// insert the default anchor characters for center alignment..
}
// if no formating is specified, then the format is set to output
// the raw data.
format="0";
}
}
}
}
}
}
}
return header;
}
return format;
}
public int getWidth() {
return width;
}
return align;
}
return scale;
}
return expression;
}
this.expression = e;
}
this.previousValue = o;
}
return previousValue;
}
for (int j = 0; j < indentLevel; j++) {
}
}
}
return null;
}
}