org.eclipse.birt.chart.model.attribute
Interface DateFormatSpecifier

All Superinterfaces:
org.eclipse.emf.ecore.EObject, FormatSpecifier, org.eclipse.emf.common.notify.Notifier
All Known Implementing Classes:
DateFormatSpecifierImpl

public interface DateFormatSpecifier
extends FormatSpecifier

A representation of the model object 'Date Format Specifier'. This type holds the format specifier properties for a date label.

The following features are supported:

See Also:
AttributePackage.getDateFormatSpecifier()

Method Summary
 java.lang.String format(com.ibm.icu.util.Calendar c, java.util.Locale lcl)
          Deprecated.  
 java.lang.String format(com.ibm.icu.util.Calendar c, com.ibm.icu.util.ULocale lcl)
          Formats a calendar value using the date format pattern NOTE: Manually written
 DateFormatDetail getDetail()
          Returns the value of the 'Detail' attribute.
 DateFormatType getType()
          Returns the value of the 'Type' attribute.
 boolean isSetDetail()
          Returns whether the value of the 'Detail' attribute is set.
 boolean isSetType()
          Returns whether the value of the ' Type' attribute is set.
 void setDetail(DateFormatDetail value)
          Sets the value of the ' Detail' attribute.
 void setType(DateFormatType value)
          Sets the value of the 'Type' attribute.
 void unsetDetail()
          Unsets the value of the ' Detail' attribute.
 void unsetType()
          Unsets the value of the ' Type' 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
 

Method Detail

getType

public DateFormatType getType()
Returns the value of the 'Type' attribute. The default value is "Long". The literals are from the enumeration DateFormatType. Defines the format specifier.

Returns:
the value of the 'Type' attribute.
See Also:
DateFormatType, isSetType(), unsetType(), setType(DateFormatType), AttributePackage.getDateFormatSpecifier_Type()

setType

public void setType(DateFormatType value)
Sets the value of the 'Type' attribute.

Parameters:
value - the new value of the 'Type' attribute.
See Also:
DateFormatType, isSetType(), unsetType(), getType()

unsetType

public void unsetType()
Unsets the value of the ' Type' attribute.

See Also:
isSetType(), getType(), setType(DateFormatType)

isSetType

public boolean isSetType()
Returns whether the value of the ' Type' attribute is set.

Returns:
whether the value of the 'Type' attribute is set.
See Also:
unsetType(), getType(), setType(DateFormatType)

getDetail

public DateFormatDetail getDetail()
Returns the value of the 'Detail' attribute. The default value is "Date". The literals are from the enumeration DateFormatDetail. Species the form of the date.

Returns:
the value of the 'Detail' attribute.
See Also:
DateFormatDetail, isSetDetail(), unsetDetail(), setDetail(DateFormatDetail), AttributePackage.getDateFormatSpecifier_Detail()

setDetail

public void setDetail(DateFormatDetail value)
Sets the value of the ' Detail' attribute.

Parameters:
value - the new value of the 'Detail' attribute.
See Also:
DateFormatDetail, isSetDetail(), unsetDetail(), getDetail()

unsetDetail

public void unsetDetail()
Unsets the value of the ' Detail' attribute.

See Also:
isSetDetail(), getDetail(), setDetail(DateFormatDetail)

isSetDetail

public boolean isSetDetail()
Returns whether the value of the 'Detail' attribute is set.

Returns:
whether the value of the 'Detail' attribute is set.
See Also:
unsetDetail(), getDetail(), setDetail(DateFormatDetail)

format

public java.lang.String format(com.ibm.icu.util.Calendar c,
                               java.util.Locale lcl)
Deprecated.  

Formats a calendar value using the date format pattern NOTE: Manually written

Parameters:
c -
lcl -

format

public java.lang.String format(com.ibm.icu.util.Calendar c,
                               com.ibm.icu.util.ULocale lcl)
Formats a calendar value using the date format pattern NOTE: Manually written

Parameters:
c -
lcl -
Since:
2.1


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