|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DataElementAttributes
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. |
DataElementIdentifier |
getIdentifier()
Returns the value of the 'Identifier' containment reference. |
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 |
setIdentifier(DataElementIdentifier value)
Sets the value of the ' Identifier ' containment reference. |
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. |
Methods inherited from interface org.eclipse.emf.ecore.EObject |
---|
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset |
Methods inherited from interface org.eclipse.emf.common.notify.Notifier |
---|
eAdapters, eDeliver, eNotify, eSetDeliver |
Field Detail |
---|
static final java.lang.String copyright
Method Detail |
---|
DataElementIdentifier getIdentifier()
setIdentifier(DataElementIdentifier)
,
DesignPackage.getDataElementAttributes_Identifier()
void setIdentifier(DataElementIdentifier value)
Identifier
' containment reference.
value
- the new value of the 'Identifier' containment reference.getIdentifier()
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()
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()
boolean allowsNull()
getNullability()
java.lang.String getName()
setName(String)
,
DesignPackage.getDataElementAttributes_Name()
void setName(java.lang.String value)
Name
' attribute.
value
- the new value of the 'Name' attribute.getName()
int getPosition()
isSetPosition()
,
unsetPosition()
,
setPosition(int)
,
DesignPackage.getDataElementAttributes_Position()
void setPosition(int value)
Position
' attribute.
value
- the new value of the 'Position' attribute.isSetPosition()
,
unsetPosition()
,
getPosition()
void unsetPosition()
Position
' attribute.
isSetPosition()
,
getPosition()
,
setPosition(int)
boolean isSetPosition()
Position
' attribute is set.
unsetPosition()
,
getPosition()
,
setPosition(int)
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()
void setNativeDataTypeCode(int value)
Native Data Type Code
' attribute.
value
- the new value of the 'Native Data Type Code' attribute.isSetNativeDataTypeCode()
,
unsetNativeDataTypeCode()
,
getNativeDataTypeCode()
void unsetNativeDataTypeCode()
Native Data Type Code
' attribute.
isSetNativeDataTypeCode()
,
getNativeDataTypeCode()
,
setNativeDataTypeCode(int)
boolean isSetNativeDataTypeCode()
Native Data Type Code
' attribute is set.
unsetNativeDataTypeCode()
,
getNativeDataTypeCode()
,
setNativeDataTypeCode(int)
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()
void setPrecision(int value)
Precision
' attribute.
value
- the new value of the 'Precision' attribute.isSetPrecision()
,
unsetPrecision()
,
getPrecision()
void unsetPrecision()
Precision
' attribute.
isSetPrecision()
,
getPrecision()
,
setPrecision(int)
boolean isSetPrecision()
Precision
' attribute is set.
unsetPrecision()
,
getPrecision()
,
setPrecision(int)
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()
void setScale(int value)
Scale
' attribute.
value
- the new value of the 'Scale' attribute.isSetScale()
,
unsetScale()
,
getScale()
void unsetScale()
Scale
' attribute.
isSetScale()
,
getScale()
,
setScale(int)
boolean isSetScale()
Scale
' attribute is set.
unsetScale()
,
getScale()
,
setScale(int)
ElementNullability getNullability()
"Unknown"
.
The literals are from the enumeration ElementNullability
.
ElementNullability
,
isSetNullability()
,
unsetNullability()
,
setNullability(ElementNullability)
,
DesignPackage.getDataElementAttributes_Nullability()
void setNullability(ElementNullability value)
Nullability
' attribute.
value
- the new value of the 'Nullability' attribute.ElementNullability
,
isSetNullability()
,
unsetNullability()
,
getNullability()
void unsetNullability()
Nullability
' attribute.
isSetNullability()
,
getNullability()
,
setNullability(ElementNullability)
boolean isSetNullability()
Nullability
' attribute is set.
unsetNullability()
,
getNullability()
,
setNullability(ElementNullability)
DataElementUIHints getUiHints()
setUiHints(DataElementUIHints)
,
DesignPackage.getDataElementAttributes_UiHints()
void setUiHints(DataElementUIHints value)
Ui Hints
' containment reference.
value
- the new value of the 'Ui Hints' containment reference.getUiHints()
void setUiDisplayName(java.lang.String value)
value
- the new value of the 'Display Name' attribute.setUiHints(DataElementUIHints)
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 |