|
Novell exteNd Director 5.2 API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Objects that implement this interface define options for serializing CM element data to XML and deserializing data from XML.
Field Summary | |
static String |
DEFAULT_DATE_PATTERN
The default date pattern ("MM/dd/yyyy"). |
static String |
DEFAULT_TIME_PATTERN
The default time pattern ("HH:mm:ss"). |
static String |
DEFAULT_TIMESTAMP_PATTERN
The default timestamp pattern ("MM/dd/yyyy HH:mm:ss"). |
Method Summary | |
void |
clear()
Clears the current state of this options object. |
void |
fromXML(Node xml)
Populate the options object from XML. |
String |
getDatePattern(boolean getDefaultIfNotSet)
Gets the date pattern to use. |
Locale |
getLocale(boolean getDefaultIfNotSet)
Gets the Locale to use. |
String |
getTimePattern(boolean getDefaultIfNotSet)
Gets the time pattern to use. |
String |
getTimestampPattern(boolean getDefaultIfNotSet)
Gets the timestamp pattern to use. |
TimeZone |
getTimeZone(boolean getDefaultIfNotSet)
Gets the time zone to use. |
boolean |
mustIncludeOptions()
Tells whether to include the summary of XML data handling options into the XML that represents a CM element. |
boolean |
mustIncludeSecurityInfo()
Tells whether security information for a given CM element must be included into its XML |
boolean |
mustUseUUIDs()
Tells whether element UUID's are to be used or not |
void |
setDatePattern(String datePattern)
Sets the the date pattern to use. |
void |
setIncludeOptions(boolean include)
Sets the option to include the summary of XML data handling options into the XML that represents a CM element. |
void |
setIncludeSecurityInfo(boolean include)
Sets the option for whether to include security information for a given CM element into its XML. |
void |
setLocale(Locale locale)
Sets the Locale to use. |
void |
setTimePattern(String timePattern)
Sets the timestamp pattern to use. |
void |
setTimestampPattern(String timestampPattern)
Sets the timestamp pattern to use. |
void |
setTimeZone(TimeZone timeZone)
Sets the time zone to use. |
void |
setUseUUIDs(boolean useUUIDs)
Sets the option to use the element UUID's or not. |
Timestamp |
stringToTimestamp(String strValue)
Converts the specified String value into a Timestamp value, based on the options specified in this object. |
String |
timestampToString(Timestamp tsValue)
Converts the specified Timestamp value into a String value, based on the options specified in this object. |
Document |
toXML()
Gets the XML representation of this options object. |
Field Detail |
public static final String DEFAULT_TIME_PATTERN
public static final String DEFAULT_DATE_PATTERN
public static final String DEFAULT_TIMESTAMP_PATTERN
Method Detail |
public Locale getLocale(boolean getDefaultIfNotSet)
getDefaultIfNotSet
- if true and no locale was set in the options,
get the default Locale of the host machine.public void setLocale(Locale locale)
locale
- the Locale to usepublic String getTimePattern(boolean getDefaultIfNotSet)
getDefaultIfNotSet
- if true and no time pattern was set in the
options, get the default time patternpublic String getDatePattern(boolean getDefaultIfNotSet)
getDefaultIfNotSet
- if true and no date pattern was set in the
options, get the default date patternpublic String getTimestampPattern(boolean getDefaultIfNotSet)
getDefaultIfNotSet
- if true and no timestamp pattern was set in the
options, get the default timestamp patternpublic void setTimePattern(String timePattern)
timePattern
- the time pattern to usepublic void setDatePattern(String datePattern)
datePattern
- the date pattern to usepublic void setTimestampPattern(String timestampPattern)
timestampPattern
- the timestamp pattern to usepublic TimeZone getTimeZone(boolean getDefaultIfNotSet)
getDefaultIfNotSet
- if true and no time zone was set in to the
options, return the default time zone (that of the host machine)public void setTimeZone(TimeZone timeZone)
timeZone
- the time zone to usepublic void setUseUUIDs(boolean useUUIDs)
useUUIDs
- if true, element UUID's are to be used, otherwise only
elements' names/URL's to uniquely identify the elements; the default
is false ("do not use the element UUID's")public boolean mustUseUUIDs()
public void setIncludeOptions(boolean include)
include
- if true, include the options summary into the XMLpublic boolean mustIncludeOptions()
public void setIncludeSecurityInfo(boolean include)
include
- if true, include security information for the given
CM element into its XMLpublic boolean mustIncludeSecurityInfo()
public void fromXML(Node xml)
xml
- XML summary of the optionspublic Document toXML()
public void clear()
public Timestamp stringToTimestamp(String strValue)
strValue
- the String value to convertpublic String timestampToString(Timestamp tsValue)
tsValue
- the Timestamp value
|
Novell exteNd Director 5.2 API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |