jxl.read.biff
Class NameRecord

java.lang.Object
  |
  +--jxl.biff.RecordData
        |
        +--jxl.read.biff.NameRecord

public class NameRecord
extends RecordData

Holds an excel name record, and the details of the cells/ranges it refers to


Inner Class Summary
private static class NameRecord.Biff7
          Dummy indicators for overloading the constructor
(package private)  class NameRecord.NameRange
          A nested class to hold range information
 
Field Summary
private static int areaReference
           
static NameRecord.Biff7 biff7
           
private static int cellReference
           
private  int index
          The 0-based index in the name table
private  java.lang.String name
          The name
private  java.util.ArrayList ranges
          The ranges referenced by this name
private static int subExpression
           
private static int union
           
 
Fields inherited from class jxl.biff.RecordData
code, record
 
Constructor Summary
(package private) NameRecord(Record t, WorkbookSettings ws, int ind)
          Constructs this object from the raw data
(package private) NameRecord(Record t, WorkbookSettings ws, int ind, NameRecord.Biff7 dummy)
          Constructs this object from the raw data
 
Method Summary
 byte[] getData()
          Called when copying a sheet.
(package private)  int getIndex()
          Accessor for the index into the name table
 java.lang.String getName()
          Gets the name
(package private)  NameRecord.NameRange[] getRanges()
          Gets the array of ranges for this name
 
Methods inherited from class jxl.biff.RecordData
getCode, getRecord
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

name

private java.lang.String name
The name

index

private int index
The 0-based index in the name table

biff7

public static NameRecord.Biff7 biff7

cellReference

private static final int cellReference

areaReference

private static final int areaReference

subExpression

private static final int subExpression

union

private static final int union

ranges

private java.util.ArrayList ranges
The ranges referenced by this name
Constructor Detail

NameRecord

NameRecord(Record t,
           WorkbookSettings ws,
           int ind)
Constructs this object from the raw data
Parameters:
t - the raw data
ws - the workbook settings
ind - the index in the name table

NameRecord

NameRecord(Record t,
           WorkbookSettings ws,
           int ind,
           NameRecord.Biff7 dummy)
Constructs this object from the raw data
Parameters:
t - the raw data
ws - the workbook settings
ind - the index in the name table
dummy - dummy parameter to indicate a biff7 workbook
Method Detail

getName

public java.lang.String getName()
Gets the name
Returns:
the strings

getRanges

NameRecord.NameRange[] getRanges()
Gets the array of ranges for this name
Returns:
the ranges

getIndex

int getIndex()
Accessor for the index into the name table
Returns:
the 0-based index into the name table

getData

public byte[] getData()
Called when copying a sheet. Just returns the raw data
Returns:
the raw data