com.jguild.jrpm.io.datatype

Interface DataTypeIf

public interface DataTypeIf

Global interface for all RPM data types.

Version: $Id: DataTypeIf.java,v 1.3 2005/11/11 08:27:40 mkuss Exp $

Author: kuss

Method Summary
Objectget(int i)
Gets the i-th element of this object.
ObjectgetDataObject()
Get the data as an object.
longgetElementCount()
Returns the number of elements stored in this data type.
longgetSize()
Returns the size of this type in the RPM file
RPMIndexTypegetType()
Get the type of this data object
booleanisArray()
Returns TRUE if this object contains an array or FALSE if it is not an array.

Method Detail

get

public Object get(int i)
Gets the i-th element of this object.

Parameters: i The element number

Returns: The object

Throws: IndexOutOfBoundsException if i doesn't fit into the array

getDataObject

public Object getDataObject()
Get the data as an object.

Returns: The object

getElementCount

public long getElementCount()
Returns the number of elements stored in this data type.

Returns: The number of elements

getSize

public long getSize()
Returns the size of this type in the RPM file

Returns: The size in bytes

getType

public RPMIndexType getType()
Get the type of this data object

Returns: The type

isArray

public boolean isArray()
Returns TRUE if this object contains an array or FALSE if it is not an array.

Returns: TRUE if this object contains an array