com.sap.mdm.valuetypes.format
Class MdmDateTimeFormatInfo

java.lang.Object
  extended bycom.sap.mdm.valuetypes.format.MdmDateTimeFormatInfo
All Implemented Interfaces:
MdmFormatInfo

public class MdmDateTimeFormatInfo
extends Object
implements MdmFormatInfo

Date/time format definition


Field Summary
static String DEFAULT_DATE_PATTERN
           
static String DEFAULT_DATE_TIME_PATTERN
           
static String DEFAULT_TIME_PATTERN
           
 
Fields inherited from interface com.sap.mdm.valuetypes.format.MdmFormatInfo
CURRANCY_FORMAT_TYPE, DATE_TIME_FORMAT_TYPE, MEASUREMENT_FORMAT_TYPE, NUMBER_FORMAT_TYPE
 
Constructor Summary
MdmDateTimeFormatInfo()
          Empty constructor
MdmDateTimeFormatInfo(Locale locale)
          Constructor
MdmDateTimeFormatInfo(MdmDateTimeFormatInfo other)
          Copy constructor
 
Method Summary
 int getDateStyle()
          Returns style of date format
 String getFormatPattern()
          Returns date/time format pattern
 int getFormatType()
          Returns the format type (Date, Time, Date/Time)
 Locale getLocale()
          Returns the locale
 int getTimeStyle()
          Returns style of time format
 int getType()
          Returns type of format info
 void setDateStyle(int dateStyle)
          Sets the style of date format
 void setFormatPattern(String formatPattern)
          Sets date/time format pattern.
 void setFormatType(int formatType)
          Sets the format type
 void setLocale(Locale locale)
          Sets the locale
 void setTimeStyle(int timeStyle)
          Sets the style of time format
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_DATE_PATTERN

public static final String DEFAULT_DATE_PATTERN
See Also:
Constant Field Values

DEFAULT_TIME_PATTERN

public static final String DEFAULT_TIME_PATTERN
See Also:
Constant Field Values

DEFAULT_DATE_TIME_PATTERN

public static final String DEFAULT_DATE_TIME_PATTERN
See Also:
Constant Field Values
Constructor Detail

MdmDateTimeFormatInfo

public MdmDateTimeFormatInfo()
Empty constructor


MdmDateTimeFormatInfo

public MdmDateTimeFormatInfo(Locale locale)
Constructor

Parameters:
locale -

MdmDateTimeFormatInfo

public MdmDateTimeFormatInfo(MdmDateTimeFormatInfo other)
Copy constructor

Method Detail

getType

public int getType()
Description copied from interface: MdmFormatInfo
Returns type of format info

Specified by:
getType in interface MdmFormatInfo
Returns:
format info type

getDateStyle

public int getDateStyle()
Returns style of date format

Returns:
the style of date format
See Also:
for possible values

setDateStyle

public void setDateStyle(int dateStyle)
Sets the style of date format

Parameters:
dateStyle - the style of date format
See Also:
for possible values

getTimeStyle

public int getTimeStyle()
Returns style of time format

Returns:
the style of time format
See Also:
for possible values

setTimeStyle

public void setTimeStyle(int timeStyle)
Sets the style of time format

Parameters:
timeStyle - the style of time format
See Also:
for possible values

getFormatPattern

public String getFormatPattern()
Returns date/time format pattern

Returns:
the date/time format pattern

setFormatPattern

public void setFormatPattern(String formatPattern)
Sets date/time format pattern. If specified then all other definitions do not influence on formatting. By default is Null.

Parameters:
formatPattern - the format pattern to set

getLocale

public Locale getLocale()
Returns the locale

Returns:
the locale

setLocale

public void setLocale(Locale locale)
Sets the locale

Parameters:
locale - the locale to set

getFormatType

public int getFormatType()
Returns the format type (Date, Time, Date/Time)

Returns:
the format Type
See Also:
for possible values

setFormatType

public void setFormatType(int formatType)
Sets the format type

Parameters:
formatType - the format type to set
See Also:
for possible values


Copyright 2004-2007 by SAP AG. All Rights Reserved.

SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.

These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies (SAP Group) for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.