Autodia::Handler::SQL(3pm) User Contributed Perl Documentation Autodia::Handler::SQL(3pm)NAME
Autodia::Handler::SQL.pm - AutoDia handler for SQL
INTRODUCTION
Autodia::Handler::SQL parses files into a Diagram Object, which all handlers use. The role of the handler is to parse through the file
extracting information such as table names, field names, relationships and keys.
SQL is registered in the Autodia.pm module, which contains a hash of language names and the name of their respective language - in this
case:
%language_handlers = { .. , sql => "Autodia::Handler::SQL", .. };
CONSTRUCTION METHOD
use Autodia::Handler::SQL;
my $handler = Autodia::Handler::SQL->New(\%Config); This creates a new handler using the Configuration hash to provide rules selected at
the command line.
ACCESS METHODS
$handler->Parse(filename); # where filename includes full or relative path.
This parses the named file and returns 1 if successful or 0 if the file could not be opened.
$handler->output();
This outputs the Dia XML file according to the rules in the %Config hash passed at initialisation of the object. It also allows you to
output VCG, Dot or images rendered through GraphViz and VCG.
perl v5.12.4 2011-05-23 Autodia::Handler::SQL(3pm)
Check Out this Related Man Page
Autodia::Diagram::Class(3pm) User Contributed Perl Documentation Autodia::Diagram::Class(3pm)NAME
Autodia::Diagram::Class - Class that holds, updates and outputs the values of a diagram element of type class.
SYNOPSIS
use Autodia::Diagram::Class;
my $Class = Autodia::Diagram::Class->new;
Description
Autodia::Diagram::Class is an object that represents the Dia UML Class element within a Dia diagram. It holds, outputs and allows the
addition of attributes, relationships and methods.
METHODS
Constructor
my $Class = Autodia::Diagram::Class->new($name);
creates and returns a simple Autodia::Diagram::Class object, containing its name and its original position (default 0,0).
Accessors
Autodia::Diagram::Class attributes are accessed through methods, rather than directly. Each attribute is available through calling the
method of its name, ie Inheritances(). The methods available are :
Operations, Attributes, Inheritances, Dependancies, Parent, and has_child. The first 4 return a list, the later return a string.
Adding elements to the Autodia::Diagram::Class is acheived through the add_<attribute> methods, ie add_inheritance().
Rather than remove an element from the diagram it is marked as redundant and replaced with a superceding element, as
Autodia::Diagram::Class has highest precedence it won't be superceded and so doesn't have a redundant() method. Superclass and Component
do.
Accessing and manipulating the Autodia::Diagram::Class
$Class->Attributes(), Inheritances(), Operations(), and Dependancies() all return a list of their respective elements.
$Class->Parent(), and has_child() return the value of the parent or child respectively if present otherwise a false.
$Class->add_attribute(), add_inheritance(), add_operation(), and add_dependancy() all add a new element of their respective types.
See Also
Autodia::DiagramObject
Autodia::Diagram
Autodia::DiagramSuperclass
Autodia::DiagramInheritance
AUTHOR
Aaron Trevena, <aaron.trevena@gmail.com>
COPYRIGHT AND LICENSE
Copyright (C) 2004 by Aaron Trevena
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.1 or,
at your option, any later version of Perl 5 you may have available.
perl v5.12.4 2009-06-24 Autodia::Diagram::Class(3pm)