|
Query |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.iquery.metadata.serverprop.formats.SASFormatDescriptionUtil
public class SASFormatDescriptionUtil
Performs a series of getters on SAS specific format description. This is a helper class.
Constructor Summary | |
---|---|
SASFormatDescriptionUtil()
|
Method Summary | |
---|---|
static SASFormatAttributes |
getFormatAttributes(java.lang.String formatString)
Given a SASFormat String, this method will return a SASFormatAttributes object with the format string's attributes like the base format name, width etc. |
static SASFormatDescription |
getFormatDescription(java.lang.String baseFormatName)
Get a SASFormatDescription for a base format name. |
static SASFormatDescription |
getFormatDescription(java.lang.String baseFormatName,
java.util.Locale locale)
Get a SASFormatDescription for a base format name. |
static java.lang.String |
getFormatDescriptionString(SASFormatDescription desc)
Returns the given format description as a String. |
static java.lang.String |
getFormatDescriptionString(SASFormatDescription desc,
int width)
Returns the format description as a String based the SASFormatDescription and width. |
static java.lang.String |
getFormatDescriptionString(SASFormatDescription desc,
int width,
int decimalWidth)
Returns format description as a String based on the SASFormatDescription, width and decimal width. |
static java.lang.String |
getFormatDescriptionString(java.lang.String baseFormatName)
Returns the format description as a String for the given base format name. |
static java.lang.String |
getFormatDescriptionString(java.lang.String baseFormatName,
int width)
Returns format description as a String based on the base format name and width. |
static java.lang.String |
getFormatDescriptionString(java.lang.String baseFormatName,
int width,
int decimalWidth)
Returns format description as a String based on the base format name, width, and decimal width. |
static java.util.List<SASFormatDescription> |
getFormatsByType(SASFormatCategory type,
BusinessModel model,
java.util.Locale locale)
Visits the appropriate server for this business model and retrieves all the formats for the given type. |
static java.util.List<SASFormatDescription> |
getUserDefinedFormats(BusinessModel model,
java.util.Locale locale)
Visits the appropriate server for this business model and retrieves all user defined formats. |
static boolean |
isFormatUserDefined(java.lang.String format,
BusinessModel model,
java.util.Locale locale)
Tests the format to see if it is user defined. |
Constructor Detail |
---|
public SASFormatDescriptionUtil()
Method Detail |
---|
public static SASFormatDescription getFormatDescription(java.lang.String baseFormatName)
baseFormatName
- base format name e.g $ASCII
public static SASFormatDescription getFormatDescription(java.lang.String baseFormatName, java.util.Locale locale)
baseFormatName
- base format name e.g $ASCII
public static SASFormatAttributes getFormatAttributes(java.lang.String formatString) throws SASFormatException
formatString
- a SASFormatString e.g. $ASCII22.2
SASFormatException
- in case of any errorpublic static java.lang.String getFormatDescriptionString(java.lang.String baseFormatName)
public static java.lang.String getFormatDescriptionString(SASFormatDescription desc)
public static java.lang.String getFormatDescriptionString(java.lang.String baseFormatName, int width)
public static java.lang.String getFormatDescriptionString(SASFormatDescription desc, int width)
public static java.lang.String getFormatDescriptionString(java.lang.String baseFormatName, int width, int decimalWidth)
public static java.lang.String getFormatDescriptionString(SASFormatDescription desc, int width, int decimalWidth)
public static boolean isFormatUserDefined(java.lang.String format, BusinessModel model, java.util.Locale locale) throws SASFormatException
format
- Input format. This can be of the form BEST or BEST12.2model
- The business modellocale
- The users locale
SASFormatException
public static java.util.List<SASFormatDescription> getUserDefinedFormats(BusinessModel model, java.util.Locale locale) throws SASFormatException
model
- The business modellocale
- The users locale
SASFormatException
public static java.util.List<SASFormatDescription> getFormatsByType(SASFormatCategory type, BusinessModel model, java.util.Locale locale) throws SASFormatException
model
- The business modellocale
- The users locale
SASFormatException
|
Query |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |