|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.altair.hwm.database.dbmodel.HWMAttribute
public class HWMAttribute
Title: HWMAttribute
Description: This represents a basic attribute in a class
Company: Altair Engineering, Inc.
| Field Summary | |
|---|---|
static java.lang.String |
PROP_ATTRIB_CONST
The property name for the event fired when the constraints are changed |
static java.lang.String |
PROP_ATTRIB_DISPLAY
The property name for the event fired when the display name is changed |
static java.lang.String |
PROP_ATTRIB_NAME
The property name for the event fired when the name is changed |
static java.lang.String |
PROP_ATTRIB_TYPE
The property name for the event fired when the type is changed |
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener propChangeListener)
Add property change listener |
void |
addVetoableChangeListener(java.beans.VetoableChangeListener vetoableListener)
Add vetoable change listener |
void |
Export(org.jdom.Element elemAttrib)
Creates XML element representation for this attribute |
HWMAttributeConstraints |
GetConstraints()
Gets the constraint object for this attribute. |
java.lang.String |
GetDisplayName()
Gets the display name for the attribute |
HWMClass |
GetHWMClass()
Returns the class to which this attribute belongs to |
java.lang.String |
GetName()
Gets the name of the attribute |
java.lang.String |
GetSQLRepresentation(HWMDatabaseInfo hwmDBInfo)
Create and return the SQL string for the attribute |
java.lang.String |
GetType()
Gets the type of the attribute |
void |
Import(org.jdom.Element elemAttrib)
Recreates the attribute |
boolean |
IsEditable()
returns a flag indicating if this attribute can be edited |
boolean |
IsVisible()
returns a flag indicating if this class should be visible in the view of the datamodel i.e. |
void |
propertyChange(java.beans.PropertyChangeEvent propChangeEvt)
This event is fired whenever this attribute's constraints are changed |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener propChangeListener)
Remove property change listener |
void |
removeVetoableChangeListener(java.beans.VetoableChangeListener vetoableListener)
Remove vetoable change listener |
void |
SetDisplayName(java.lang.String strDisplayName)
Sets the display name for the attribute |
void |
SetEditable(boolean bEditable)
Sets the flag indicating if this attribute can be edited |
void |
SetName(java.lang.String strName)
Sets the name of the attribute |
void |
SetType(java.lang.String strType)
Sets the type of the attribute |
void |
SetVisible(boolean bVisible)
Sets the flag indicating if this class should be visible in the view of the datamodel i.e. |
java.lang.String |
toString()
Returns the name for this attribute |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static java.lang.String PROP_ATTRIB_NAME
public static java.lang.String PROP_ATTRIB_DISPLAY
public static java.lang.String PROP_ATTRIB_TYPE
public static java.lang.String PROP_ATTRIB_CONST
| Method Detail |
|---|
public HWMClass GetHWMClass()
public java.lang.String GetName()
public void SetName(java.lang.String strName)
throws java.beans.PropertyVetoException
strName - Name of this attribute.
java.beans.PropertyVetoExceptionpublic java.lang.String GetDisplayName()
public void SetDisplayName(java.lang.String strDisplayName)
strDisplay - Display name for this attribute.
public java.lang.String GetType()
throws java.lang.Exception
java.lang.Exceptionpublic void SetType(java.lang.String strType)
strType - Type of this attribute.public boolean IsEditable()
public void SetEditable(boolean bEditable)
bEditable - If true, it can be edited else notpublic boolean IsVisible()
public void SetVisible(boolean bVisible)
bVisible - If true, it is visible else notpublic HWMAttributeConstraints GetConstraints()
public java.lang.String GetSQLRepresentation(HWMDatabaseInfo hwmDBInfo)
hwmDBInfo - The DB info that contains the types supported and the
syntax used by the DB
public void Export(org.jdom.Element elemAttrib)
elemAttrib - The element representing this attribute
public void Import(org.jdom.Element elemAttrib)
throws java.lang.Exception
elemAttrib - The element representing this attribute
java.lang.Exceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic void addPropertyChangeListener(java.beans.PropertyChangeListener propChangeListener)
propChangeListener - The listener for property change events fired
by this classpublic void removePropertyChangeListener(java.beans.PropertyChangeListener propChangeListener)
propChangeListener - The listener to be removedpublic void addVetoableChangeListener(java.beans.VetoableChangeListener vetoableListener)
vetoableChangeListener - The listener for vetoable change events
fired by this classpublic void removeVetoableChangeListener(java.beans.VetoableChangeListener vetoableListener)
vetoableListener - The listener to be removedpublic void propertyChange(java.beans.PropertyChangeEvent propChangeEvt)
propertyChange in interface java.beans.PropertyChangeListenerpropChangeEvt - The property change event object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||