AbstractElement: Adding method to set id.