MOSES::MOBY::Data::String - A primite Moby data type for strings


MOSES-MOBY documentation  | view source Contained in the MOSES-MOBY distribution.

Index


NAME

Top

MOSES::MOBY::Data::String - A primite Moby data type for strings

SYNOPSIS

Top

 use MOSES::MOBY::Data::String;

 # create a Moby String with initial value of 'eddie'
 my $data = MOSES::MOBY::Data::String->new (value => 'eddie');
 my $data = MOSES::MOBY::Data::String->new ('eddie');

 # later change the value of this data object
 $data->value ('tulak');
 print $data->value();

 # indicate that the value should be treated as CDATA
 $data->cdata (1);
 print $data->toXML->toString;

DESCRIPTION

Top

An object representing a String, a Moby primitive data type.

AUTHORS

Top

 Edward Kawas (edward.kawas [at] gmail [dot] com)
 Martin Senger (martin.senger [at] gmail [dot] com)

ACCESSIBLE ATTRIBUTES

Top

Details are in MOSES::MOBY::Base. Here just a list of them (additionally to the attributes from the parent classes)

value

A value of this datatype. Must be an integer.

cdata

Boolean. If set to true the value will be wrapped as CDATA in the XML representing this object.


MOSES-MOBY documentation  | view source Contained in the MOSES-MOBY distribution.