org.eclipse.birt.chart.model.attribute.impl
Class NumberFormatSpecifierImpl

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.BasicNotifierImpl
      extended by org.eclipse.emf.ecore.impl.BasicEObjectImpl
          extended by org.eclipse.emf.ecore.impl.EObjectImpl
              extended by org.eclipse.birt.chart.model.attribute.impl.FormatSpecifierImpl
                  extended by org.eclipse.birt.chart.model.attribute.impl.NumberFormatSpecifierImpl
All Implemented Interfaces:
FormatSpecifier, NumberFormatSpecifier, org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.InternalEObject

public class NumberFormatSpecifierImpl
extends FormatSpecifierImpl
implements NumberFormatSpecifier

An implementation of the model object ' Number Format Specifier'.

The following features are implemented:


Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList<E extends java.lang.Object & org.eclipse.emf.common.notify.Adapter>
 
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject
org.eclipse.emf.ecore.InternalEObject.EStore
 
Field Summary
 
Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
ELAST_EOBJECT_FLAG
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Method Summary
 NumberFormatSpecifier copyInstance()
          A convenient method to get an instance copy.
static NumberFormatSpecifier create()
          A convenience methods provided to create an initialized NumberFormatSpecifier instance NOTE: Manually written
static NumberFormatSpecifier create(org.eclipse.emf.ecore.EObject parent, org.eclipse.emf.ecore.EReference ref)
           
 java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
           
 boolean eIsSet(int featureID)
           
 void eSet(int featureID, java.lang.Object newValue)
           
 void eUnset(int featureID)
           
 java.lang.String format(double dValue, java.util.Locale lo)
          Formats a value using the internally defined format specifier rules
 java.lang.String format(double dValue, com.ibm.icu.util.ULocale lo)
          Formats a value using the internally defined format specifier rules
 int getFractionDigits()
           
 double getMultiplier()
           
 java.lang.String getPrefix()
           
 java.lang.String getSuffix()
           
 boolean isSetFractionDigits()
           
 boolean isSetMultiplier()
           
 void setFractionDigits(int newFractionDigits)
           
 void setMultiplier(double newMultiplier)
           
 void setPrefix(java.lang.String newPrefix)
           
 void setSuffix(java.lang.String newSuffix)
           
 java.lang.String toString()
           
 void unsetFractionDigits()
           
 void unsetMultiplier()
           
 
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eIsProxy, eSetClass, eSetDeliver, eSetProxyURI
 
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicRemoveFromContainerFeature, eBasicSetContainer, eContainer, eContainingFeature, eContainmentFeature, eContains, eContents, eCrossReferences, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eInternalResource, eInverseAdd, eInverseAdd, eInverseRemove, eInverseRemove, eIsSet, eObjectForURIFragmentSegment, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eProxyURI, eResolveProxy, eResource, eSet, eSetResource, eSetStore, eSetting, eStore, eUnset, eURIFragmentSegment, eVirtualGet, eVirtualGet, eVirtualIsSet, eVirtualSet, eVirtualUnset
 
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
eNotificationRequired, eNotify
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
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
 
Methods inherited from interface org.eclipse.emf.ecore.InternalEObject
eNotificationRequired
 

Method Detail

getPrefix

public java.lang.String getPrefix()

Specified by:
getPrefix in interface NumberFormatSpecifier
Returns:
the value of the 'Prefix' attribute.
See Also:
NumberFormatSpecifier.setPrefix(String), AttributePackage.getNumberFormatSpecifier_Prefix()

setPrefix

public void setPrefix(java.lang.String newPrefix)

Specified by:
setPrefix in interface NumberFormatSpecifier
Parameters:
newPrefix - the new value of the 'Prefix' attribute.
See Also:
NumberFormatSpecifier.getPrefix()

getSuffix

public java.lang.String getSuffix()

Specified by:
getSuffix in interface NumberFormatSpecifier
Returns:
the value of the 'Suffix' attribute.
See Also:
NumberFormatSpecifier.setSuffix(String), AttributePackage.getNumberFormatSpecifier_Suffix()

setSuffix

public void setSuffix(java.lang.String newSuffix)

Specified by:
setSuffix in interface NumberFormatSpecifier
Parameters:
newSuffix - the new value of the 'Suffix' attribute.
See Also:
NumberFormatSpecifier.getSuffix()

getMultiplier

public double getMultiplier()

Specified by:
getMultiplier in interface NumberFormatSpecifier
Returns:
the value of the 'Multiplier' attribute.
See Also:
NumberFormatSpecifier.isSetMultiplier(), NumberFormatSpecifier.unsetMultiplier(), NumberFormatSpecifier.setMultiplier(double), AttributePackage.getNumberFormatSpecifier_Multiplier()

setMultiplier

public void setMultiplier(double newMultiplier)

Specified by:
setMultiplier in interface NumberFormatSpecifier
Parameters:
newMultiplier - the new value of the 'Multiplier' attribute.
See Also:
NumberFormatSpecifier.isSetMultiplier(), NumberFormatSpecifier.unsetMultiplier(), NumberFormatSpecifier.getMultiplier()

unsetMultiplier

public void unsetMultiplier()

Specified by:
unsetMultiplier in interface NumberFormatSpecifier
See Also:
NumberFormatSpecifier.isSetMultiplier(), NumberFormatSpecifier.getMultiplier(), NumberFormatSpecifier.setMultiplier(double)

isSetMultiplier

public boolean isSetMultiplier()

Specified by:
isSetMultiplier in interface NumberFormatSpecifier
Returns:
whether the value of the 'Multiplier' attribute is set.
See Also:
NumberFormatSpecifier.unsetMultiplier(), NumberFormatSpecifier.getMultiplier(), NumberFormatSpecifier.setMultiplier(double)

getFractionDigits

public int getFractionDigits()

Specified by:
getFractionDigits in interface NumberFormatSpecifier
Returns:
the value of the 'Fraction Digits' attribute.
See Also:
NumberFormatSpecifier.isSetFractionDigits(), NumberFormatSpecifier.unsetFractionDigits(), NumberFormatSpecifier.setFractionDigits(int), AttributePackage.getNumberFormatSpecifier_FractionDigits()

setFractionDigits

public void setFractionDigits(int newFractionDigits)

Specified by:
setFractionDigits in interface NumberFormatSpecifier
Parameters:
newFractionDigits - the new value of the 'Fraction Digits' attribute.
See Also:
NumberFormatSpecifier.isSetFractionDigits(), NumberFormatSpecifier.unsetFractionDigits(), NumberFormatSpecifier.getFractionDigits()

unsetFractionDigits

public void unsetFractionDigits()

Specified by:
unsetFractionDigits in interface NumberFormatSpecifier
See Also:
NumberFormatSpecifier.isSetFractionDigits(), NumberFormatSpecifier.getFractionDigits(), NumberFormatSpecifier.setFractionDigits(int)

isSetFractionDigits

public boolean isSetFractionDigits()

Specified by:
isSetFractionDigits in interface NumberFormatSpecifier
Returns:
whether the value of the 'Fraction Digits' attribute is set.
See Also:
NumberFormatSpecifier.unsetFractionDigits(), NumberFormatSpecifier.getFractionDigits(), NumberFormatSpecifier.setFractionDigits(int)

eGet

public java.lang.Object eGet(int featureID,
                             boolean resolve,
                             boolean coreType)

Specified by:
eGet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eGet in class org.eclipse.emf.ecore.impl.BasicEObjectImpl

eSet

public void eSet(int featureID,
                 java.lang.Object newValue)

Specified by:
eSet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eSet in class org.eclipse.emf.ecore.impl.BasicEObjectImpl

eUnset

public void eUnset(int featureID)

Specified by:
eUnset in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eUnset in class org.eclipse.emf.ecore.impl.BasicEObjectImpl

eIsSet

public boolean eIsSet(int featureID)

Specified by:
eIsSet in interface org.eclipse.emf.ecore.InternalEObject
Overrides:
eIsSet in class org.eclipse.emf.ecore.impl.BasicEObjectImpl

toString

public java.lang.String toString()

Overrides:
toString in class org.eclipse.emf.ecore.impl.BasicEObjectImpl

create

public static NumberFormatSpecifier create()
A convenience methods provided to create an initialized NumberFormatSpecifier instance NOTE: Manually written

Returns:
this instance

format

public java.lang.String format(double dValue,
                               java.util.Locale lo)
Description copied from interface: NumberFormatSpecifier
Formats a value using the internally defined format specifier rules

Specified by:
format in interface NumberFormatSpecifier
Returns:
A formatted string representation of the numerical value provided

format

public java.lang.String format(double dValue,
                               com.ibm.icu.util.ULocale lo)
Description copied from interface: NumberFormatSpecifier
Formats a value using the internally defined format specifier rules

Specified by:
format in interface NumberFormatSpecifier
Returns:
A formatted string representation of the numerical value provided

copyInstance

public NumberFormatSpecifier copyInstance()
A convenient method to get an instance copy. This is much faster than the ECoreUtil.copy().

Specified by:
copyInstance in interface FormatSpecifier
Specified by:
copyInstance in interface NumberFormatSpecifier
Overrides:
copyInstance in class FormatSpecifierImpl

create

public static NumberFormatSpecifier create(org.eclipse.emf.ecore.EObject parent,
                                           org.eclipse.emf.ecore.EReference ref)


Copyright © 2005-2008 Actuate Corp. All rights reserved.