|
| Query |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.iquery.metadata.serverprop.formats.SASFormatDescriptionUtil
@SASScope(value="ALL") @SubjectToChange 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 |
|---|
@SASScope(value="ALL") @SubjectToChange public static SASFormatDescription getFormatDescription(java.lang.String baseFormatName)
baseFormatName - base format name e.g $ASCII
@SASScope(value="ALL")
@SubjectToChange
public static SASFormatDescription getFormatDescription(java.lang.String baseFormatName,
java.util.Locale locale)
baseFormatName - base format name e.g $ASCII
@SASScope(value="ALL")
@SubjectToChange
public static SASFormatAttributes getFormatAttributes(@Nonnull
java.lang.String formatString)
throws SASFormatException
formatString - a SASFormatString e.g. $ASCII22.2
SASFormatException - in case of any error@SASScope(value="ALL") @SubjectToChange public static java.lang.String getFormatDescriptionString(java.lang.String baseFormatName)
@SASScope(value="ALL") @SubjectToChange public static java.lang.String getFormatDescriptionString(SASFormatDescription desc)
@SASScope(value="ALL")
@SubjectToChange
public static java.lang.String getFormatDescriptionString(java.lang.String baseFormatName,
int width)
@SASScope(value="ALL")
@SubjectToChange
public static java.lang.String getFormatDescriptionString(SASFormatDescription desc,
int width)
@SASScope(value="ALL")
@SubjectToChange
public static java.lang.String getFormatDescriptionString(java.lang.String baseFormatName,
int width,
int decimalWidth)
@SASScope(value="ALL")
@SubjectToChange
public static java.lang.String getFormatDescriptionString(SASFormatDescription desc,
int width,
int decimalWidth)
@SASScope(value="ALL")
@SubjectToChange
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
@SASScope(value="ALL")
@SubjectToChange
public static java.util.List<SASFormatDescription> getUserDefinedFormats(BusinessModel model,
java.util.Locale locale)
throws SASFormatException
model - The business modellocale - The users locale
SASFormatException
@SASScope(value="ALL")
@SubjectToChange
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 | |||||||||||||