NAME
PerlBean::Method - contains bean method information
SYNOPSIS
None. This is an abstract class.
ABSTRACT
Abstract PerlBean method information
DESCRIPTION
PerlBean::Method class for bean method information.
CONSTRUCTOR
- new (OPT_HASH_REF)
-
Creates a new
PerlBean::Methodobject.OPT_HASH_REFis a hash reference used to pass initialization options.OPT_HASH_REFis mandatory. On error an exceptionError::Simpleis thrown.Options for
OPT_HASH_REFmay include:body-
Passed to "setBody ()".
description-
Passed to "setDescription ()".
exception_class-
Passed to "setExceptionClass ()". Defaults to Error::Simple.
interface-
Passed to "setInterface ()".
method_name-
Passed to "setMethodName ()". Mandatory option.
parameter_description-
Passed to "setParameterDescription ()".
perl_bean-
Passed to "setPerlBean ()".
METHODS
- getPackage ()
-
Returns the package name. The package name is obtained from the
PerlBeanto which thePerlBean::Attributebelongs. Or, if thePerlBean::Attributedoes not belong to aPerlBean,mainis returned. - getSuperMethod ()
-
Search the superclasses hierarchy for an identically named
PerlBean::Methodand return it. If no method is foundundefis returned. - writeCode (FILEHANDLE)
-
Write the code for the method to
FILEHANDLE.FILEHANDLEis anIO::Handleobject. On error an exceptionError::Simpleis thrown. - writePod (FILEHANDLE)
-
Write the documentation for the method to
FILEHANDLE.FILEHANDLEis anIO::Handleobject. On error an exceptionError::Simpleis thrown. - setBody (VALUE)
-
Set the method's body.
VALUEis the value. On error an exceptionError::Simpleis thrown. - getBody ()
-
Returns the method's body.
- setDescription (VALUE)
-
Set the method description.
VALUEis the value. On error an exceptionError::Simpleis thrown. - getDescription ()
-
Returns the method description.
- setExceptionClass (VALUE)
-
Set the class to throw in eventual interface inplementations.
VALUEis the value. Default value at initialization isError::Simple.VALUEmay not beundef. On error an exceptionError::Simpleis thrown. - getExceptionClass ()
-
Returns the class to throw in eventual interface inplementations.
- setInterface (VALUE)
-
State that the method is defined as interface.
VALUEis the value. On error an exceptionError::Simpleis thrown. - isInterface ()
-
Returns whether the method is defined as interface or not.
- setMethodName (VALUE)
-
Set the method's name.
VALUEis the value.VALUEmay not beundef. On error an exceptionError::Simpleis thrown. - getMethodName ()
-
Returns the method's name.
- setParameterDescription (VALUE)
-
Set the parameter description.
VALUEis the value. On error an exceptionError::Simpleis thrown. - getParameterDescription ()
-
Returns the parameter description.
- setPerlBean (VALUE)
-
Set the PerlBean to which this method belongs.
VALUEis the value. On error an exceptionError::Simpleis thrown. - getPerlBean ()
-
Returns the PerlBean to which this method belongs.
SEE ALSO
PerlBean, PerlBean::Attribute, PerlBean::Attribute::Boolean, PerlBean::Attribute::Factory, PerlBean::Attribute::Multi, PerlBean::Attribute::Multi::Ordered, PerlBean::Attribute::Multi::Unique, PerlBean::Attribute::Multi::Unique::Associative, PerlBean::Attribute::Multi::Unique::Associative::MethodKey, PerlBean::Attribute::Multi::Unique::Ordered, PerlBean::Attribute::Single, PerlBean::Collection
BUGS
None known (yet.)
HISTORY
First development: January 2003
AUTHOR
Vincenzo Zocca
COPYRIGHT
Copyright 2003 by Vincenzo Zocca
LICENSE
This file is part of the PerlBean module hierarchy for Perl by Vincenzo Zocca.
The PerlBean module hierarchy is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
The PerlBean module hierarchy is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with the PerlBean module hierarchy; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA