BioMart::Configuration
Attribute
Toolbar
Summary
BioMart::Configuration::Attribute
Package variables
No package variables defined.
Included modules
Inherit
Synopsis
Represents an attribute in a BioMart query
Description
Attribute objects model the concept of a BioMart attribute ie a column in a
mart ResultTable that can be requested as part of a mart query.
Methods
Methods description
Usage : minimal (use setters for name, displayName, etc: my $att = BioMart::Configuration::Attribute->new;
fully configured:
my $att = BioMart::Configuration::Attribute->new(
'name' => $name,
'displayName' => $dname,
'table' => $table,
'relational_attribute' => $rattribute,
'dataSetName' => $subname
);
Description: creates a new Attribute object.
Returntype : BioMart::Configuration::Attribute
Exceptions : insufficient arguments
Caller : general |
Usage : usage Description: Description Returntype : Exceptions : none Caller : caller |
Usage : Arg [1] - (optional) string $attributes Description: get/set for attributes. Returntype : string Exceptions : none Caller : general |
Usage : my $subName = $att->dataSetName; $att->dataSetName->($newName); Description: get/set for the name of the dataSet which hosts this attribute. Returntype : scalar $name Exceptions : none Caller : general |
Usage : Arg [1] - (optional) string $datasetLink Description: get/set for datasetLink Returntype : string Exceptions : none Caller : general |
Usage : Arg [1] - (optional) string $default Description: get/set for default atribute(s) for a dataset Returntype : string Exceptions : none Caller : general |
Usage : usage Description: Description Returntype : Exceptions : none Caller : caller |
Usage : Arg [1] - (optional) string $dependsOn delimited by commas Description: get/set for dependsOn atribute(s) for a dataset Returntype : string Exceptions : none Caller : general |
Usage : Arg [1] - (optional) string $dependsOnType Description: get/set for dependsOnType - all or any are acceptable. Returntype : string Exceptions : none Caller : general |
Usage : Arg [1] - (optional) string $description Description: get/set for description Returntype : string Exceptions : none Caller : general |
Usage : Arg [1] - (optional) string $display_name Description: get/set for display name Returntype : string Exceptions : none Caller : general |
Usage : Arg [1] - (optional) string $imageURL Description: get/set for imageURL, a relative URL. This is only used by MartView. Returntype : string Exceptions : none Caller : general |
Usage : my $interface = $att->interface; $att->interface->($newName); Description: get/set for the name of the interface which hosts this attribute. Returntype : scalar $name Exceptions : none Caller : general |
Usage : Arg [1] - (optional) string $key for table joining Description: get/set for key Returntype : string Exceptions : none Caller : general |
Usage : Arg [1] - (optional) string $link for URL display Description: get/set for linkURL Returntype : string Exceptions : none Caller : general |
Usage : my $attName = $att->name; $att->name($newName); Description: get/set for internal name Returntype : scalar $name Exceptions : none Caller : general |
Usage : Arg [1] - (optional) string $pointedFromDataset Description: get/set for pointedFromDataset atribute(s) for a dataset Returntype : string Exceptions : none Caller : general |
Usage : Arg [1] - (optional) string $pointedFromDataset Description: get/set for pointedFromDataset atribute(s) for a dataset Returntype : string Exceptions : none Caller : general |
Usage : Arg [1] - (optional) string $pointedFromInterface Description: get/set for pointedFromInterface atribute(s) for a dataset Returntype : string Exceptions : none Caller : general |
Usage : Arg [1] - (optional) string $relational_attribute Description: get/set for relational attribute Returntype : string Exceptions : none Caller : general |
Usage : Arg [1] - (optional) string $table Description: get/set for table Returntype : string Exceptions : none Caller : general |
Usage : no arguments Description: returns the SQL stub for the attribute (ie) table.column Returntype : string Exceptions : none Caller : general |
Usage : Arg [1] - (optional) string $width for table joining Description: get/set for width Returntype : string Exceptions : none Caller : general |
Methods code
sub _hashCode
{ my $self = shift;
my $digest = Digest::MD5->new;
$digest->add($self->name) if ($self->name);
$digest->add($self->displayName) if ($self->displayName);
$digest->add($self->dataSetName) if ($self->dataSetName);
$digest->add($self->table) if ($self->table);
$digest->add($self->relationalAttribute) if ($self->relationalAttribute);
$digest->add($self->key) if ($self->key);
return $digest->hexdigest;
}
1; } |
sub _new
{
my ($self, @param) = @_;
$self->SUPER::_new(@param);
$self->addParams(TITLES, @param);
$self->attr('dependency', []);
}
} |
sub addDependency
{ my ($self, $resolvedDependency) = @_;
push @{$self->get('dependency')}, $resolvedDependency; } |
sub attributes
{ my ($self, $value) = @_;
if ($value){
$self->setParam(ATTRIBUTES, $value);
}
return $self->getParam(ATTRIBUTES); } |
sub dataSetName
{ my ($self, $value) = @_;
if ($value){
$self->setParam(DATASETNAME, $value);
}
return $self->getParam(DATASETNAME); } |
sub datasetLink
{ my ($self, $value) = @_;
if ($value){
$self->setParam(DATASETLINK, $value);
}
return $self->getParam(DATASETLINK); } |
sub default
{ my ($self, $value) = @_;
if ($value){
$self->setParam(DEFAULT, $value);
}
return $self->getParam(DEFAULT); } |
sub dependencies
{ my $self = shift;
return $self->get('dependency'); } |
sub dependsOn
{ my ($self, $value) = @_;
if ($value){
$self->setParam(DEPENDSON, $value);
}
return $self->getParam(DEPENDSON); } |
sub dependsOnType
{ my ($self, $value) = @_;
if ($value){
$self->setParam(DEPENDSONTYPE, $value);
}
return $self->getParam(DEPENDSONTYPE); } |
sub description
{ my ($self, $value) = @_;
if ($value){
$self->setParam(DESCRIPTION, $value);
}
return $self->getParam(DESCRIPTION); } |
sub displayName
{ my ($self, $value) = @_;
if ($value){
$self->setParam(DISPLAYNAME, $value);
}
return $self->getParam(DISPLAYNAME); } |
sub imageURL
{ my ($self, $value) = @_;
if ($value){
$self->setParam(IMAGEURL, $value);
}
return $self->getParam(IMAGEURL); } |
sub interface
{ my ($self, $value) = @_;
if ($value){
$self->setParam(INTERFACE, $value);
}
return $self->getParam(INTERFACE); } |
sub key
{ my ($self, $value) = @_;
if ($value){
$self->setParam(KEY, $value);
}
return $self->getParam(KEY); } |
sub link
{ my ($self, $value) = @_;
if ($value){
$self->setParam(LINK, $value);
}
return $self->getParam(LINK); } |
sub name
{ my ($self, $value) = @_;
if ($value){
$self->setParam(NAME, $value);
}
return $self->getParam(NAME); } |
sub pointedFromAttribute
{ my ($self, $value) = @_;
if ($value){
$self->setParam(POINTEDFROMATTRIBUTE, $value);
}
return $self->getParam(POINTEDFROMATTRIBUTE); } |
sub pointedFromDataset
{ my ($self, $value) = @_;
if ($value){
$self->setParam(POINTEDFROMDATASET, $value);
}
return $self->getParam(POINTEDFROMDATASET); } |
sub pointedFromInterface
{ my ($self, $value) = @_;
if ($value){
$self->setParam(POINTEDFROMINTERFACE, $value);
}
return $self->getParam(POINTEDFROMINTERFACE); } |
sub relationalAttribute
{ my ($self, $value) = @_;
if ($value){
$self->setParam(RELATIONALATTRIBUTE, $value);
}
return $self->getParam(RELATIONALATTRIBUTE); } |
sub table
{ my ($self, $value) = @_;
if ($value){
$self->setParam(TABLE, $value);
}
return $self->getParam(TABLE); } |
sub toSQL
{ my $self = shift;
return $self->getParam(TABLE).'.'.$self->getParam(RELATIONALATTRIBUTE); } |
sub width
{ my ($self, $value) = @_;
if ($value){
$self->setParam(WIDTH, $value);
}
return $self->getParam(WIDTH); } |
General documentation
AUTHOR - Arek Kasprzyk, Syed Haider, Richard Holland, Darin London, Damian Smedley | Top |