| Summary | Included libraries | Package variables | Synopsis | Description | General documentation | Methods |
| WebCvs |
$comment = Bio::Annotation::Comment->new();
$comment->text("This is the text of this comment");
$annotation->add_Annotation('comment', $comment);
| new | Description | Code |
| as_text | Description | Code |
| display_text | Description | Code |
| hash_tree | Description | Code |
| tagname | Description | Code |
| text | Description | Code |
| type | Description | Code |
| new | code | next | Top |
Title : new |
| as_text | code | prev | next | Top |
Title : as_text |
| display_text | code | prev | next | Top |
Title : display_text |
| hash_tree | code | prev | next | Top |
Title : hash_tree |
| tagname | code | prev | next | Top |
Title : tagname |
| text | code | prev | next | Top |
Title : text |
| type | code | prev | next | Top |
Title : type |
| new | description | prev | next | Top |
my($class,@args) = @_; my $self = $class->SUPER::new(@args); my ($text,$tag, $type) = $self->_rearrange([qw(TEXT TAGNAME TYPE)], @args); defined $text && $self->text($text); defined $tag && $self->tagname($tag); defined $type && $self->type($type); return $self;}
| as_text | description | prev | next | Top |
my ($self) = @_; return "Comment: ".$self->text;}
| display_text | description | prev | next | Top |
my ($self, $cb) = @_; $cb ||= $DEFAULT_CB; $self->throw("Callback must be a code reference") if ref $cb ne 'CODE'; return $cb->($self); }}
| hash_tree | description | prev | next | Top |
my $self = shift; my $h = {}; $h->{'text'} = $self->text; return $h;}
| tagname | description | prev | next | Top |
my ($self,$value) = @_; if( defined $value) { $self->{'tagname'} = $value; } return $self->{'tagname'};}
| text | description | prev | next | Top |
my ($self,$value) = @_; if( defined $value) { $self->{'text'} = $value; } return $self->{'text'};}
| type | description | prev | next | Top |
my ($self,$type) = @_; if( defined $type) { $self->{'type'} = $type; } return $self->{'type'}; } 1;}
| AUTHOR - Ewan Birney | Top |
| APPENDIX | Top |
| AnnotationI implementing functions | Top |
| Specific accessors for Comments | Top |
| value | Top |
Title : value
Usage : $value = $self->value($newval)
Function: Alias of the 'text' method
Example :
Returns : value of text
Args : newvalue (optional)