comparison docs/modules/txt/ObjectProperty.txt @ 0:4816e4a8ae95 draft default tip

Uploaded
author deepakjadmin
date Wed, 20 Jan 2016 09:23:18 -0500
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4816e4a8ae95
1 NAME
2 ObjectProperty
3
4 SYNOPSIS
5 use ObjectProperty;
6
7 DESCRIPTION
8 ObjectProperty is an abstract base class which implements methods not
9 explicitly defined in classed derived from this class using Perl's
10 AUTOLOAD functionality. These methods are generated on-the-fly for a
11 specified object property:
12
13 Set<PropertyName>(<PropertyValue>);
14 $PropertyValue = Get<PropertyName>();
15 Delete<PropertyName>();
16
17 This class uses its parent class hash to set, get, and delete propery
18 names and values.
19
20 ObjectProperty module provides the following methods to be used in
21 context of its parent class:
22
23 DeleteProperty, GetProperty, HasProperty, SetProperties, SetProperty
24
25 METHODS
26 DeleteProperty
27 DeleteProperty($Name);
28
29 Deletes specified property *Name*
30
31 GetProperty
32 GetProperty($Name);
33
34 Returns value associated with specified property *Name*.
35
36 HasProperty
37 HasProperty($Name);
38
39 Returns 1 or 0 based on whether specified property *Name* associated
40 with an object.
41
42 SetProperties
43 SetProperties(%NamesAndValues);
44
45 Using specified property name and value hash *NamesAndValues*,
46 associates each property *Name* and *Values* to an object.
47
48 SetProperty
49 SetProperty($Name, $Value);
50
51 Associate property *Name* and *Value* to an object.
52
53 AUTHOR
54 Manish Sud <msud@san.rr.com>
55
56 COPYRIGHT
57 Copyright (C) 2015 Manish Sud. All rights reserved.
58
59 This file is part of MayaChemTools.
60
61 MayaChemTools is free software; you can redistribute it and/or modify it
62 under the terms of the GNU Lesser General Public License as published by
63 the Free Software Foundation; either version 3 of the License, or (at
64 your option) any later version.
65