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, Dependencies, Parent, and has_child. The first 4 return a list, the
later return a string.
Adding elements to the Autodia::Diagram::Class is achieved 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 superseding
element, as Autodia::Diagram::Class has highest precedence it won't be superseded and so doesn't have a
redundant() method. Superclass and Component do.
AccessingandmanipulatingtheAutodia::Diagram::Class
$Class->Attributes(), Inheritances(), Operations(), and Dependencies() 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.
SeeAlso
Autodia::DiagramObject
Autodia::Diagram
Autodia::DiagramSuperclass
Autodia::DiagramInheritance