filenet.vw.api
Class VWLanguagePack
- java.lang.Object
-
- filenet.vw.api.VWLanguagePack
-
- All Implemented Interfaces:
- java.io.Serializable
public final class VWLanguagePack extends java.lang.Object implements java.io.SerializableThis class encapsulates a language pack, which contains information the PE server uses to generate e-mail notification messages.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.StringgetCharacterSetName()Get the character set namejava.lang.StringgetDateTimePattern()Gets the date/time pattern.java.lang.StringgetLocaleName()Gets the locale name.java.lang.StringgetNumberFormatPattern()Gets the number format pattern.VWAppNotificationTemplateList[]getTemplateFiles()Gets the e-mail notification templates that were loaded by a call toVWLanguagePack.updateTemplateFiles(String).booleanhasChanged()Returns a boolean value indicating whether or not this language pack has changed.voidsetCharacterSetName(java.lang.String theCharacterSetName)Sets the character set name.voidsetDateTimePattern(java.lang.String theDateTimePattern)Sets the date/time patternvoidsetNumberFormatPattern(java.lang.String theNumberFormatPattern)Sets the number format pattern.voidupdateTemplateFiles(java.lang.String theDirectoryPath)Loads the e-mail notification template files from the specified directory.
-
-
-
Method Detail
-
getLocaleName
public java.lang.String getLocaleName() throws VWExceptionGets the locale name.- Returns:
- The locale name.
- Throws:
VWException- Thrown for various causes.- Since:
- PE 5.2.0.0
- See Also:
Locale.toString()
-
getDateTimePattern
public java.lang.String getDateTimePattern() throws VWExceptionGets the date/time pattern.- Returns:
- The date/time pattern.
- Throws:
VWException- Thrown for various causes.- Since:
- PE 5.2.0.0
- See Also:
SimpleDateFormat
-
setDateTimePattern
public void setDateTimePattern(java.lang.String theDateTimePattern) throws VWExceptionSets the date/time pattern- Parameters:
theDateTimePattern- A valid date/time pattern. SeeSimpleDateFormatfor format information.- Throws:
VWException- Thrown for various causes.- Since:
- PE 5.2.0.0
-
getNumberFormatPattern
public java.lang.String getNumberFormatPattern() throws VWExceptionGets the number format pattern.- Returns:
- The number format pattern.
- Throws:
VWException- Thrown for various causes.- Since:
- PE 5.2.0.0
- See Also:
DecimalFormat
-
setNumberFormatPattern
public void setNumberFormatPattern(java.lang.String theNumberFormatPattern) throws VWExceptionSets the number format pattern.- Parameters:
theNumberFormatPattern- A valid data/time pattern. SeeDecimalFormatfor format information.- Throws:
VWException- Thrown for various causes.- Since:
- PE 5.2.0.0
-
getCharacterSetName
public java.lang.String getCharacterSetName() throws VWExceptionGet the character set name- Returns:
- the character set name
- Throws:
VWException- Thrown for various causes.- Since:
- PE 5.2.0.0
- See Also:
Charset
-
setCharacterSetName
public void setCharacterSetName(java.lang.String theCharacterSetName) throws VWExceptionSets the character set name.- Parameters:
theCharacterSetName- A valid character set name. SeeCharsetfor information on the available character sets.- Throws:
VWException- Thrown for various causes.- Since:
- PE 5.2.0.0
-
hasChanged
public boolean hasChanged() throws VWExceptionReturns a boolean value indicating whether or not this language pack has changed.- Returns:
- A value of
trueif this language pack has changed;falseotherwise. - Throws:
VWException- Thrown for various causes.- Since:
- PE 5.2.0.0
-
updateTemplateFiles
public void updateTemplateFiles(java.lang.String theDirectoryPath) throws VWExceptionLoads the e-mail notification template files from the specified directory.- Parameters:
theDirectoryPath- The directory containing the e-mail notification template files.- Throws:
VWException- Thrown for various causes.- Since:
- PE 5.2.0.0
- See Also:
VWLanguagePack.getTemplateFiles()
-
getTemplateFiles
public VWAppNotificationTemplateList[] getTemplateFiles() throws VWException
Gets the e-mail notification templates that were loaded by a call toVWLanguagePack.updateTemplateFiles(String).- Returns:
- An array containing VWAppNotificationTemplateList objects.
- Throws:
VWException- Thrown for various causes.- Since:
- PE 5.2.0.0
- See Also:
VWAppNotificationTemplateList
-
-