public void setId ( final Integer id ) { if ( id == null && this . id == null ) { return ; } else if ( id == null ) { removeChild ( this . id ) ; this . id = null ; } else if ( this . id == null ) { this . id = new KeyValueNode < Integer > ( CommonConstants . CS_ID_TITLE , id ) ; nodes . addFirst ( this . id ) ; if ( this . id . getParent ( ) != null ) { this . id . removeParent ( ) ; } this . id . setParent ( this ) ; } else { this . id . setValue ( id ) ; } }
Sets the ID of the Content Specification .