public void attribute ( String elemName , String attrName , String type , String value ) { ElementType e = getElementType ( elemName ) ; if ( e == null ) { throw new Error ( "Attribute " + attrName + " specified for unknown element type " + elemName ) ; } e . setAttribute ( attrName , type , value ) ; }
Add or replace a default attribute for an element type in this schema .