The answer is allegory, since allegory is a rhetorical device that convey hidden meanings through symbolic figures in a literary piece which create the meaning the author wants to portray. It is in a form of story or poem and the meaning could be political or moral, depending on the author's true meaning.