public class XsdAnnotationEmitter extends Object
The COBOL annotations are at the element level and belong to the LegStar namespace.
| Constructor and Description |
|---|
XsdAnnotationEmitter(org.apache.ws.commons.schema.XmlSchema xsd,
Cob2XsdConfig config)
All annotations are externalized in a properties file loaded from the
classpath.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addNamespaceContext()
Adds the COXB namespace and associated prefixes to the XML schema.
|
org.apache.ws.commons.schema.XmlSchemaAnnotation |
createLegStarAnnotation(XsdDataItem xsdDataItem)
Create an XML Schema annotation with markup corresponding to the original
COBOL data item attributes.
|
Cob2XsdConfig |
getConfig() |
String |
getCOXBElement() |
String |
getCOXBElements() |
String |
getCOXBNamespace() |
String |
getCOXBNamespacePrefix() |
org.apache.ws.commons.schema.XmlSchema |
getXsd() |
boolean |
initialized() |
public XsdAnnotationEmitter(org.apache.ws.commons.schema.XmlSchema xsd,
Cob2XsdConfig config)
xsd - the XML Schema to be populated.config - the translator options in effectpublic org.apache.ws.commons.schema.XmlSchemaAnnotation createLegStarAnnotation(XsdDataItem xsdDataItem)
xsdDataItem - COBOL data item decorated with XSD attributesprotected void addNamespaceContext()
public String getCOXBNamespace()
public String getCOXBNamespacePrefix()
public String getCOXBElements()
public String getCOXBElement()
public boolean initialized()
public org.apache.ws.commons.schema.XmlSchema getXsd()
public Cob2XsdConfig getConfig()
Copyright © 2021 LegSem. All rights reserved.