metonymy
a metaphor by which an inclusive term stands for something included, or versa; a metaphor in which a part is spoken of as the whole (hand for laborer) or vice-versa (the court for the judge)