public interface SimpleType extends Type
The following features are supported:
GuigenPackage.getSimpleType()| Modifier and Type | Method and Description |
|---|---|
SimpleTypeCodes |
getCode()
Returns the value of the 'Code' attribute.
|
org.eclipse.emf.common.util.EList<java.lang.String> |
getDataTypeModifiers()
Returns the value of the 'Data Type Modifiers' attribute list.
|
java.lang.String |
getEditHintMsg()
Returns the value of the 'Edit Hint Msg' attribute
|
boolean |
isNillable()
Returns the value of the 'Nillable' attribute
|
boolean |
isUserDefined()
Returns the value of the 'User Defined' attribute.
|
void |
setCode(SimpleTypeCodes value)
Sets the value of the '
Code' attribute |
void |
setEditHintMsg(java.lang.String value)
Sets the value of the '
Edit Hint Msg' attribute |
void |
setNillable(boolean value)
Sets the value of the '
Nillable' attribute |
void |
setUserDefined(boolean value)
Sets the value of the '
User Defined' attribute |
SimpleTypeCodes getCode()
SimpleTypeCodes.
If the meaning of the 'Code' attribute isn't clear, there really should be more of a description here...
Codice che serve per discriminare il tipo base (scalare) specifico. Se è impostato userDefined a false allora il tipo corrisponde ad un tipo base del linguaggio host (es int, java.lang.Double). Se invece userDefined è impostato a true, viene generato un nuovo tipo di dato astratto basato sul tipo scalare corrispondente e nel quale è possibile specificare meglio il dominio di valori ammessi e alcune caratteristiche di formattazione.SimpleTypeCodes,
setCode(SimpleTypeCodes),
GuigenPackage.getSimpleType_Code()void setCode(SimpleTypeCodes value)
Code' attribute.
value - the new value of the 'Code' attribute.SimpleTypeCodes,
getCode()boolean isNillable()
If the meaning of the 'Nillable' attribute isn't clear, there really should be more of a description here...
Se impostato a true, il tipo ammette il vlaore null nel suo dominio.setNillable(boolean),
GuigenPackage.getSimpleType_Nillable()void setNillable(boolean value)
Nillable' attribute.
value - the new value of the 'Nillable' attribute.isNillable()boolean isUserDefined()
"false".
Se impostato a true viene generata una classe che rappresenta il tipo di dato
e everrà utilizzata questa classe al posto del tipo scalare corrispondente,
che sarà utilizzato come contenitore del dato internamente alla classe.
setUserDefined(boolean),
GuigenPackage.getSimpleType_UserDefined()void setUserDefined(boolean value)
User Defined' attribute.
value - the new value of the 'User Defined' attribute.isUserDefined()org.eclipse.emf.common.util.EList<java.lang.String> getDataTypeModifiers()
String.
If the meaning of the 'Data Type Modifiers' attribute list isn't clear, there really should be more of a description here...
Utilizzato solo se userDefined = true. Permette di specificare il tipo di dato, in termini di restrizioni sul dominio di valori ammessi, opzioni di formattazione etc. [[TODO: documentare sintassi ]]GuigenPackage.getSimpleType_DataTypeModifiers()java.lang.String getEditHintMsg()
If the meaning of the 'Edit Hint Msg' attribute isn't clear, there really should be more of a description here...
Utilizzato solo se userDefined == true. Permette di specificare il messaggio che deve essere utilizzato per descrivere il range di valori ammessi. Può essere utilizzato, a seconda delle cartucce di generazione, come tooltip oppure come messaggio di errore in caso di immissione di un valore scorretto.setEditHintMsg(String),
GuigenPackage.getSimpleType_EditHintMsg()void setEditHintMsg(java.lang.String value)
Edit Hint Msg' attribute.
value - the new value of the 'Edit Hint Msg' attribute.getEditHintMsg()