public class Cob2XsdConfig extends Object
The class is immutable.
| Modifier and Type | Class and Description |
|---|---|
static class |
Cob2XsdConfig.CodeFormat
Source can be in fixed format (sequence numbers, indicator area, area A,
area B) or free format.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
ADD_LEGSTAR_ANNOTATIONS
Whether we should generate COBOL/JAXB annotations.
|
static String |
CODE_FORMAT
Fixed or Free format COBOL source.
|
static String |
CURRENCY_SIGN
Currency sign used (CURRENCY SIGN clause in the SPECIAL-NAMES).
|
static String |
CURRENCY_SYMBOL
Currency symbol used (CURRENCY PICTURE SYMBOL clause).
|
static String |
DECIMAL_POINT_IS_COMMA
Whether comma is the decimal point (DECIMAL-POINT IS COMMA clause).
|
static String |
DEFAULT_CODE_FORMAT
Default code format.
|
static String |
DEFAULT_CURRENCY_SIGN
Default Currency sign used (CURRENCY SIGN clause in the SPECIAL-NAMES).
|
static String |
DEFAULT_CURRENCY_SYMBOL
Default Currency symbol used (CURRENCY PICTURE SYMBOL clause in the
SPECIAL-NAMES).
|
static String |
DEFAULT_END_COLUMN
Default column where fixed format COBOL code ends (inclusive, based 1).
|
static String |
DEFAULT_START_COLUMN
Default column where fixed format COBOL code starts (inclusive, based 1).
|
static String |
DEFAULT_XSD_ENCODING
The default character set used to encode the XML Schema.
|
static String |
ELEMENT_NAMES_START_WITH_UPPERCASE
True if XSD element names should start with an uppercase.
|
static String |
END_COLUMN
For fixed format COBOL position of the right margin.
|
static String |
IGNORE_ORPHAN_PRIMITIVE_ELEMENTS
True if we should ignore primitive data items without a parent group.
|
static String |
MAP_CONDITIONS_TO_FACETS
Whether COBOL conditions (level 88) should be mapped to facets.
|
static String |
NAME_CONFLICT_PREPEND_PARENT_NAME
True if parent complex type name should be prepended in case of name
conflict.
|
static String |
NSYMBOL_DBCS
COBOL NSYMBOL(DBCS) compiler option.
|
static String |
QUOTE_IS_QUOTE
COBOL QUOTE|APOST compiler option.
|
static String |
START_COLUMN
For fixed format COBOL, position of the indicator area.
|
static String |
XSD_ENCODING
Character set used to encode the output XML Schema.
|
| Constructor and Description |
|---|
Cob2XsdConfig(File configFile)
Construct from a properties file.
|
Cob2XsdConfig(Properties configProps)
Construct configuration from a properties object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addLegStarAnnotations()
Whether we should generate LegStar COBOL/JAXB annotations.
|
boolean |
decimalPointIsComma()
Whether comma is the decimal point (DECIMAL-POINT IS COMMA clause in the
SPECIAL-NAMES).
|
boolean |
elementNamesStartWithUppercase()
True if XSD element names should start with an uppercase (compatible with
legstar-schemagen).
|
Cob2XsdConfig.CodeFormat |
getCodeFormat() |
String |
getCurrencySign()
The COBOL currency sign used (CURRENCY SIGN clause in the SPECIAL-NAMES).
|
String |
getCurrencySymbol()
The COBOL currency symbol used (CURRENCY PICTURE SYMBOL clause in the
SPECIAL-NAMES).
|
static Properties |
getDefaultConfigProps() |
int |
getEndColumn() |
int |
getStartColumn() |
String |
getXsdEncoding() |
boolean |
ignoreOrphanPrimitiveElements()
Ignore primitive data items which are not attached to a parent group.
|
boolean |
mapConditionsToFacets()
Whether COBOL conditions (level 88) should be mapped to facets.
|
boolean |
nameConflictPrependParentName()
True if parent complex type name should be prepended in case of name
conflict (otherwise, the COBOL source line will be appended).
|
boolean |
nSymbolDbcs()
The COBOL NSYMBOL(DBCS) compiler option.
|
boolean |
quoteIsQuote()
The COBOL QUOTE|APOST compiler option.
|
String |
toString() |
public static final String DEFAULT_CODE_FORMAT
public static final String DEFAULT_START_COLUMN
public static final String DEFAULT_END_COLUMN
public static final String DEFAULT_XSD_ENCODING
public static final String DEFAULT_CURRENCY_SIGN
public static final String DEFAULT_CURRENCY_SYMBOL
public static final String CODE_FORMAT
public static final String START_COLUMN
public static final String END_COLUMN
public static final String XSD_ENCODING
public static final String MAP_CONDITIONS_TO_FACETS
public static final String NAME_CONFLICT_PREPEND_PARENT_NAME
public static final String ELEMENT_NAMES_START_WITH_UPPERCASE
public static final String IGNORE_ORPHAN_PRIMITIVE_ELEMENTS
public static final String ADD_LEGSTAR_ANNOTATIONS
public static final String CURRENCY_SIGN
public static final String CURRENCY_SYMBOL
public static final String DECIMAL_POINT_IS_COMMA
public static final String NSYMBOL_DBCS
public static final String QUOTE_IS_QUOTE
public Cob2XsdConfig(Properties configProps)
configProps - the properties objectpublic Cob2XsdConfig(File configFile) throws IOException
configFile - the configuration fileIOException - if configuration cannot be loadedpublic static Properties getDefaultConfigProps()
public Cob2XsdConfig.CodeFormat getCodeFormat()
public int getStartColumn()
public int getEndColumn()
public String getXsdEncoding()
public boolean mapConditionsToFacets()
public boolean nameConflictPrependParentName()
public boolean elementNamesStartWithUppercase()
public boolean ignoreOrphanPrimitiveElements()
public boolean addLegStarAnnotations()
public String getCurrencySign()
public String getCurrencySymbol()
public boolean decimalPointIsComma()
public boolean nSymbolDbcs()
public boolean quoteIsQuote()
Copyright © 2021 LegSem. All rights reserved.