Repository::Simple::Type::Property - Types for repository properties
See "SYNOPSIS" in Repository::Simple::Type::Node.
Property types are used to determine information about what kind of information is acceptable for a property and how it may be updated. This class provides a flexible way of describing the possible values, a method for marshalling and unmarshalling those values to and from a scalar for storage, and other metadata about possible values.
Creates a new property type with the given arguments, %args.
%args
The following arguments are used:
This is a reference to the storage engine owning this property type.
This is a short identifying name for the type. This should be a fully qualified name, e.g., "ns:name".
This property should be set to true if the creation of a node containing a property of this type triggers the creation of a property of this type.
By default, this value is false.
This property should be set to true if the value stored in the property cannot be changed.
When this property is set to a true value, this property may not be set to undef or deleted.
undef
This property should be set to an instance of Repository::Simple::Type::Value for the type of value that is stored in it.
By default, this is set to an instance of Repository::Simple::Type::Value::Scalar.
This method returns the name of the type.
Returns a true value if the property is automatically created with the parent.
Returns a true value if the value may be changed.
Returns a true value if the value may be removed from it's parent node.
Returns the value type of the properties value.
Andrew Sterling Hanenkamp, <hanenkamp@cpan.org>
Copyright 2005 Andrew Sterling Hanenkamp <hanenkamp@cpan.org>. All Rights Reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
This program 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.
To install Repository::Simple, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Repository::Simple
CPAN shell
perl -MCPAN -e shell install Repository::Simple
For more information on module installation, please visit the detailed CPAN module installation guide.