org.apache.tuscany.sdo.model
Interface ModelFactory

All Known Implementing Classes:
ModelFactoryImpl

public interface ModelFactory

The Factory for the model. It provides a create method for each non-abstract class of the model.


Field Summary
static ModelFactory INSTANCE
          The singleton instance of the factory.
 
Method Summary
 DataGraphType createDataGraphType()
          Returns a new object of class 'Data Graph Type'.
 ModelsType createModelsType()
          Returns a new object of class 'Models Type'.
 Property createProperty()
          Returns a new object of class 'Property'.
 Type createType()
          Returns a new object of class 'Type'.
 Types createTypes()
          Returns a new object of class 'Types'.
 XSDType createXSDType()
          Returns a new object of class 'XSD Type'.
 void register(HelperContext scope)
          Registers the types supported by this Factory within the supplied scope.argument
 

Field Detail

INSTANCE

static final ModelFactory INSTANCE
The singleton instance of the factory.

Method Detail

createDataGraphType

DataGraphType createDataGraphType()
Returns a new object of class 'Data Graph Type'.

Returns:
a new object of class 'Data Graph Type'.

createModelsType

ModelsType createModelsType()
Returns a new object of class 'Models Type'.

Returns:
a new object of class 'Models Type'.

createProperty

Property createProperty()
Returns a new object of class 'Property'.

Returns:
a new object of class 'Property'.

createType

Type createType()
Returns a new object of class 'Type'.

Returns:
a new object of class 'Type'.

createTypes

Types createTypes()
Returns a new object of class 'Types'.

Returns:
a new object of class 'Types'.

createXSDType

XSDType createXSDType()
Returns a new object of class 'XSD Type'.

Returns:
a new object of class 'XSD Type'.

register

void register(HelperContext scope)
Registers the types supported by this Factory within the supplied scope.argument

Parameters:
scope - an instance of HelperContext used to manage the scoping of types.


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.