Interface DateFormatSpecifier
-
- All Superinterfaces:
org.eclipse.emf.ecore.EObject,FormatSpecifier,IChartObject,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'. DateFormatSpecifier extends the type FormatSpecifier to devote itself to formating text output of a date/time value.The following features are supported:
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description DateFormatSpecifiercopyInstance()java.lang.Stringformat(com.ibm.icu.util.Calendar c, com.ibm.icu.util.ULocale lcl)Formats a calendar value using the date format pattern NOTE: Manually writtenjava.lang.Stringformat(com.ibm.icu.util.Calendar c, java.util.Locale lcl)Deprecated.DateFormatDetailgetDetail()Returns the value of the 'Detail' attribute.DateFormatTypegetType()Returns the value of the 'Type' attribute.booleanisSetDetail()Returns whether the value of the 'Detail' attribute is set.booleanisSetType()Returns 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.voidunsetDetail()Unsets the value of the 'Detail' attribute.voidunsetType()Unsets the value of the 'Type' attribute.
-
-
-
Method Detail
-
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:
DateFormatType,isSetType(),unsetType(),setType(DateFormatType),AttributePackage.getDateFormatSpecifier_Type()
-
setType
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
void unsetType()
Unsets the value of the 'Type' attribute.- See Also:
isSetType(),getType(),setType(DateFormatType)
-
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:
unsetType(),getType(),setType(DateFormatType)
-
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:
DateFormatDetail,isSetDetail(),unsetDetail(),setDetail(DateFormatDetail),AttributePackage.getDateFormatSpecifier_Detail()
-
setDetail
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
void unsetDetail()
Unsets the value of the 'Detail' attribute.- See Also:
isSetDetail(),getDetail(),setDetail(DateFormatDetail)
-
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:
unsetDetail(),getDetail(),setDetail(DateFormatDetail)
-
format
@Deprecated 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
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
-
copyInstance
DateFormatSpecifier copyInstance()
- Specified by:
copyInstancein interfaceFormatSpecifier- Specified by:
copyInstancein interfaceIChartObject
-
-