|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A representation of the model object 'EStructural Feature'.
The following features are supported:
Changeable
Volatile
Transient
Default Value Literal
Default Value
Unsettable
Derived
EContaining Class
EcorePackage.getEStructuralFeature()
Nested Class Summary | |
---|---|
static interface |
EStructuralFeature.Internal
Internal API implemented by all features. |
static interface |
EStructuralFeature.Setting
A representation of a value held by a feature of an object. |
Field Summary |
---|
Fields inherited from interface org.eclipse.emf.ecore.ETypedElement |
---|
UNBOUNDED_MULTIPLICITY, UNSPECIFIED_MULTIPLICITY |
Method Summary | |
---|---|
java.lang.Class |
getContainerClass()
Returns the instance class of the containing class. |
java.lang.Object |
getDefaultValue()
Returns the value of the 'Default Value' attribute |
java.lang.String |
getDefaultValueLiteral()
Returns the value of the 'Default Value Literal' attribute |
EClass |
getEContainingClass()
Returns the value of the 'EContaining Class' container reference. |
int |
getFeatureID()
Returns the ID relative to the containing class. |
boolean |
isChangeable()
Returns the value of the 'Changeable' attribute. |
boolean |
isDerived()
Returns the value of the 'Derived' attribute |
boolean |
isTransient()
Returns the value of the 'Transient' attribute |
boolean |
isUnsettable()
Returns the value of the 'Unsettable' attribute |
boolean |
isVolatile()
Returns the value of the 'Volatile' attribute |
void |
setChangeable(boolean value)
Sets the value of the ' Changeable ' attribute |
void |
setDefaultValue(java.lang.Object value)
A convenience method for setting the 'Default Value Literal' attribute. |
void |
setDefaultValueLiteral(java.lang.String value)
Sets the value of the ' Default Value Literal ' attribute |
void |
setDerived(boolean value)
Sets the value of the ' Derived ' attribute |
void |
setTransient(boolean value)
Sets the value of the ' Transient ' attribute |
void |
setUnsettable(boolean value)
Sets the value of the ' Unsettable ' attribute |
void |
setVolatile(boolean value)
Sets the value of the ' Volatile ' attribute |
Methods inherited from interface org.eclipse.emf.ecore.ETypedElement |
---|
getEType, getLowerBound, getUpperBound, isMany, isOrdered, isRequired, isUnique, setEType, setLowerBound, setOrdered, setUnique, setUpperBound |
Methods inherited from interface org.eclipse.emf.ecore.ENamedElement |
---|
getName, setName |
Methods inherited from interface org.eclipse.emf.ecore.EModelElement |
---|
getEAnnotation, getEAnnotations |
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 |
Method Detail |
public boolean isTransient()
EStructuralFeature.setTransient(boolean)
,
EcorePackage.getEStructuralFeature_Transient()
public void setTransient(boolean value)
Transient
' attribute.
value
- the new value of the 'Transient' attribute.EStructuralFeature.isTransient()
public boolean isVolatile()
EStructuralFeature.setVolatile(boolean)
,
EcorePackage.getEStructuralFeature_Volatile()
public void setVolatile(boolean value)
Volatile
' attribute.
value
- the new value of the 'Volatile' attribute.EStructuralFeature.isVolatile()
public boolean isChangeable()
"true"
.
EStructuralFeature.setChangeable(boolean)
,
EcorePackage.getEStructuralFeature_Changeable()
public void setChangeable(boolean value)
Changeable
' attribute.
value
- the new value of the 'Changeable' attribute.EStructuralFeature.isChangeable()
public java.lang.String getDefaultValueLiteral()
It represents the serialized form of the default value.
EStructuralFeature.setDefaultValueLiteral(String)
,
EcorePackage.getEStructuralFeature_DefaultValueLiteral()
public void setDefaultValueLiteral(java.lang.String value)
Default Value Literal
' attribute.
value
- the new value of the 'Default Value Literal' attribute.EStructuralFeature.getDefaultValueLiteral()
public java.lang.Object getDefaultValue()
It represents the default value that feature must take on when an
explicit value has not been set. Specifically, it may be non-null if
the feature has an eType
. If the
defaultValueLiteral
is null, it is
simply the eType
's intrinsic default value
. Otherwise, if the
eType
is an EDataType
and the
defaultValueLiteral
is non-null, it is the object created
by the factory's EFactory.createFromString(org.eclipse.emf.ecore.EDataType, java.lang.String)
method when invoked
with those two objects as parameters.
EcorePackage.getEStructuralFeature_DefaultValue()
public void setDefaultValue(java.lang.Object value)
If the feature has an eType
that is an
EDataType
, the specified value
is converted to
a string using the factory's EFactory.convertToString(org.eclipse.emf.ecore.EDataType, java.lang.Object)
method, and the defaultValueLiteral
is
set to the result.
EStructuralFeature.setDefaultValueLiteral(java.lang.String)
public boolean isUnsettable()
An unsettable feature explicitly models the state of being set verses being unset
and so provides a direct implementation for the reflective eIsSet
.
It is only applicable single-valued
features.
One effect of this setting is that,
in addition to generating the methods getXyz
and setXyz
(if the feature is changeable
),
a reflective generator will generate the methods isSetXyz
and unsetXyz
.
EStructuralFeature.setUnsettable(boolean)
,
EcorePackage.getEStructuralFeature_Unsettable()
public void setUnsettable(boolean value)
Unsettable
' attribute.
value
- the new value of the 'Unsettable' attribute.EStructuralFeature.isUnsettable()
public boolean isDerived()
A derived feature typically computes its value from those of other features.
It will typically be transient
and will often be volatile
and not changeable
.
The default copier
won't copy it.
EStructuralFeature.setDerived(boolean)
,
EcorePackage.getEStructuralFeature_Derived()
public void setDerived(boolean value)
Derived
' attribute.
value
- the new value of the 'Derived' attribute.EStructuralFeature.isDerived()
public EClass getEContainingClass()
EStructural Features
'.
It represents the containing class of this feature.
EcorePackage.getEStructuralFeature_EContainingClass()
,
EClass.getEStructuralFeatures()
public int getFeatureID()
containing
class.
public java.lang.Class getContainerClass()
instance class
of the containing
class.
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |