public void setFormat ( final String format ) { if ( format == null && this . format == null ) { return ; } else if ( format == null ) { removeChild ( this . format ) ; this . format = null ; } else if ( this . format == null ) { this . format = new KeyValueNode < String > ( CommonConstants . CS_FORMAT_TITLE , format ) ; appendChild ( this . format , false ) ; } else { this . format . setValue ( format ) ; } }
Sets the DTD for a Content Specification .