| Net-RRP documentation | Contained in the Net-RRP distribution. |
Net::RRP::Entity::Replica - rrp replica entity representation.
use Net::RRP::Entity::Replica; my $replicaEntity = new Net::RRP::Entity::Replica ( name => 'replicaname', => 'password', .... );
This is a rrp replica entity representation class.
return a 'Replica'
Add check constraint to attributes. Only techcontact, serial, name and password may be exists
Net::RRP::Entity::Replica (C) Michael Kulakov, Zenon N.S.P. 2000
125124, 19, 1-st Jamskogo polja st,
Moscow, Russian Federation
mkul@cpan.org
All rights reserved.
You may distribute this package under the terms of either the GNU
General Public License or the Artistic License, as specified in the
Perl README file.
Net::RRP::Entity(3), Net::RRP::Codec(3), RFC 2832, Net::RRP::Exception::InvalidAttributeName(3)
| Net-RRP documentation | Contained in the Net-RRP distribution. |
package Net::RRP::Entity::Replica; use strict; use Net::RRP::Entity; use Net::RRP::Exception::InvalidAttributeName; @Net::RRP::Entity::Replica::ISA = qw(Net::RRP::Entity); $Net::RRP::Entity::Replica::VERSION = '0.1';
sub getName { 'Replica' }
sub setAttribute { my ( $this, $key, $value ) = @_; { replicaname => 1, techcontact => 1, serial => 1, password => 1 }->{ lc ( $key ) } || throw Net::RRP::Exception::InvalidAttributeName (); $this->SUPER::setAttribute ( $key => $value ); } 1;
__END__