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

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.FractionNumberFormatSpecifierImpl
All Implemented Interfaces:
FormatSpecifier, FractionNumberFormatSpecifier, IChartObject, org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.InternalEObject

public class FractionNumberFormatSpecifierImpl
extends FormatSpecifierImpl
implements FractionNumberFormatSpecifier

An implementation of the model object 'Fraction 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>, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EObservableAdapterList
 
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
 FractionNumberFormatSpecifier copyInstance()
           
static FractionNumberFormatSpecifier create()
          A convenience methods provided to create an initialized NumberFormatSpecifier instance NOTE: Manually written
 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
 java.lang.String getDelimiter()
           
 int getFractionDigits()
           
 double getNumerator()
           
 java.lang.String getPrefix()
           
 java.lang.String getSuffix()
           
 boolean isPrecise()
           
 boolean isSetDelimiter()
           
 boolean isSetFractionDigits()
           
 boolean isSetNumerator()
           
 boolean isSetPrecise()
           
 void setDelimiter(java.lang.String newDelimiter)
           
 void setFractionDigits(int newFractionDigits)
           
 void setNumerator(double newNumerator)
           
 void setPrecise(boolean newPrecise)
           
 void setPrefix(java.lang.String newPrefix)
           
 void setSuffix(java.lang.String newSuffix)
           
 java.lang.String toString()
           
 void unsetDelimiter()
           
 void unsetFractionDigits()
           
 void unsetNumerator()
           
 void unsetPrecise()
           
 
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eInvoke, 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, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eInternalResource, eInverseAdd, eInverseAdd, eInverseRemove, eInverseRemove, eInvoke, 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, eInvoke, 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

isPrecise

public boolean isPrecise()

Specified by:
isPrecise in interface FractionNumberFormatSpecifier
Returns:
the value of the 'Precise' attribute.
See Also:
FractionNumberFormatSpecifier.isSetPrecise(), FractionNumberFormatSpecifier.unsetPrecise(), FractionNumberFormatSpecifier.setPrecise(boolean), AttributePackage.getFractionNumberFormatSpecifier_Precise()

setPrecise

public void setPrecise(boolean newPrecise)

Specified by:
setPrecise in interface FractionNumberFormatSpecifier
Parameters:
newPrecise - the new value of the 'Precise' attribute.
See Also:
FractionNumberFormatSpecifier.isSetPrecise(), FractionNumberFormatSpecifier.unsetPrecise(), FractionNumberFormatSpecifier.isPrecise()

unsetPrecise

public void unsetPrecise()

Specified by:
unsetPrecise in interface FractionNumberFormatSpecifier
See Also:
FractionNumberFormatSpecifier.isSetPrecise(), FractionNumberFormatSpecifier.isPrecise(), FractionNumberFormatSpecifier.setPrecise(boolean)

isSetPrecise

public boolean isSetPrecise()

Specified by:
isSetPrecise in interface FractionNumberFormatSpecifier
Returns:
whether the value of the 'Precise' attribute is set.
See Also:
FractionNumberFormatSpecifier.unsetPrecise(), FractionNumberFormatSpecifier.isPrecise(), FractionNumberFormatSpecifier.setPrecise(boolean)

getFractionDigits

public int getFractionDigits()

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

setFractionDigits

public void setFractionDigits(int newFractionDigits)

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

unsetFractionDigits

public void unsetFractionDigits()

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

isSetFractionDigits

public boolean isSetFractionDigits()

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

getNumerator

public double getNumerator()

Specified by:
getNumerator in interface FractionNumberFormatSpecifier
Returns:
the value of the 'Numerator' attribute.
See Also:
FractionNumberFormatSpecifier.isSetNumerator(), FractionNumberFormatSpecifier.unsetNumerator(), FractionNumberFormatSpecifier.setNumerator(double), AttributePackage.getFractionNumberFormatSpecifier_Numerator()

setNumerator

public void setNumerator(double newNumerator)

Specified by:
setNumerator in interface FractionNumberFormatSpecifier
Parameters:
newNumerator - the new value of the 'Numerator' attribute.
See Also:
FractionNumberFormatSpecifier.isSetNumerator(), FractionNumberFormatSpecifier.unsetNumerator(), FractionNumberFormatSpecifier.getNumerator()

unsetNumerator

public void unsetNumerator()

Specified by:
unsetNumerator in interface FractionNumberFormatSpecifier
See Also:
FractionNumberFormatSpecifier.isSetNumerator(), FractionNumberFormatSpecifier.getNumerator(), FractionNumberFormatSpecifier.setNumerator(double)

isSetNumerator

public boolean isSetNumerator()

Specified by:
isSetNumerator in interface FractionNumberFormatSpecifier
Returns:
whether the value of the 'Numerator' attribute is set.
See Also:
FractionNumberFormatSpecifier.unsetNumerator(), FractionNumberFormatSpecifier.getNumerator(), FractionNumberFormatSpecifier.setNumerator(double)

getPrefix

public java.lang.String getPrefix()

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

setPrefix

public void setPrefix(java.lang.String newPrefix)

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

getSuffix

public java.lang.String getSuffix()

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

setSuffix

public void setSuffix(java.lang.String newSuffix)

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

getDelimiter

public java.lang.String getDelimiter()

Specified by:
getDelimiter in interface FractionNumberFormatSpecifier
Returns:
the value of the 'Delimiter' attribute.
See Also:
FractionNumberFormatSpecifier.isSetDelimiter(), FractionNumberFormatSpecifier.unsetDelimiter(), FractionNumberFormatSpecifier.setDelimiter(String), AttributePackage.getFractionNumberFormatSpecifier_Delimiter()

setDelimiter

public void setDelimiter(java.lang.String newDelimiter)

Specified by:
setDelimiter in interface FractionNumberFormatSpecifier
Parameters:
newDelimiter - the new value of the 'Delimiter' attribute.
See Also:
FractionNumberFormatSpecifier.isSetDelimiter(), FractionNumberFormatSpecifier.unsetDelimiter(), FractionNumberFormatSpecifier.getDelimiter()

unsetDelimiter

public void unsetDelimiter()

Specified by:
unsetDelimiter in interface FractionNumberFormatSpecifier
See Also:
FractionNumberFormatSpecifier.isSetDelimiter(), FractionNumberFormatSpecifier.getDelimiter(), FractionNumberFormatSpecifier.setDelimiter(String)

isSetDelimiter

public boolean isSetDelimiter()

Specified by:
isSetDelimiter in interface FractionNumberFormatSpecifier
Returns:
whether the value of the 'Delimiter' attribute is set.
See Also:
FractionNumberFormatSpecifier.unsetDelimiter(), FractionNumberFormatSpecifier.getDelimiter(), FractionNumberFormatSpecifier.setDelimiter(String)

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 FractionNumberFormatSpecifier 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: FractionNumberFormatSpecifier
Formats a value using the internally defined format specifier rules

Specified by:
format in interface FractionNumberFormatSpecifier
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: FractionNumberFormatSpecifier
Formats a value using the internally defined format specifier rules

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

copyInstance

public FractionNumberFormatSpecifier copyInstance()
Specified by:
copyInstance in interface FormatSpecifier
Specified by:
copyInstance in interface FractionNumberFormatSpecifier
Specified by:
copyInstance in interface IChartObject
Overrides:
copyInstance in class FormatSpecifierImpl


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