public class IntegerLiteralImpl extends NumberValueImpl implements IntegerLiteral
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList<E extends java.lang.Object & org.eclipse.emf.common.notify.Adapter>, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EObservableAdapterList
copyright
Modifier and Type | Method and Description |
---|---|
NumberValue |
cloneAndInvert()
Create a "clone" that inverts this value.
|
NumberValue |
cloneNumber()
Clone this number value.
|
java.lang.Object |
eGet(int featureID,
boolean resolve,
boolean coreType) |
boolean |
eIsSet(int featureID) |
boolean |
equals(java.lang.Object obj) |
void |
eSet(int featureID,
java.lang.Object newValue) |
void |
eUnset(int featureID) |
long |
getBase() |
double |
getScaledValue()
Get the scaled value of the number, this is the number's value
multiplied by the number's unit's absolute factor.
|
double |
getScaledValue(UnitLiteral target)
Get the scaled value of the number, this is the number's value
multiplied by the number's unit's scaling factor for the specified unit.
|
long |
getValue() |
static int |
parseInt(java.lang.String s) |
void |
setBase(long newBase) |
void |
setValue(long newValue) |
void |
setValue(java.lang.String s) |
java.lang.String |
toString() |
basicGetUnit, getScaledValue, getUnit, setUnit
evaluate
allOwnedElements, createOwnedComment, eInverseRemove, getChildren, getContainingClassifier, getContainingComponentImpl, getElementRoot, getOwnedComments, getOwnedElements, getOwner, has_owner, isSetOwnedElements, mustBeOwned, not_own_self
getAdapter, getLocationReference, setLocationReference, setLocationReference
eAdapters, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eInvoke, eIsProxy, eSetClass, eSetDeliver, eSetProxyURI
eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eContainer, eContainingFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eInternalResource, eInverseAdd, eInverseAdd, eInverseRemove, eInvoke, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eResolveProxy, eResource, eSet, eSetResource, eSetStore, eSetting, eStore, eUnset, eURIFragmentSegment, eVirtualGet, eVirtualGet, eVirtualIsSet, eVirtualSet, eVirtualUnset
eNotificationRequired, eNotify
getClass, hashCode, notify, notifyAll, wait, wait, wait
getScaledValue, getUnit, setUnit
evaluate
allOwnedElements, createOwnedComment, getChildren, getContainingClassifier, getContainingComponentImpl, getElementRoot, getOwnedComments, getOwnedElements, getOwner, has_owner, mustBeOwned, not_own_self
getLocationReference, setLocationReference, setLocationReference
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
public long getBase()
getBase
in interface IntegerLiteral
IntegerLiteral.setBase(long)
,
Aadl2Package.getIntegerLiteral_Base()
public void setBase(long newBase)
setBase
in interface IntegerLiteral
newBase
- the new value of the 'Base' attribute.IntegerLiteral.getBase()
public long getValue()
getValue
in interface IntegerLiteral
IntegerLiteral.setValue(long)
,
Aadl2Package.getIntegerLiteral_Value()
public void setValue(long newValue)
setValue
in interface IntegerLiteral
newValue
- the new value of the 'Value' attribute.IntegerLiteral.getValue()
public java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
eGet
in interface org.eclipse.emf.ecore.InternalEObject
eGet
in class NumberValueImpl
public void eSet(int featureID, java.lang.Object newValue)
eSet
in interface org.eclipse.emf.ecore.InternalEObject
eSet
in class NumberValueImpl
public void eUnset(int featureID)
eUnset
in interface org.eclipse.emf.ecore.InternalEObject
eUnset
in class NumberValueImpl
public boolean eIsSet(int featureID)
eIsSet
in interface org.eclipse.emf.ecore.InternalEObject
eIsSet
in class NumberValueImpl
public java.lang.String toString()
toString
in class org.eclipse.emf.ecore.impl.BasicEObjectImpl
public static int parseInt(java.lang.String s)
s
- string with number to parsepublic void setValue(java.lang.String s)
setValue
in interface NumberValue
s
- string with number to parsepublic NumberValue cloneAndInvert()
NumberValue
cloneAndInvert
in interface NumberValue
public final NumberValue cloneNumber()
NumberValue
cloneNumber
in interface NumberValue
public final double getScaledValue()
NumberValue
getScaledValue
in interface NumberValue
public double getScaledValue(UnitLiteral target)
NumberValue
getScaledValue
in interface NumberValue
target
- the target unitpublic boolean equals(java.lang.Object obj)
equals
in class NumberValueImpl