1 20 21 package org.apache.directory.ldapstudio.browser.core.events; 22 23 24 import org.apache.directory.ldapstudio.browser.core.BrowserCoreMessages; 25 import org.apache.directory.ldapstudio.browser.core.model.IAttribute; 26 import org.apache.directory.ldapstudio.browser.core.model.IConnection; 27 import org.apache.directory.ldapstudio.browser.core.model.IEntry; 28 import org.apache.directory.ldapstudio.browser.core.model.IValue; 29 30 31 37 public class EmptyValueDeletedEvent extends EntryModificationEvent 38 { 39 40 41 private IAttribute modifiedAttribute; 42 43 44 private IValue deletedValue; 45 46 47 55 public EmptyValueDeletedEvent( IConnection connection, IEntry modifiedEntry, IAttribute modifiedAttribute, 56 IValue deletedValue ) 57 { 58 super( connection, modifiedEntry ); 59 this.modifiedAttribute = modifiedAttribute; 60 this.deletedValue = deletedValue; 61 } 62 63 64 69 public IAttribute getModifiedAttribute() 70 { 71 return this.modifiedAttribute; 72 } 73 74 75 80 public IValue getDeletedValue() 81 { 82 return this.deletedValue; 83 } 84 85 86 89 public String toString() 90 { 91 return BrowserCoreMessages.bind( BrowserCoreMessages.event__empty_value_deleted_from_att_at_dn, new String [] 92 { getModifiedAttribute().getDescription(), getModifiedEntry().getDn().toString() } ); 93 } 94 95 } 96 | Popular Tags |