Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.sdmlib.replication.util;
 
 
 
 	public static final String PROPERTY_SOURCE="source";
	public static final String PROPERTY_PROPERTY="property";
	public static final String PROPERTY_OLDVALUE="oldValue";
	public static final String PROPERTY_NEWVALUE="newValue";
	public static final String SENDABLECLASSSTRING="java.beans.PropertyChangeEvent";
	public String[] getProperties() {
	}
	public Object getSendableInstance(boolean prototyp) {
		return new PropertyChangeEvent(this,null,null,null);
	}
	public Object getValue(Object entityString attribute) {
		if(entity instanceof PropertyChangeEvent) {
				return ((PropertyChangeEvent)entity).getSource();
			}
			}
				return ((PropertyChangeEvent)entity).getOldValue();
			}
				return ((PropertyChangeEvent)entity).getNewValue();
			}
		}
		return null;
	}
	public Object newInstance(BaseItem item) {
		String property = ""+item.getValueItem();
		return new PropertyChangeEvent(sourcepropertyoldValuenewValue);
	}
New to GrepCode? Check out our FAQ X