|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Common attributes for a data element.
The following features are supported:
DesignPackage.getDataElementAttributes()
Field Summary | |
static java.lang.String |
copyright
|
Method Summary | |
boolean |
allowsNull()
Indicates whether this data element is defined to allow a null value. |
java.lang.String |
getName()
Returns the value of the 'Name' attribute. |
int |
getNativeDataTypeCode()
Returns the value of the 'Native Data Type Code' attribute. |
ElementNullability |
getNullability()
Returns the value of the 'Nullability' attribute. |
int |
getPosition()
Returns the value of the 'Position' attribute. |
int |
getPrecision()
Returns the value of the 'Precision' attribute. |
int |
getScale()
Returns the value of the 'Scale' attribute. |
DataElementUIHints |
getUiHints()
Returns the value of the 'Ui Hints' containment reference. |
boolean |
isSetNativeDataTypeCode()
Returns whether the value of the ' Native Data Type Code ' attribute is set. |
boolean |
isSetNullability()
Returns whether the value of the ' Nullability ' attribute is set. |
boolean |
isSetPosition()
Returns whether the value of the ' Position ' attribute is set. |
boolean |
isSetPrecision()
Returns whether the value of the ' Precision ' attribute is set. |
boolean |
isSetScale()
Returns whether the value of the ' Scale ' attribute is set. |
void |
setApplicablePrecision(int value,
OdaScalarDataType odaDataType)
Sets the value of the ' Precision ' attribute
that is applicable for the given ODA data type. |
void |
setApplicableScale(int value,
OdaScalarDataType odaDataType)
Sets the value of the ' Scale ' attribute
that is applicable for the given ODA data type. |
void |
setName(java.lang.String value)
Sets the value of the ' Name ' attribute. |
void |
setNativeDataTypeCode(int value)
Sets the value of the ' Native Data Type Code ' attribute. |
void |
setNullability(ElementNullability value)
Sets the value of the ' Nullability ' attribute. |
void |
setPosition(int value)
Sets the value of the ' Position ' attribute. |
void |
setPrecision(int value)
Sets the value of the ' Precision ' attribute. |
void |
setScale(int value)
Sets the value of the ' Scale ' attribute. |
void |
setUiDescription(java.lang.String value)
Sets the value of the Description attribute in the element's UI hints. |
void |
setUiDisplayName(java.lang.String value)
Sets the value of the Display Name attribute in the element's UI hints. |
void |
setUiHints(DataElementUIHints value)
Sets the value of the ' Ui Hints ' containment reference. |
void |
unsetNativeDataTypeCode()
Unsets the value of the ' Native Data Type Code ' attribute. |
void |
unsetNullability()
Unsets the value of the ' Nullability ' attribute. |
void |
unsetPosition()
Unsets the value of the ' Position ' attribute. |
void |
unsetPrecision()
Unsets the value of the ' Precision ' attribute. |
void |
unsetScale()
Unsets the value of the ' Scale ' attribute. |
Field Detail |
public static final java.lang.String copyright
Method Detail |
public void setApplicablePrecision(int value, OdaScalarDataType odaDataType)
Precision
' attribute
that is applicable for the given ODA data type.
This provides the application logic on setting the applicable value
for the given data type, and would return
the applicable value in getPrecision
method.
value
- the new value of the 'Precision' attribute.odaDataType
- the ODA data type of this data element#setPrecision()
,
isSetPrecision()
,
unsetPrecision()
,
getPrecision()
public void setApplicableScale(int value, OdaScalarDataType odaDataType)
Scale
' attribute
that is applicable for the given ODA data type.
This provides the application logic on setting the applicable value
for the given data type, and would return
the applicable value in getScale
method.
value
- the new value of the 'Scale' attribute.odaDataType
- the ODA data type of this data element#setScale()
,
isSetScale()
,
unsetScale()
,
getScale()
public boolean allowsNull()
getNullability()
public java.lang.String getName()
setName(String)
,
DesignPackage.getDataElementAttributes_Name()
public void setName(java.lang.String value)
Name
' attribute.
value
- the new value of the 'Name' attribute.getName()
public int getPosition()
isSetPosition()
,
unsetPosition()
,
setPosition(int)
,
DesignPackage.getDataElementAttributes_Position()
public void setPosition(int value)
Position
' attribute.
value
- the new value of the 'Position' attribute.isSetPosition()
,
unsetPosition()
,
getPosition()
public void unsetPosition()
Position
' attribute.
isSetPosition()
,
getPosition()
,
setPosition(int)
public boolean isSetPosition()
Position
' attribute is set.
unsetPosition()
,
getPosition()
,
setPosition(int)
public int getNativeDataTypeCode()
"0"
.
Native data type code of the data element. If none or unknown value (0) is specified, the data element is mapped to an ODA String data type by default. The native type code value is implementation-specific to individual ODA driver, which must support its mapping to one or more ODA data types. The supported native-ODA data type mapping must be defined in the ODA extension's plugin.xml .
isSetNativeDataTypeCode()
,
unsetNativeDataTypeCode()
,
setNativeDataTypeCode(int)
,
DesignPackage.getDataElementAttributes_NativeDataTypeCode()
public void setNativeDataTypeCode(int value)
Native Data Type Code
' attribute.
value
- the new value of the 'Native Data Type Code' attribute.isSetNativeDataTypeCode()
,
unsetNativeDataTypeCode()
,
getNativeDataTypeCode()
public void unsetNativeDataTypeCode()
Native Data Type Code
' attribute.
isSetNativeDataTypeCode()
,
getNativeDataTypeCode()
,
setNativeDataTypeCode(int)
public boolean isSetNativeDataTypeCode()
Native Data Type Code
' attribute is set.
unsetNativeDataTypeCode()
,
getNativeDataTypeCode()
,
setNativeDataTypeCode(int)
public int getPrecision()
"-1"
.
Maximum number of decimal digits in a numeric value, or the length of a non-numeric value.
A value of -1 indicates this attribute is not applicable.
isSetPrecision()
,
unsetPrecision()
,
setPrecision(int)
,
DesignPackage.getDataElementAttributes_Precision()
public void setPrecision(int value)
Precision
' attribute.
value
- the new value of the 'Precision' attribute.isSetPrecision()
,
unsetPrecision()
,
getPrecision()
public void unsetPrecision()
Precision
' attribute.
isSetPrecision()
,
getPrecision()
,
setPrecision(int)
public boolean isSetPrecision()
Precision
' attribute is set.
unsetPrecision()
,
getPrecision()
,
setPrecision(int)
public int getScale()
"-1"
.
Maximum number of digits to the right of the decimal point. A value of -1 indicates this attribute is not applicable.
isSetScale()
,
unsetScale()
,
setScale(int)
,
DesignPackage.getDataElementAttributes_Scale()
public void setScale(int value)
Scale
' attribute.
value
- the new value of the 'Scale' attribute.isSetScale()
,
unsetScale()
,
getScale()
public void unsetScale()
Scale
' attribute.
isSetScale()
,
getScale()
,
setScale(int)
public boolean isSetScale()
Scale
' attribute is set.
unsetScale()
,
getScale()
,
setScale(int)
public ElementNullability getNullability()
"Unknown"
.
The literals are from the enumeration ElementNullability
.
ElementNullability
,
isSetNullability()
,
unsetNullability()
,
setNullability(ElementNullability)
,
DesignPackage.getDataElementAttributes_Nullability()
public void setNullability(ElementNullability value)
Nullability
' attribute.
value
- the new value of the 'Nullability' attribute.ElementNullability
,
isSetNullability()
,
unsetNullability()
,
getNullability()
public void unsetNullability()
Nullability
' attribute.
isSetNullability()
,
getNullability()
,
setNullability(ElementNullability)
public boolean isSetNullability()
Nullability
' attribute is set.
unsetNullability()
,
getNullability()
,
setNullability(ElementNullability)
public DataElementUIHints getUiHints()
setUiHints(DataElementUIHints)
,
DesignPackage.getDataElementAttributes_UiHints()
public void setUiHints(DataElementUIHints value)
Ui Hints
' containment reference.
value
- the new value of the 'Ui Hints' containment reference.getUiHints()
public void setUiDisplayName(java.lang.String value)
value
- the new value of the 'Display Name' attribute.setUiHints(DataElementUIHints)
public void setUiDescription(java.lang.String value)
value
- the new value of the 'Description' attribute.setUiHints(DataElementUIHints)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |