NAME

VOTABLE::DATA - VOTABLE DATA XML element class


SYNOPSIS

use VOTABLE::DATA;


DESCRIPTION

This class implements the DATA element from the VOTABLE DTD. This is a wrapper element around the BINARY, FITS, and TABLEDATA elements, and constitutes the data segment of a TABLE element.

The DATA element is a Tier 3 element, and is described by the following excerpt from the VOTABLE 1.0 DTD:

 <!ELEMENT DATA (TABLEDATA | BINARY | FITS)>

Methods

new($xmldom_element, %options)

Create and return a new VOTABLE::DATA object, based on the supplied XML::DOM::Element object, using %options to set the attributes of the new object. If no XML::DOM::Element object is specified, or is undefined, create and return an empty VOTABLE::DATA object. Return undef if an error occurs.

get_binary

Return the VOTABLE::BINARY object for the BINARY element which is the child of this DATA element. Return undef if no BINARY element is found, or an error occurs.

set_binary($votable_binary)

Set the BINARY element for this DATA element using the supplied VOTABLE::BINARY object. Any existing BINARY, FITS, or TABLEDATA element in this DATA element is replaced by the new BINARY element. Return the VOTABLE::BINARY object on success, or undef if an error occurs.

get_fits

Return the VOTABLE::FITS object for the FITS element which is the child of this DATA element. Return undef if no FITS element is found, or an error occurs.

set_fits($votable_fits)

Set the FITS element for this DATA element using the supplied VOTABLE::FITS object. Any existing BINARY, FITS, or TABLEDATA element in this DATA element is replaced by the new FITS element. Return the VOTABLE::FITS object on success, or undef if an error occurs.

get_tabledata

Return the VOTABLE::TABLEDATA object for the TABLEDATA element which is the child of this DATA element. Return undef if no TABLEDATA element is found, or an error occurs.

set_tabledata($votable_tabledata)

Set the TABLEDATA element for this DATA element using the supplied VOTABLE::TABLEDATA object. Any existing BINARY, FITS, or TABLEDATA element in this DATA element is replaced by the new TABLEDATA element. Return the VOTABLE::TABLEDATA object on success, or undef if an error occurs.

Notes on class internals


WARNINGS


SEE ALSO

VOTABLE, VOTABLE::BINARY, VOTABLE::FITS, VOTABLE::TABLE, VOTABLE::TABLEDATA


AUTHOR

Eric Winter, NASA GSFC (elwinter@milkyway.gsfc.nasa.gov)


VERSION

$Id: DATA.pm,v 1.1.1.7 2002/05/21 14:08:54 elwinter Exp $