alma.asdm.DataDescriptionTable Class Reference

Inherits alma.asdm.ASDMTable, and alma.asdm.Representable.

List of all members.


Detailed Description

The DataDescriptionTable class is an Alma table.

Attributes of DataDescription
Name Type Comment

Key

dataDescriptionId <u> Tag</u>  

Value
(Mandarory)

polOrHoloId Tag  

spectralWindowId Tag  

Value
(Optional)

flagRow boolean  


Public Member Functions

String[] getAttributesNames ()
 Returns the names of the attributes of the rows stored in that table.
ASDM getContainer ()
 Return the container to which this table belongs.
int size ()
 Return the number of rows in the table.
String getName ()
 Return the name of this table.
String toString ()
 Returns "DataDescriptionTable" followed by the current size of the table between parenthesis.
DataDescriptionRow newRow ()
 Create a new row with default values .
DataDescriptionRow add (DataDescriptionRow x)
 Look up the table for a row whose noautoincrementable attributes are matching their homologues in x.
DataDescriptionRow newRow (Tag polOrHolo, Tag spectralWindowId)
 Create a new row initialized to the specified values.
DataDescriptionRow newRow (DataDescriptionRow row)
 Create a new row using a copy constructor mechanism.
DataDescriptionRow[] get ()
 Get all rows.
DataDescriptionRow getRowByKey (Tag dataDescriptionId)
 Returns a DataDescriptionRow given a key.
DataDescriptionRow lookup (Tag polOrHolo, Tag spectralWindowId)
 Look up the table for a row whose all attributes except the autoincrementable one are equal to the corresponding parameters of the method.
ASDMRow[] getRows ()
 Returns the rows of an ASDMTable as an array of ASDMRow.
DataDescriptionTableIDL toIDL ()
 Convert this table into a DataDescriptionTableIDL CORBA structure.
void fromIDL (DataDescriptionTableIDL x) throws DuplicateKey,ConversionException, UniquenessViolationException
 Populate this table from the content of a DataDescriptionTableIDL Corba structure.
byte[] toFITS () throws ConversionException
 To be implemented.
void fromFITS (byte[] fits) throws ConversionException
 To be implemented.
String toVOTable () throws ConversionException
 To be implemented.
void fromVOTable (String vo) throws ConversionException
 To be implemented.
String toXML () throws ConversionException
 Translate this table to an XML representation conform to the schema defined for DataDescription (DataDescriptionTable.xsd).
void fromXML (String xmlDoc) throws ConversionException
 Populate this table from the content of a XML document that is required to be conform to the XML schema defined for a DataDescription (DataDescriptionTable.xsd).
byte[] toMIME () throws ConversionException
 Serialize this into a stream of bytes and encapsulates that stream into a MIME message.
void setFromMIME (byte[] mimeMsg) throws ConversionException
 Extracts the binary part of a MIME message and deserialize its content to fill this with the result of the deserialization.
void toFile (String directory) throws ConversionException
 Stores a representation (binary or XML) of this table into a file.
void setFromFile (String directory) throws ConversionException
 Reads and parses a file containing a representation of a DataDescriptionTable as those produced by the toFile method.
Entity getEntity ()
 Returns the table's entity.
void setEntity (Entity e)
 Set the table's entity.
void fromArchive (Archiver ar, String UID) throws ConversionException, ArchiverException

Static Public Member Functions

String[] getKeyName ()
 Return the list of field names that make up key key as an array of strings.

Package Functions

void autoIncrement (String key, DataDescriptionRow x)
boolean inKey (String s)
 DataDescriptionTable (ASDM container)
 Create a DataDescriptionTable.
String toArchive (Archiver ar) throws ConversionException, ArchiverException
 Store this table into the archive.


Constructor & Destructor Documentation

alma.asdm.DataDescriptionTable.DataDescriptionTable ASDM  container  )  [package]
 

Create a DataDescriptionTable.

This constructor has package access because only the container can create tables. All tables must know the container to which they belong.

Parameters:
container The container to which this table belongs.


Member Function Documentation

DataDescriptionRow alma.asdm.DataDescriptionTable.add DataDescriptionRow  x  ) 
 

Look up the table for a row whose noautoincrementable attributes are matching their homologues in x.

If a row is found this row else autoincrement x.dataDescriptionId, add x to its table and returns x.

Returns:
a DataDescriptionRow.
Parameters:
x. A row to be added.

void alma.asdm.DataDescriptionTable.fromIDL DataDescriptionTableIDL  x  )  throws DuplicateKey,ConversionException, UniquenessViolationException
 

Populate this table from the content of a DataDescriptionTableIDL Corba structure.

Exceptions:
DuplicateKey Thrown if the method tries to add a row having a key that is already in the table.
ConversionException 

void alma.asdm.DataDescriptionTable.fromXML String  xmlDoc  )  throws ConversionException
 

Populate this table from the content of a XML document that is required to be conform to the XML schema defined for a DataDescription (DataDescriptionTable.xsd).

Exceptions:
ConversionException 

Implements alma.asdm.Representable.

DataDescriptionRow [] alma.asdm.DataDescriptionTable.get  ) 
 

Get all rows.

Returns:
Alls rows as an array of DataDescriptionRow

String [] alma.asdm.DataDescriptionTable.getAttributesNames  )  [virtual]
 

Returns the names of the attributes of the rows stored in that table.

Returns:
the attributes names as an array of String.

Implements alma.asdm.ASDMTable.

ASDM alma.asdm.DataDescriptionTable.getContainer  ) 
 

Return the container to which this table belongs.

Returns:
a ASDM.

Entity alma.asdm.DataDescriptionTable.getEntity  ) 
 

Returns the table's entity.

Implements alma.asdm.Representable.

String [] alma.asdm.DataDescriptionTable.getKeyName  )  [static]
 

Return the list of field names that make up key key as an array of strings.

String alma.asdm.DataDescriptionTable.getName  )  [virtual]
 

Return the name of this table.

Implements alma.asdm.ASDMTable.

DataDescriptionRow alma.asdm.DataDescriptionTable.getRowByKey Tag  dataDescriptionId  ) 
 

Returns a DataDescriptionRow given a key.

Returns:
the row having the key whose values are passed as parameters, or null if no row exists for that key.
Parameters:
dataDescriptionId. 

ASDMRow [] alma.asdm.DataDescriptionTable.getRows  )  [virtual]
 

Returns the rows of an ASDMTable as an array of ASDMRow.

Returns:
an array of ASDMRow.

Implements alma.asdm.ASDMTable.

DataDescriptionRow alma.asdm.DataDescriptionTable.lookup Tag  polOrHolo,
Tag  spectralWindowId
 

Look up the table for a row whose all attributes except the autoincrementable one are equal to the corresponding parameters of the method.

Returns:
this row if any, null otherwise.
Parameters:
polOrHolo. 
spectralWindowId. 

DataDescriptionRow alma.asdm.DataDescriptionTable.newRow DataDescriptionRow  row  ) 
 

Create a new row using a copy constructor mechanism.

The method creates a new DataDescriptionRow owned by this. Each attribute of the created row is a (deep) copy of the corresponding attribute of row. The method does not add the created row to this, its simply parents it to this, a call to the add method has to be done in order to get the row added (very likely after having modified some of its attributes). If row is null then the method returns a new DataDescriptionRow with default values for its attributes.

Parameters:
row the row which is to be copied.

DataDescriptionRow alma.asdm.DataDescriptionTable.newRow Tag  polOrHolo,
Tag  spectralWindowId
 

Create a new row initialized to the specified values.

(the autoincrementable attribute if any is not in the parameter list)

Returns:
the new initialized row.
Parameters:
polOrHolo. 
spectralWindowId. 

DataDescriptionRow alma.asdm.DataDescriptionTable.newRow  ) 
 

Create a new row with default values .

Returns:
a DataDescriptionRow

void alma.asdm.DataDescriptionTable.setEntity Entity  e  ) 
 

Set the table's entity.

Parameters:
e An entity.

Implements alma.asdm.Representable.

void alma.asdm.DataDescriptionTable.setFromFile String  directory  )  throws ConversionException
 

Reads and parses a file containing a representation of a DataDescriptionTable as those produced by the toFile method.

This table is populated with the result of the parsing.

Parameters:
directory The name of the directory containing the file te be read and parsed.
Exceptions:
ConversionException If any error occurs while reading the files in the directory or parsing them.

void alma.asdm.DataDescriptionTable.setFromMIME byte[]  mimeMsg  )  throws ConversionException
 

Extracts the binary part of a MIME message and deserialize its content to fill this with the result of the deserialization.

Parameters:
mimeMsg the array of bytes containing the MIME message.
Exceptions:
ConversionException 

int alma.asdm.DataDescriptionTable.size  )  [virtual]
 

Return the number of rows in the table.

Implements alma.asdm.ASDMTable.

String alma.asdm.DataDescriptionTable.toArchive Archiver  ar  )  throws ConversionException, ArchiverException [package]
 

Store this table into the archive.

Parameters:
ar the archiver in charge of the archiving.
Returns:
the UID assigned to the archived table.

void alma.asdm.DataDescriptionTable.toFile String  directory  )  throws ConversionException
 

Stores a representation (binary or XML) of this table into a file.

Depending on the boolean value of its private field fileAsBin a binary serialization of this (fileAsBin==true) will be saved in a file "DataDescription.bin" or an XML representation (fileAsBin==false) will be saved in a file "DataDescription.xml". The file is always written in a directory whose name is passed as a parameter.

Parameters:
directory The name of directory where the file containing the table's representation will be saved.
Exceptions:
ConversionException 

DataDescriptionTableIDL alma.asdm.DataDescriptionTable.toIDL  ) 
 

Convert this table into a DataDescriptionTableIDL CORBA structure.

Returns:
a DataDescriptionTableIDL

byte [] alma.asdm.DataDescriptionTable.toMIME  )  throws ConversionException
 

Serialize this into a stream of bytes and encapsulates that stream into a MIME message.

Returns:
an array of bytes containing the MIME message.

String alma.asdm.DataDescriptionTable.toString  ) 
 

Returns "DataDescriptionTable" followed by the current size of the table between parenthesis.

Example : SpectralWindowTable(12)

Returns:
a String.

String alma.asdm.DataDescriptionTable.toXML  )  throws ConversionException
 

Translate this table to an XML representation conform to the schema defined for DataDescription (DataDescriptionTable.xsd).

Returns:
a string containing the XML representation.

Implements alma.asdm.Representable.


The documentation for this class was generated from the following file:
Generated on Tue Nov 18 17:46:46 2008 for ASDM Java Implementation by doxygen 1.3.8