This class describes the basic properties of a table and, depending on its type, can also contain the table data itself. More...
Public Attributes | |
COLRules | |
For Collation tables only. More... | |
Description | |
Description of the Table. More... | |
Identifiers | |
For Identifier tables only. More... | |
Modes | |
For Mode tables only. More... | |
NameFrom | |
For XLT tables this corresponds to the source encoding or. More... | |
NameTo | |
For XLT tables this corresponds to the target encoding or. More... | |
PatAliases | |
For Patcode tables only. More... | |
PatCodes | |
For Patcode tables only. More... | |
PatternRanges | |
For pattern tables only. More... | |
SubTableName | |
For LowerCase, UpperCase, TitleCase, XLT, COL and Pattern tables. More... | |
Type | |
Type of table: More... | |
XLTDefaultAction | |
For XLT tables only. More... | |
XLTModeTableName | |
For XLT modal tables only. More... | |
XLTReplacementValue | |
For XLT tables only. More... | |
XLTReversibility | |
For XLT tables only. More... | |
XLTType | |
For XLT tables only. More... | |
XYActions | |
For XY table only. More... | |
Static Public Attributes | |
DOMAIN = None | |
Default Localization Domain. | |
This class describes the basic properties of a table and, depending on its type, can also contain the table data itself.
For types XLT, COL, and Case, the data points are stored in a SubTable object. For types Patcode, Ident and XY, the data points are kept in the Table object itself. Mode tables use a hybrid mechanism, with the modal escape sequences kept in the Table and the data points in a Mode SubTable. Pattern tables keep the pattern code ranges but also point to a Patcode Table.
Warning!
Only tables which have a "NameFrom" or "NameTo" property beginning with "y" (e.g. "yPrinterXYZ" or "yMytable") are considered custom tables and are preserved during system upgrades. All other tables are restored to their original state and any changes to them made with methods from this class will be lost in an upgrade.
|
static |
Compiles a single Table<br>
Parameters:
|
static |
Creates a Table the NLS database.
Parameters:
|
static |
Creates a Table with common default parameters
Doesn't require passing a complete table specification.
Parameters:
|
static |
Deletes a Table.
Parameters:
|
static |
Checks for the existence of a Table in the NLS database.
Parameters:
Return values:
If Value of the method = 0 (Table does not exist, or some error occured)
If Value of the method = 1 (Table exists)
|
static |
|
static |
Exports all Table records to ^nls.
Parameters:
|
static |
Exports Table Objects to separate xml files.
Parameters:
Dir - Directory where the files will be created NumExported (byref) - Returns number of Table records exported. Types/NamesFrom/NamesTo - Comma separated list of Tables to export, "*" = All
|
static |
|
static |
Exports one Table record to ^nls.
Parameters:
|
static |
Deletes a single row in a "FromTo" table (XLT, COL or Case).
Parameters:
|
static |
Edits a single row in a "FromTo" table (XLT, COL or Case).
Parameters:
|
static |
|
static |
Gets a Table's properties from the ^nls global.
Parameters:
See the Create method for more information on properties returned
|
static |
Imports Table records from an xml file.
Parameters:
Note: On failure, no records will be imported
|
static |
Imports Table records from ^nls.
Parameters:
|
static |
Imports table files from a directory.
Parameters:
|
static |
Imports one Table record from ^nls.
Parameters:
|
static |
Verifies whether a table can be loaded<br>
Parameters:
Returns: True if table has been compiled and can be loaded
False otherwise
|
static |
Verifies validity of table<br>
Parameters:
Warnings - Returned list of warnings Returns: True if the table has a consistent definition
False otherwise
|
static |
Loads a Table from a Locale.
Parameters:
If typ="COL" or typ="XLT", loads both input and output sides.
If loc = current locale, changes defaults if necessary
|
static |
Modifies an existing Table's properties in the NLS database.
Parameters:
See the Create() method for a description of the Properties parameter.
If a specific property is not passed in the properties array, or is the same as the existing value, the value is not modified.
|
static |
Sets a Table's properties in ^nls.
Parameters:
COLRules |
For Collation tables only.
$LB(collation #,local encoding rule,global encoding rule)
Description |
Description of the Table.
Identifiers |
For Identifier tables only.
$LB("start:num","start:num",...)
Modes |
For Mode tables only.
array({mode-index})="mode-name:mode-bytes:mode-seq"
NameFrom |
For XLT tables this corresponds to the source encoding or.
character set. For the other types this is the character set used by the current locale.
NameTo |
For XLT tables this corresponds to the target encoding or.
character set. For the other types is is usually the name of the table.
PatAliases |
For Patcode tables only.
$LB("alias:codes","alias:codes",...)
PatCodes |
For Patcode tables only.
$LB("code:num","code:num",...)
PatternRanges |
For pattern tables only.
array("A")=$LB("start:num","start:num",...)
SubTableName |
For LowerCase, UpperCase, TitleCase, XLT, COL and Pattern tables.
Type |
Type of table:
Lowercase, UpperCase, TitleCase,
XLT, COL, Mode, Pattern, Ident, XY, Patcode
XLTDefaultAction |
For XLT tables only.
XLT Default actions:
0 - Generate error
1 - Replace with replacement string/value
2 - Replace with original string/value (ignore)
XLTModeTableName |
For XLT modal tables only.
XLT Name of mode table.
XLTReplacementValue |
For XLT tables only.
XLT Replacement value.
XLTReversibility |
For XLT tables only.
XLT Reversibility:
0 - Non-reversible (ambiguous)
1 - Reversible
2 - Generated from a reversible table
XLTType |
For XLT tables only.
XLT Table type:
0 - Non-modal to non-modal
1 - Non-modal to modal
2 - Modal to modal
XYActions |
For XY table only.
array({xytype})=$LB("start:num","start:num",...)
xytype:
0 - Normal printing character
1 - Full width character
2 - Non printing character
3 - Backspace character
4 - Line feed character
5 - Form feed character
6 - Carriage return character
7 - Escape sequence character