org.apache.ws.jaxme.generator.sg
public interface ComplexTypeSG
Interface of a source generator for complex types.
Method Summary | |
---|---|
void | addAttributeSG(AttributeSG pAttribute) Adds the given {@link AttributeSG} to the list of attributes and invokes the method {@link org.apache.ws.jaxme.generator.sg.SGItem#init()} on it. |
AttributeSG[] | getAttributes() Returns the data types array of attributes. |
Context | getClassContext() Returns the datatypes runtime type, which is the binding interface. |
ComplexContentSG | getComplexContentSG() If the data type has complex content: Returns an instance of {@link ComplexContentSG}. |
Locator | getLocator() Returns the types {@link Locator}. |
SimpleContentSG | getSimpleContentSG() If the data type has simple content: Returns an instance of {@link SimpleContentSG}. |
TypeSG | getTypeSG() Returns the {@link TypeSG} that created this instance. |
JavaSource | getXMLHandler(JavaQName pQName) Generates the types XML handler as a standalone class. |
JavaSource | getXMLHandler(JavaSource pSource) Generates the types XML handler as an inner class of the given. |
JavaSource | getXMLImplementation() Generates the types implementation as a standalone class. |
JavaSource | getXMLImplementation(JavaSource pSource) Generates the types implementation as an inner class of the given. |
JavaSource | getXMLInterface() Generates the types interface as a standalone class. |
JavaSource | getXMLInterface(JavaSource pSource) Generates the types interface as an inner class of the given. |
JavaSource | getXMLSerializer() Generates the types XML serializer as a standalone class. |
JavaSource | getXMLSerializer(JavaSource pSource) Generates the types XML serializer as an inner class of the given. |
boolean | hasAttributes() Returns whether the data type has attributes. |
boolean | hasSimpleContent() Returns whether the data type has simple content. |
void | init() Initializes the instance. |
Object | newAttributeSG(XSAttribute pAttribute) Creates a new instance of {@link org.apache.ws.jaxme.generator.sg.AttributeSGChain} generating the given attribute. |
Object | newAttributeSG(XSWildcard pWildcard) Creates a new instance of {@link org.apache.ws.jaxme.generator.sg.AttributeSGChain} generating the given wildcard attributes. |
Object | newComplexContentTypeSG() If the complex type has complex content: Creates an instance of {@link org.apache.ws.jaxme.generator.sg.ComplexContentSGChain} generating the given complex type. Implementation note: The type {@link org.apache.ws.jaxme.generator.sg.ComplexContentSGChain} must not be exposed in the interface, because the interface class is used to generate this type. |
Object | newSimpleContentTypeSG() If the complex type has simple content: Creates an instance of {@link org.apache.ws.jaxme.generator.sg.SimpleContentSGChain} generating the type. Implementation note: The type {@link org.apache.ws.jaxme.generator.sg.SimpleContentSGChain} must not be exposed in the interface, because the interface class is used to generate this type. |
Adds the given {@link AttributeSG} to the list of attributes and invokes the method {@link org.apache.ws.jaxme.generator.sg.SGItem#init()} on it.
Returns the data types array of attributes.
Returns the datatypes runtime type, which is the binding interface.
If the data type has complex content: Returns an instance of {@link ComplexContentSG}. Uses {@link #newComplexContentTypeSG()} internally.
Returns the types {@link Locator}.
If the data type has simple content: Returns an instance of {@link SimpleContentSG}. Uses {@link #newSimpleContentTypeSG()} internally.
Returns the {@link TypeSG} that created this instance.
Generates the types XML handler as a standalone class. This is used for global types.
Generates the types XML handler as an inner class of the given. This is used for local types.
Generates the types implementation as a standalone class. This is used for global types.
Generates the types implementation as an inner class of the given.
Generates the types interface as a standalone class. This is used for global types.
Generates the types interface as an inner class of the given.
Generates the types XML serializer as a standalone class. This is used for global types.
Generates the types XML serializer as an inner class of the given. This is used for local types.
Returns whether the data type has attributes.
Returns whether the data type has simple content.
Initializes the instance.
Creates a new instance of {@link org.apache.ws.jaxme.generator.sg.AttributeSGChain} generating the given attribute.
Creates a new instance of {@link org.apache.ws.jaxme.generator.sg.AttributeSGChain} generating the given wildcard attributes.
If the complex type has complex content: Creates an instance of {@link org.apache.ws.jaxme.generator.sg.ComplexContentSGChain} generating the given complex type.
Implementation note: The type {@link org.apache.ws.jaxme.generator.sg.ComplexContentSGChain} must not be exposed in the interface, because the interface class is used to generate this type. In other words, this interface must be compilable without the {@link org.apache.ws.jaxme.generator.sg.ComplexContentSGChain} interface.
If the complex type has simple content: Creates an instance of {@link org.apache.ws.jaxme.generator.sg.SimpleContentSGChain} generating the type.
Implementation note: The type {@link org.apache.ws.jaxme.generator.sg.SimpleContentSGChain} must not be exposed in the interface, because the interface class is used to generate this type. In other words, this interface must be compilable without the {@link org.apache.ws.jaxme.generator.sg.SimpleContentSGChain} interface.