public Attribute addAttribute ( Group parent , Attribute att ) { if ( immutable ) throw new IllegalStateException ( "Cant modify" ) ; if ( parent == null ) parent = rootGroup ; parent . addAttribute ( att ) ; return att ; }
Add an attribute to a group .