public static final class ModelChange.RenameModel extends java.lang.Object implements ModelChange
ModelChange.RemoveProperty, ModelChange.RenameModel, ModelChange.SetProperty, ModelChange.UpdateComment
Constructor and Description |
---|
RenameModel(java.lang.String newName)
Constructs a new
ModelChange.RenameModel instance with the specified new name. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Compares this
RenameModel instance with another object for equality. |
int |
hashCode()
Generates a hash code for this
RenameModel instance. |
java.lang.String |
newName()
Retrieves the new name for the model.
|
java.lang.String |
toString()
Returns a string representation of the
RenameModel instance. |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
removeProperty, rename, setProperty, updateComment
public RenameModel(java.lang.String newName)
ModelChange.RenameModel
instance with the specified new name.newName
- The new name of the model.public java.lang.String newName()
public boolean equals(java.lang.Object obj)
RenameModel
instance with another object for equality. The comparison
is based on the new name of the model.equals
in class java.lang.Object
obj
- The object to compare with this instance.true
if the given object represents the same model renaming; false
otherwise.public int hashCode()
RenameModel
instance. The hash code is based on the
new name of the model.hashCode
in class java.lang.Object
public java.lang.String toString()
RenameModel
instance. This string format
includes the class name followed by the property name to be renamed.toString
in class java.lang.Object