public class Attribute extends HistoricObject implements java.io.Serializable
changeListener, changeSupport
Constructor and Description |
---|
Attribute() |
Attribute(java.lang.String name) |
Attribute(java.lang.String name,
boolean isPrimaryKey,
boolean isForeignKey) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object otherObject) |
java.lang.Object |
getClone() |
java.lang.String |
getConstraints() |
boolean |
getIsForeignKey() |
boolean |
getIsPrimaryKey() |
java.lang.String |
getName() |
java.lang.String |
getNameWithKeyNotation() |
void |
setConstraints(java.lang.String constraints) |
void |
setIsForeignKey(boolean isForeignKey) |
void |
setIsForeignKeyWithoutFiring(boolean isForeignKey) |
void |
setIsPrimaryKey(boolean isPrimaryKey) |
void |
setName(java.lang.String name) |
void |
setNameWithoutFiring(java.lang.String name)
Assigns the new name without firing the changeEvent!
|
java.lang.String |
toString() |
addChangeListener, isDirty, removeChangeListener, setDirty
public Attribute()
public Attribute(java.lang.String name)
public Attribute(java.lang.String name, boolean isPrimaryKey, boolean isForeignKey)
public java.lang.String getName()
public java.lang.String getNameWithKeyNotation()
public void setName(java.lang.String name)
public void setNameWithoutFiring(java.lang.String name)
name
- the new name of the Attributepublic void setIsPrimaryKey(boolean isPrimaryKey)
public boolean getIsPrimaryKey()
public void setIsForeignKey(boolean isForeignKey)
public void setIsForeignKeyWithoutFiring(boolean isForeignKey)
public boolean getIsForeignKey()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object getClone()
getClone
in class HistoricObject
public boolean equals(java.lang.Object otherObject)
equals
in class java.lang.Object
public java.lang.String getConstraints()
public void setConstraints(java.lang.String constraints)