Bio-Palantir

 view release on metacpan or  search on metacpan

lib/Bio/Palantir/Parser/Domain.pm  view on Meta::CPAN

package Bio::Palantir::Parser::Domain;
# ABSTRACT: BiosynML DTD-derived internal class
$Bio::Palantir::Parser::Domain::VERSION = '0.211420';
use Moose;
use namespace::autoclean;

# AUTOGENERATED CODE! DO NOT MODIFY THIS FILE!

use XML::Bare qw(forcearray);
use Data::UUID;

use aliased 'Bio::Palantir::Parser::Motif';
use aliased 'Bio::Palantir::Parser::Location';


# private attributes
has '_root' => (
    is       => 'ro',
    isa      => 'HashRef',
    required => 1,
);


has 'uui' => (
    is       => 'ro',
    isa      => 'Str',
    init_arg => undef,
    default  => sub {
        my $self = shift;
        my $ug = Data::UUID->new;
        my $uui = $ug->create_str();    
        return $uui;
    }
);

has 'rank' => (
    is      => 'ro',
    isa     => 'Num',
	default => -1,
	writer  => '_set_rank',
);

has 'monomer' => (
    is       => 'ro',
    isa      => 'Maybe[Str]',
    init_arg => undef,
    writer   => '_set_monomer',
);


# public array(s) of composed objects


has 'motifs' => (
    traits   => ['Array'],
    is       => 'ro',
    isa      => 'ArrayRef[Bio::Palantir::Parser::Motif]',
    handles  => {
         count_motifs => 'count',
           all_motifs => 'elements',
           get_motif  => 'get',
          next_motif  => 'shift',        
    },
);



( run in 1.900 second using v1.01-cache-2.11-cpan-98e64b0badf )