public abstract class AbstractDataModelCommand extends Object implements DataModelCommand
| Modifier and Type | Field and Description |
|---|---|
protected String |
annotationClassName |
protected DataModelerContext |
context |
protected DataObject |
dataObject |
protected Object |
newValue |
protected DataModelChangeNotifier |
notifier |
protected boolean |
removeAnnotationIfValueIsNull |
protected String |
source |
protected String |
valuePair |
protected List<ValuePair> |
valuePairs |
| Constructor and Description |
|---|
AbstractDataModelCommand(DataModelerContext context,
String source,
DataObject dataObject,
DataModelChangeNotifier notifier) |
AbstractDataModelCommand(DataModelerContext context,
String source,
DataObject dataObject,
String annotationClassName,
DataModelChangeNotifier notifier) |
AbstractDataModelCommand(DataModelerContext context,
String source,
DataObject dataObject,
String annotationClassName,
String valuePair,
Object newValue,
boolean removeAnnotationIfValueIsNull,
DataModelChangeNotifier notifier) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecuteprotected DataModelerContext context
protected String source
protected DataObject dataObject
protected String annotationClassName
protected String valuePair
protected Object newValue
protected boolean removeAnnotationIfValueIsNull
protected DataModelChangeNotifier notifier
public AbstractDataModelCommand(DataModelerContext context, String source, DataObject dataObject, String annotationClassName, String valuePair, Object newValue, boolean removeAnnotationIfValueIsNull, DataModelChangeNotifier notifier)
public AbstractDataModelCommand(DataModelerContext context, String source, DataObject dataObject, DataModelChangeNotifier notifier)
public AbstractDataModelCommand(DataModelerContext context, String source, DataObject dataObject, String annotationClassName, DataModelChangeNotifier notifier)
public DataModelerContext getContext()
public void setContext(DataModelerContext context)
public String getSource()
public void setSource(String source)
public DataObject getDataObject()
public void setDataObject(DataObject dataObject)
public String getAnnotationClassName()
public void setAnnotationClassName(String annotationClassName)
public String getValuePair()
public void setValuePair(String valuePair)
public Object getNewValue()
public void setNewValue(Object newValue)
public boolean isRemoveAnnotationIfValueIsNull()
public void setRemoveAnnotationIfValueIsNull(boolean removeAnnotationIfValueIsNull)
public AbstractDataModelCommand withValuePair(ValuePair valuePair)
public AbstractDataModelCommand withValuePair(String name, Object value)
protected void notifyFieldChange(ChangeType changeType, DataModelerContext context, String source, DataObject dataObject, ObjectProperty field, String annotationClassName, String memberName, Object oldValue, Object newValue)
protected void notifyObjectChange(ChangeType changeType, DataModelerContext context, String source, DataObject dataObject, String annotationClassName, String memberName, Object oldValue, Object newValue)
protected void notifyChange(DataModelerEvent event)
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.