Interface DateFormatSpecifier
- All Superinterfaces:
org.eclipse.emf.ecore.EObject,FormatSpecifier,IChartObject,org.eclipse.emf.common.notify.Notifier
- All Known Implementing Classes:
DateFormatSpecifierImpl
A representation of the model object 'Date
Format Specifier'.
DateFormatSpecifier extends the type FormatSpecifier
to devote itself to formating text output of a date/time value.
The following features are supported:
-
Method Summary
Modifier and TypeMethodDescriptionformat(com.ibm.icu.util.Calendar c, com.ibm.icu.util.ULocale lcl) Formats a calendar value using the date format pattern NOTE: Manually writtenDeprecated.Returns the value of the 'Detail' attribute.getType()Returns the value of the 'Type' attribute.booleanReturns whether the value of the 'Detail' attribute is set.booleanReturns whether the value of the 'Type' attribute is set.voidsetDetail(DateFormatDetail value) Sets the value of the 'Detail' attribute.voidsetType(DateFormatType value) Sets the value of the 'Type' attribute.voidUnsets the value of the 'Detail' attribute.voidUnsets the value of the 'Type' attribute.Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnsetMethods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
Method Details
-
getType
DateFormatType getType()Returns the value of the 'Type' attribute. The default value is"Long". The literals are from the enumerationDateFormatType. Defines the format specifier.- Returns:
- the value of the 'Type' attribute.
- See Also:
-
setType
Sets the value of the 'Type' attribute.- Parameters:
value- the new value of the 'Type' attribute.- See Also:
-
unsetType
void unsetType()Unsets the value of the 'Type' attribute.- See Also:
-
isSetType
boolean isSetType()Returns whether the value of the 'Type' attribute is set.- Returns:
- whether the value of the 'Type' attribute is set.
- See Also:
-
getDetail
DateFormatDetail getDetail()Returns the value of the 'Detail' attribute. The default value is"Date". The literals are from the enumerationDateFormatDetail. Species the form of the date.- Returns:
- the value of the 'Detail' attribute.
- See Also:
-
setDetail
Sets the value of the 'Detail' attribute.- Parameters:
value- the new value of the 'Detail' attribute.- See Also:
-
unsetDetail
void unsetDetail()Unsets the value of the 'Detail' attribute. -
isSetDetail
boolean isSetDetail()Returns whether the value of the 'Detail' attribute is set.- Returns:
- whether the value of the 'Detail' attribute is set.
- See Also:
-
format
Deprecated.Formats a calendar value using the date format pattern NOTE: Manually written- Parameters:
c-lcl-
-
format
Formats a calendar value using the date format pattern NOTE: Manually written- Parameters:
c-lcl-- Since:
- 2.1
-
copyInstance
DateFormatSpecifier copyInstance()- Specified by:
copyInstancein interfaceFormatSpecifier- Specified by:
copyInstancein interfaceIChartObject
-