public void setModifytype ( String modifyType ) throws ApplicationException { modifyType = modifyType . trim ( ) . toLowerCase ( ) ; if ( modifyType . equals ( "add" ) ) this . modifyType = DirContext . ADD_ATTRIBUTE ; else if ( modifyType . equals ( "delete" ) ) this . modifyType = DirContext . REMOVE_ATTRIBUTE ; else if ( modifyType . equals ( "replace" ) ) this . modifyType = DirContext . REPLACE_ATTRIBUTE ; else throw new ApplicationException ( "invalid value for attribute modifyType [" + modifyType + "], valid values are [add,replace,delete]" ) ; }
Indicates whether to add delete or replace an attribute in a multi - value list of attributes .