Net::RRP::Entity::Replica - rrp replica entity representation.


Net-RRP documentation Contained in the Net-RRP distribution.

Index


Code Index:

NAME

Top

Net::RRP::Entity::Replica - rrp replica entity representation.

SYNOPSIS

Top

 use Net::RRP::Entity::Replica;
 my $replicaEntity = new Net::RRP::Entity::Replica ( name => 'replicaname',
						      => 'password',
							 .... );

DESCRIPTION

Top

This is a rrp replica entity representation class.

getName

return a 'Replica'

setAttribute

Add check constraint to attributes. Only techcontact, serial, name and password may be exists

AUTHOR AND COPYRIGHT

Top

SEE ALSO

Top

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__