I would rather have this be an Entry class that is abstract, with two subclasses:  TextLine (any string) and AttrLine (an attribute declaration).  That way we don't play as many instanceof games below.