| 1 |
|
|
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
package uk.co.badgersinfoil.asxsd; |
| 6 |
|
|
| 7 |
|
import org.eclipse.xsd.XSDConcreteComponent; |
| 8 |
|
import uk.co.badgersinfoil.metaas.dom.ASCompilationUnit; |
| 9 |
|
import uk.co.badgersinfoil.metaas.dom.ASExpression; |
| 10 |
|
import uk.co.badgersinfoil.metaas.dom.ASMethod; |
| 11 |
|
|
| 12 |
|
public interface MappingComponent { |
| 13 |
|
|
| 14 |
|
public boolean willAccept(XSDConcreteComponent component); |
| 15 |
|
public TypeDescriptor typeDescriptorFor(CodegenContext context, XSDConcreteComponent component); |
| 16 |
|
public TypeDescriptor createTypeDescriptor(CodegenContext context, XSDConcreteComponent component); |
| 17 |
|
public String createTypeNameFor(CodegenContext context, XSDConcreteComponent component); |
| 18 |
|
public void generateCode(CodegenContext context, XSDConcreteComponent component); |
| 19 |
|
public MappingFunction functionFor(CodegenContext context, XSDConcreteComponent component); |
| 20 |
|
public MappingFunction createFunctionRef(CodegenContext context, XSDConcreteComponent component); |
| 21 |
|
public ASMethod createFunction(CodegenContext context, XSDConcreteComponent component); |
| 22 |
|
public ASExpression createExpression(CodegenContext context, XSDConcreteComponent component); |
| 23 |
|
public ASCompilationUnit createType(CodegenContext context, XSDConcreteComponent component); |
| 24 |
|
public String variableNameFor(CodegenContext context, XSDConcreteComponent component); |
| 25 |
|
} |