Update Class.java

Changed attribute creation from getType and getName to getString.