| Package | Description |
|---|---|
| com.legstar.cob2xsd |
Classes in this package implement the COBOL to XML Schema translation process.
|
| com.legstar.cobol | |
| com.legstar.cobol.model |
Classes in this package provide model of COBOL types.
|
| Modifier and Type | Method and Description |
|---|---|
List<CobolDataItem> |
Cob2Xsd.emitModel(org.antlr.runtime.tree.CommonTree ast)
Generates a model from an Abstract Syntax Tree.
|
List<CobolDataItem> |
XsdDataItem.getCobolChildren() |
List<CobolDataItem> |
Cob2Xsd.toModel(Reader cobolReader)
Parses a COBOL source into an in-memory model.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
XsdDataItem.formatElementName(CobolDataItem cobolDataItem,
List<String> nonUniqueCobolNames,
Cob2XsdConfig config,
XsdDataItem parent,
int order)
Turn a COBOL name to an XSD element name.
|
static String |
XsdDataItem.formatTypeName(String elementName,
CobolDataItem cobolDataItem,
List<String> nonUniqueCobolNames,
Cob2XsdConfig config,
XsdDataItem parent,
int order)
Turn a COBOL name to a unique XSD type name.
|
protected static void |
Cob2Xsd.getNonUniqueCobolNames(CobolDataItem cobolDataItem,
List<String> cobolNames,
List<String> nonUniqueCobolNames)
If data item COBOL name is already used, we add it to the non unique
list.
|
protected boolean |
XsdDataItem.isGroup(CobolDataItem cobolDataItem)
Items are identified as group items if they has at least one child that
is not a condition.
|
protected void |
XsdDataItem.setDataDescription(CobolDataItem cobolDataItem,
Cob2XsdConfig config,
List<String> nonUniqueCobolNames)
Setup a regular data description entry, elementary data items and groups.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.ws.commons.schema.XmlSchema |
Cob2Xsd.emitXsd(List<CobolDataItem> cobolDataItems,
String targetNamespace)
Generate an XML Schema using a model of COBOL data items.
|
static List<String> |
Cob2Xsd.getNonUniqueCobolNames(List<CobolDataItem> cobolDataItems)
Create a list of COBOL names which are not unique.
|
| Constructor and Description |
|---|
XsdDataItem(CobolDataItem cobolDataItem,
Cob2XsdConfig config,
XsdDataItem parent,
int order,
List<String> nonUniqueCobolNames,
RecognizerErrorHandler errorHandler)
COBOL data item is analyzed at construction time and all XSD attributes
are derived from the COBOL attributes.
|
| Modifier and Type | Method and Description |
|---|---|
void |
CobolStructureEmitter.cobdata(List<CobolDataItem> dataEntries) |
void |
CobolStructureEmitter.data_entry(List<CobolDataItem> dataEntries) |
| Modifier and Type | Method and Description |
|---|---|
List<CobolDataItem> |
CobolDataItem.getChildren() |
| Modifier and Type | Method and Description |
|---|---|
void |
CobolDataItem.setChildren(List<CobolDataItem> children) |
Copyright © 2021 LegSem. All rights reserved.