Treex::PML::Struct documentation

Table of contents


NAME

ToC

Treex::PML::Struct - PML attribute value structure

DESCRIPTION

ToC

This class implements the data type 'structure'. Structure consists of items called members. Each member is a name-value pair, where the name uniquely determines the member within the structure (i.e. distinct members of a structure have distinct names).

Treex::PML::Struct->new ({name=>value, ...},reuse?)

NOTE: Don't call this constructor directly, use Treex::PML::Factory->createStructure() instead!

Create a new structure (optionally initializing its members). If reuse is true, the hash reference passed may be reused (re-blessed) into the structure.

$struct->get_member ($name)

Return value of the given member.

$struct->set_member ($name,$value)

Set value of the given member.

$struct->delete_member ($name)

Delete the given member (returning its last value).

$struct->members ()

Return (assorted) list of names of all members.

SEE ALSO

ToC

Treex::PML, Treex::PML::Factory, Treex::PML::Schema, Treex::PML::Container, Treex::PML::Seq, Treex::PML::Node

COPYRIGHT AND LICENSE

ToC