Package jebl.util
Interface Attributable
- All Known Implementing Classes:
AbstractRootedTree,AttributableHelper,BaseEdge,BaseNode,BasicSequence,CanonicalSequence,CodonSequence,CompactRootedTree,ConsensusSequence,FilteredRootedTree,FilteredSequence,GaplessSequence,MutableRootedTree,ReRootedTree,RootedFromUnrooted,RootedSubtree,SimpleRootedTree,SimpleTree,SortedRootedTree,Taxon,TransformedRootedTree,TranslatedSequence
public interface Attributable
Interface for associating attributeNames with an object.
- Version:
- $Id: Attributable.java 849 2007-12-06 00:10:14Z twobeers $
- Author:
- Andrew Rambaut
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(String name) Gets the entire attribute map.voidremoveAttribute(String name) voidsetAttribute(String name, Object value) Sets an named attribute for this object.
-
Method Details
-
setAttribute
Sets an named attribute for this object.- Parameters:
name- the name of the attribute.value- the new value of the attribute.
-
getAttribute
- Parameters:
name- the name of the attribute of interest, or null if the attribute doesn't exist.- Returns:
- an object representing the named attributed for this object.
-
removeAttribute
- Parameters:
name- name of attribute to remove
-
getAttributeNames
- Returns:
- an array of the attributeNames that this object has.
-
getAttributeMap
Gets the entire attribute map.- Returns:
- an unmodifiable map
-