Class AbstractDataModelCommand
- java.lang.Object
-
- org.kie.workbench.common.screens.datamodeller.client.command.AbstractDataModelCommand
-
- All Implemented Interfaces:
DataModelCommand
- Direct Known Subclasses:
AddMethodCommand,AddPropertyCommand,AdjustFieldDefaultRelationsCommand,DataObjectAddAnnotationCommand,DataObjectAddNestedClassCommand,DataObjectAddOrRemoveAnnotationCommand,DataObjectAnnotationValueChangeCommand,DataObjectNameChangeCommand,DataObjectPackageChangeCommand,DataObjectRemoveAnnotationCommand,DataObjectRemoveNestedClassCommand,DataObjectSuperClassChangeCommand,FieldAddAnnotationCommand,FieldAddOrRemoveAnnotationCommand,FieldAnnotationValueChangeCommand,FieldRemoveAnnotationCommand,FieldTypeChangeCommand,MethodAddAnnotationCommand,RemoveMethodCommand,RemovePropertyCommand
public abstract class AbstractDataModelCommand extends Object implements DataModelCommand
-
-
Field Summary
Fields Modifier and Type Field Description protected StringannotationClassNameprotected DataModelerContextcontextprotected org.kie.workbench.common.services.datamodeller.core.DataObjectdataObjectprotected ObjectnewValueprotected DataModelChangeNotifiernotifierprotected booleanremoveAnnotationIfValueIsNullprotected Stringsourceprotected StringvaluePairprotected List<ValuePair>valuePairs
-
Constructor Summary
Constructors Constructor Description AbstractDataModelCommand(DataModelerContext context, String source, org.kie.workbench.common.services.datamodeller.core.DataObject dataObject, String annotationClassName, String valuePair, Object newValue, boolean removeAnnotationIfValueIsNull, DataModelChangeNotifier notifier)AbstractDataModelCommand(DataModelerContext context, String source, org.kie.workbench.common.services.datamodeller.core.DataObject dataObject, String annotationClassName, DataModelChangeNotifier notifier)AbstractDataModelCommand(DataModelerContext context, String source, org.kie.workbench.common.services.datamodeller.core.DataObject dataObject, DataModelChangeNotifier notifier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAnnotationClassName()DataModelerContextgetContext()org.kie.workbench.common.services.datamodeller.core.DataObjectgetDataObject()ObjectgetNewValue()StringgetSource()StringgetValuePair()booleanisRemoveAnnotationIfValueIsNull()protected voidnotifyChange(org.kie.workbench.common.screens.datamodeller.events.DataModelerEvent event)protected voidnotifyFieldChange(org.kie.workbench.common.screens.datamodeller.events.ChangeType changeType, DataModelerContext context, String source, org.kie.workbench.common.services.datamodeller.core.DataObject dataObject, org.kie.workbench.common.services.datamodeller.core.ObjectProperty field, String annotationClassName, String memberName, Object oldValue, Object newValue)protected voidnotifyObjectChange(org.kie.workbench.common.screens.datamodeller.events.ChangeType changeType, DataModelerContext context, String source, org.kie.workbench.common.services.datamodeller.core.DataObject dataObject, String annotationClassName, String memberName, Object oldValue, Object newValue)voidsetAnnotationClassName(String annotationClassName)voidsetContext(DataModelerContext context)voidsetDataObject(org.kie.workbench.common.services.datamodeller.core.DataObject dataObject)voidsetNewValue(Object newValue)voidsetRemoveAnnotationIfValueIsNull(boolean removeAnnotationIfValueIsNull)voidsetSource(String source)voidsetValuePair(String valuePair)AbstractDataModelCommandwithValuePair(String name, Object value)AbstractDataModelCommandwithValuePair(ValuePair valuePair)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.kie.workbench.common.screens.datamodeller.client.command.DataModelCommand
execute
-
-
-
-
Field Detail
-
context
protected DataModelerContext context
-
source
protected String source
-
dataObject
protected org.kie.workbench.common.services.datamodeller.core.DataObject dataObject
-
annotationClassName
protected String annotationClassName
-
valuePair
protected String valuePair
-
newValue
protected Object newValue
-
removeAnnotationIfValueIsNull
protected boolean removeAnnotationIfValueIsNull
-
notifier
protected DataModelChangeNotifier notifier
-
-
Constructor Detail
-
AbstractDataModelCommand
public AbstractDataModelCommand(DataModelerContext context, String source, org.kie.workbench.common.services.datamodeller.core.DataObject dataObject, String annotationClassName, String valuePair, Object newValue, boolean removeAnnotationIfValueIsNull, DataModelChangeNotifier notifier)
-
AbstractDataModelCommand
public AbstractDataModelCommand(DataModelerContext context, String source, org.kie.workbench.common.services.datamodeller.core.DataObject dataObject, DataModelChangeNotifier notifier)
-
AbstractDataModelCommand
public AbstractDataModelCommand(DataModelerContext context, String source, org.kie.workbench.common.services.datamodeller.core.DataObject dataObject, String annotationClassName, DataModelChangeNotifier notifier)
-
-
Method Detail
-
getContext
public DataModelerContext getContext()
-
setContext
public void setContext(DataModelerContext context)
-
getSource
public String getSource()
-
setSource
public void setSource(String source)
-
getDataObject
public org.kie.workbench.common.services.datamodeller.core.DataObject getDataObject()
-
setDataObject
public void setDataObject(org.kie.workbench.common.services.datamodeller.core.DataObject dataObject)
-
getAnnotationClassName
public String getAnnotationClassName()
-
setAnnotationClassName
public void setAnnotationClassName(String annotationClassName)
-
getValuePair
public String getValuePair()
-
setValuePair
public void setValuePair(String valuePair)
-
getNewValue
public Object getNewValue()
-
setNewValue
public void setNewValue(Object newValue)
-
isRemoveAnnotationIfValueIsNull
public boolean isRemoveAnnotationIfValueIsNull()
-
setRemoveAnnotationIfValueIsNull
public void setRemoveAnnotationIfValueIsNull(boolean removeAnnotationIfValueIsNull)
-
withValuePair
public AbstractDataModelCommand withValuePair(ValuePair valuePair)
-
withValuePair
public AbstractDataModelCommand withValuePair(String name, Object value)
-
notifyFieldChange
protected void notifyFieldChange(org.kie.workbench.common.screens.datamodeller.events.ChangeType changeType, DataModelerContext context, String source, org.kie.workbench.common.services.datamodeller.core.DataObject dataObject, org.kie.workbench.common.services.datamodeller.core.ObjectProperty field, String annotationClassName, String memberName, Object oldValue, Object newValue)
-
notifyObjectChange
protected void notifyObjectChange(org.kie.workbench.common.screens.datamodeller.events.ChangeType changeType, DataModelerContext context, String source, org.kie.workbench.common.services.datamodeller.core.DataObject dataObject, String annotationClassName, String memberName, Object oldValue, Object newValue)
-
notifyChange
protected void notifyChange(org.kie.workbench.common.screens.datamodeller.events.DataModelerEvent event)
-
-