Net::RRP::Entity::Registrar - rrp registrar entity representation.


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

Index


Code Index:

NAME

Top

Net::RRP::Entity::Registrar - rrp registrar entity representation.

SYNOPSIS

Top

 use Net::RRP::Entity::Registrar;
 my $registrarEntity = new Net::RRP::Entity::Registrar ( name     => 'registrarname',
							 password => 'password',
							 .... );

DESCRIPTION

Top

This is a rrp registrar entity representation class.

getName

return a 'Registrar'

setAttribute

Add check constraint to attributes. Only name, password, techcontact, status 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::Registrar;

use strict;
use Net::RRP::Entity;
use Net::RRP::Exception::InvalidAttributeName;
@Net::RRP::Entity::Registrar::ISA = qw(Net::RRP::Entity);
$Net::RRP::Entity::Registrar::VERSION = '0.1';

sub getName { 'Registrar' }

sub setAttribute
{
    my ( $this, $key, $value ) = @_;
    { registrarname => 1, password => 1, techcontact => 1, status => 1 }->{ lc ( $key ) } || throw Net::RRP::Exception::InvalidAttributeName ();
    $this->SUPER::setAttribute ( $key => $value );
}

1;

__END__