|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.legstar.xsd.AbstractXsdAnnotator
public abstract class AbstractXsdAnnotator
Common methods and properties for all XML schema annotators.
An annotator must be setup before it is used (using the setUp method) this will give it a chance to load configuration data.
Constructor Summary | |
---|---|
AbstractXsdAnnotator()
No arg constructor. |
|
AbstractXsdAnnotator(Map<String,String> complexTypeToJavaClassMap)
Construct using a complex type to java class map. |
Method Summary | |
---|---|
void |
annotate(org.apache.ws.commons.schema.XmlSchema schema,
org.apache.ws.commons.schema.XmlSchemaAnnotated schemaObject,
Element elc)
Add annotations to an XML schema object (Element or Type). |
String |
getCobolName(String xsdName)
Method to infer a Cobol name from an XML schema type name. |
com.legstar.cobol.gen.CobolNameResolver |
getCobolNameResolver()
|
Map<String,String> |
getComplexTypeToJavaClassMap()
|
XsdCobolTypeMap |
getXsdCobolTypeMap()
|
void |
setComplexTypeAttributes(org.apache.ws.commons.schema.XmlSchema schema,
org.apache.ws.commons.schema.XmlSchemaComplexType xsdComplexType,
Element elc,
int level)
Annotated complex types as group items. |
void |
setUp()
Initialize whatever needs to be initialized. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.legstar.xsd.XsdObjectProcessor |
---|
processComplexType, processElement |
Constructor Detail |
---|
public AbstractXsdAnnotator()
public AbstractXsdAnnotator(Map<String,String> complexTypeToJavaClassMap)
complexTypeToJavaClassMap
- complex type to java class mapMethod Detail |
---|
public void setUp() throws IOException
XsdObjectProcessor
setUp
in interface XsdObjectProcessor
IOException
- if initialization failspublic void annotate(org.apache.ws.commons.schema.XmlSchema schema, org.apache.ws.commons.schema.XmlSchemaAnnotated schemaObject, Element elc)
schema
- the XML schemaschemaObject
- the XML schema object to annotateelc
- a DOM element holding the annotationspublic void setComplexTypeAttributes(org.apache.ws.commons.schema.XmlSchema schema, org.apache.ws.commons.schema.XmlSchemaComplexType xsdComplexType, Element elc, int level) throws XsdMappingException
schema
- the XML Schema being annotatedxsdComplexType
- the XML schema typeelc
- the DOM Element representing the Cobol annotationlevel
- the current level in the type hierarchy
XsdMappingException
- if annotation failspublic String getCobolName(String xsdName)
xsdName
- the XSD type name
public XsdCobolTypeMap getXsdCobolTypeMap()
public com.legstar.cobol.gen.CobolNameResolver getCobolNameResolver()
public Map<String,String> getComplexTypeToJavaClassMap()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |