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 ValueAddedEvent extends EntryModificationEvent 38 { 39 40 41 private IAttribute modifiedAttribute; 42 43 44 private IValue addedValue; 45 46 47 55 public ValueAddedEvent( IConnection connection, IEntry modifiedEntry, IAttribute modifiedAttribute, 56 IValue addedValue ) 57 { 58 super( connection, modifiedEntry ); 59 this.modifiedAttribute = modifiedAttribute; 60 this.addedValue = addedValue; 61 } 62 63 64 69 public IAttribute getModifiedAttribute() 70 { 71 return modifiedAttribute; 72 } 73 74 75 80 public IValue getAddedValue() 81 { 82 return addedValue; 83 } 84 85 86 89 public String toString() 90 { 91 return BrowserCoreMessages.bind( BrowserCoreMessages.event__added_val_to_att_at_dn, new String [] 92 { getAddedValue().getStringValue(), getModifiedAttribute().getDescription(), 93 getModifiedEntry().getDn().toString() } ); 94 } 95 96 } 97 | Popular Tags |