NICType.pm 488 B

123456789101112131415161718192021222324252627282930
  1. package NIC::Bridge::NICType;
  2. use strict;
  3. use warnings;
  4. use parent qw(NIC::Bridge::_BridgedObject);
  5. use NIC::Tie::Method;
  6. sub name :lvalue {
  7. my $self = shift;
  8. tie my $tied, 'NIC::Tie::Method', $self->{FOR}, "name";
  9. $tied;
  10. }
  11. sub mode :lvalue {
  12. my $self = shift;
  13. tie my $tied, 'NIC::Tie::Method', $self->{FOR}, "mode";
  14. $tied;
  15. }
  16. sub constraints {
  17. my $self = shift;
  18. return $self->{FOR}->constraints;
  19. }
  20. sub constrain {
  21. my $self = shift;
  22. $self->{FOR}->addConstraint(shift);
  23. }
  24. 1;