=head1 NAME OODoc::Text::Structure - set of paragraphs with examples and subroutines =head1 INHERITANCE OODoc::Text::Structure is a OODoc::Text is a OODoc::Object OODoc::Text::Structure is extended by OODoc::Text::Chapter OODoc::Text::Section OODoc::Text::SubSection OODoc::Text::SubSubSection =head1 SYNOPSIS # Cannot be instantiated itself =head1 DESCRIPTION The OODoc::Text::Structure class is used as base class for the L, L, and L classes. Each of these classes group some paragraphs of text, probably some examples and some subroutines: they provide a structure to the document. =head1 OVERLOADED overload: B<'""' (stringification)> =over 4 See L =back overload: B<'==' and '!='> =over 4 See L =back overload: B<'cmp' (string comparison)> =over 4 See L =back =head1 METHODS =head2 Constructors $obj-EB(CONTAINER) =over 4 Create an I copy of a structured text element, which is used at a higher level of inheritance to collect related subroutines and such. =back OODoc::Text::Structure-EB(OPTIONS) =over 4 Option --Defined in --Default container OODoc::Text description OODoc::Text '' level linenr OODoc::Text name OODoc::Text undef type OODoc::Text . container => OBJECT . description => STRING . level => INTEGER =over 4 Header level of the text structure. A chapter will be 1, section 2, and subsection 3. =back . linenr => INTEGER . name => STRING . type => STRING =back =head2 Inheritance knowledge $obj-EB([OBJECT]) =over 4 See L =back =head2 Attributes $obj-EB([OBJECT]) =over 4 See L =back $obj-EB =over 4 See L =back $obj-EB =over 4 Returns the level of the text structure. Like in pod and html, a chapter will be 1, section 2, and subsection 3. =back $obj-EB =over 4 See L =back $obj-EB =over 4 Returns the name of this chapter, section or sub-section beautified to normal caps. If the name does not contain lower-case characters, then the whole string is lower-cased, and then the first upper-cased. =back $obj-EB =over 4 See L =back =head2 Location $obj-EB(NAME) =over 4 Find the chapter, section or subsection with this NAME. The object found is returned. =back $obj-EB([NAME]) =over 4 See L =back $obj-EB =over 4 Represent the location of this chapter, section, or subsection as one string, separated by slashes. example: print $subsect->path; # may print: METHODS/Container/Search =back $obj-EB =over 4 See L =back $obj-EB =over 4 See L =back =head2 Collected $obj-EB(METHOD, PARAMETERS) =over 4 Call the METHOD recursively on this object and all its sub-structures. For instance, when C is called on a chapter, it first will call the METHOD on that chapter, than on all its sections and subsections. The PARAMETERS are passed with each call. The results of all calls is returned as list. =back $obj-EB(OBJECT) =over 4 See L =back $obj-EB =over 4 See L =back $obj-EB =over 4 See L =back $obj-EB =over 4 Return true if this text structure is only a place holder for something found in a super class. Structured elements are created with L on each sub-class pass the idea of order and to collect subroutines to be listed. However, in some cases, nothing is to be listed after all, and in that case, this method returns C. example: unless($chapter->isEmpty) ... =back $obj-EB =over 4 See L =back =head2 Subroutines Each manual page structure element (chapter, section, and subsection) can contain a list of subroutine descriptions. $obj-EB(OBJECTS) =over 4 A subroutine (L object) is added to the chapter, section, or subsection. =back $obj-EB(ARRAY) =over 4 Sets the subroutines which are related to this text structure, replacing the preivous set. This is used when the manual pages are expanded into each-other to simplify working with the inheritance relations. =back $obj-EB(NAME) =over 4 Returns the subroutine with the specific name. =back $obj-EB =over 4 Returns the list of subroutines which are related to this text object. =back =head2 Commonly used functions $obj-EB(FILENAME) OODoc::Text::Structure-EB(FILENAME) =over 4 See L =back $obj-EB(DIRECTORY) OODoc::Text::Structure-EB(DIRECTORY) =over 4 See L =back =head2 Manual Repository $obj-EB(MANUAL) =over 4 See L =back $obj-EB(NAME) =over 4 See L =back $obj-EB =over 4 See L =back $obj-EB(NAME) =over 4 See L =back $obj-EB =over 4 See L =back =head1 DIAGNOSTICS Error: manual definition requires manual object =over 4 A call to L expects a new manual object (a L), however an incompatible thing was passed. Usually, intended was a call to L or L. =back Error: no level defined for structural component =over 4 =back =head1 SEE ALSO This module is part of OODoc distribution version 1.05, built on January 26, 2009. Website: F =head1 LICENSE Copyrights 2003-2009 by Mark Overmeer. For other contributors see ChangeLog. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See F