/src/main/resources/xml/sdoModel.xsd
2. Rename the following methods in the generated Property/PropertyImpl interface and implementation class:
getDefault() to getDefault_();
setDefault() to setDefault_();
getOpposite() to getOpposite_();
setOpposite() to setOpposite_();
3. Copy the following method from the old to new generated Type/TypeImpl interface and implemention class (resolve any missing imports):
String getInstanceClassName();
4. Copy the following method from the old to new generated Types/TypesImpl interface and implemention class (resolve any missing imports):
List getTypeList();
5. Delete all the createXXXFromString() and convertXXXToString() methods in the newly generated ModelFactoryImpl and
replace them with the ones from this file (resolve any missing imports).
6. Comment out the call to registerStaticTypes of ModelFactory.class in the init() method
7. Change org.apache.tuscany.sdo.model.DataObject.class to commonj.sdo.DataObject.class for the following method found in method initializeMetaData();
initializeType(dataObjectType, commonj.sdo.DataObject.class, "DataObject", true); // generated as org.apache.tuscany.sdo.model.DataObject.class
8. Add the following case to the generated create() method:
case DATA_OBJECT: return SDOFactory.eINSTANCE.createAnyTypeDataObject();
9. Make sure the top of each generated file contains the ASF License.
10. Move this JavaDoc comment into the newly generated ModelFactoryImpl class.
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container |
org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container.Dynamic |
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl |
org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container |
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl |
org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolder, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderBaseImpl, org.eclipse.emf.ecore.impl.BasicEObjectImpl.EPropertiesHolderImpl |
Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl |
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EObservableAdapterList |
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.EPackage |
org.eclipse.emf.ecore.EPackage.Descriptor, org.eclipse.emf.ecore.EPackage.Registry |
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject |
org.eclipse.emf.ecore.InternalEObject.EStore |
Fields inherited from class org.eclipse.emf.ecore.impl.EPackageImpl |
eClassifiers, ecoreFactory, ecorePackage, eFactoryInstance, eNameToEClassifierMap, ePackageExtendedMetaData, eSubpackages, IS_ABSTRACT, IS_CHANGEABLE, IS_COMPOSITE, IS_DERIVED, IS_GENERATED_INSTANCE_CLASS, IS_ID, IS_INTERFACE, IS_ORDERED, IS_RESOLVABLE, IS_RESOLVE_PROXIES, IS_SERIALIZABLE, IS_TRANSIENT, IS_UNIQUE, IS_UNSETTABLE, IS_VOLATILE, NS_PREFIX_EDEFAULT, NS_URI_EDEFAULT, nsPrefix, nsURI |
Fields inherited from class org.eclipse.emf.ecore.impl.ENamedElementImpl |
name, NAME_EDEFAULT |
Fields inherited from class org.eclipse.emf.ecore.impl.EModelElementImpl |
eAnnotations, eFlags, EFROZEN, ELAST_EMODEL_ELEMENT_FLAG |
Fields inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container |
eContainer |
Fields inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl |
EVIRTUAL_GET, EVIRTUAL_IS_SET, EVIRTUAL_NO_VALUE, EVIRTUAL_SET, EVIRTUAL_UNSET |
Fields inherited from interface org.eclipse.emf.ecore.EStructuralFeature.Internal.DynamicValueHolder |
NIL |
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject |
EOPPOSITE_FEATURE_BASE |
Methods inherited from class org.apache.tuscany.sdo.impl.FactoryBase |
addSuperType, addXSDMapping, addXSDMapping, addXSDMapping, createGlobalProperty, createGlobalProperty, createGlobalProperty, createProperty, createType, getLocalProperty, getProperty, getSequence, getStaticFactory, initializeProperty, initializeProperty, initializeType, initializeType, initializeType, initXSD, setInstanceProperty, setInstanceProperty |
Methods inherited from class org.eclipse.emf.ecore.impl.EPackageImpl |
addAnnotation, addAnnotation, addAnnotation, addAnnotation, addEEnumLiteral, addEException, addEException, addEOperation, addEOperation, addEOperation, addEParameter, addEParameter, addEParameter, addEParameter, addEParameter, addETypeParameter, addETypeParameter, basicGetESuperPackage, basicSetEFactoryInstance, createEAttribute, createEClass, createEDataType, createEEnum, createEGenericType, createEGenericType, createEGenericType, createEOperation, createEReference, createResource, eBasicRemoveFromContainerFeature, eGet, eInverseAdd, eInverseRemove, eInvoke, eIsSet, eObjectForURIFragmentSegment, eSet, eSetProxyURI, eStaticClass, eUnset, fixEClassifiers, fixEEnumLiterals, fixEOperations, fixEStructuralFeatures, fixInstanceClass, freeze, getEClassifier, getEClassifierGen, getEClassifiers, getEFactoryInstance, getESubpackages, getESuperPackage, getExtendedMetaData, getNsPrefix, getNsURI, initEAttribute, initEAttribute, initEAttribute, initEAttribute, initEAttribute, initEAttribute, initEAttribute, initEClass, initEClass, initEClass, initEDataType, initEDataType, initEDataType, initEEnum, initEOperation, initEOperation, initEOperation, initEOperation, initEReference, initEReference, initEReference, initEReference, initEReference, initEReference, initEReference, initializeFromLoadedEPackage, setEFactoryInstance, setExtendedMetaData, setGeneratedClassName, setInstanceTypeName, setNamespaceURI, setNsPrefix, setNsURI, toString |
Methods inherited from class org.eclipse.emf.ecore.impl.ENamedElementImpl |
eContents, eCrossReferences, getName, getNameGen, setName |
Methods inherited from class org.eclipse.emf.ecore.impl.EModelElementImpl |
eSetDirectResource, eURIFragmentSegment, freeze, getEAnnotation, getEAnnotations, isFrozen, setFrozen |
Methods inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container |
eBasicSetContainer, eInternalContainer |
Methods inherited from class org.eclipse.emf.ecore.impl.MinimalEObjectImpl |
dynamicGet, dynamicSet, dynamicUnset, eAdapters, eBasicAdapterArray, eBasicAdapters, eBasicHasAdapters, eBasicProperties, eBasicSetAdapterArray, eBasicSetContainer, eBasicSetContainerFeatureID, eBasicSetSettings, eBasicSettings, eClass, eContainerFeatureID, eDeliver, eDirectResource, eDynamicClass, eHasSettings, eIsProxy, eProperties, eProxyURI, eSetClass, eSetDeliver, eSettings |
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl |
eAddVirtualValue, eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainerAdapterArray, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eDerivedOperationID, eDerivedOperationID, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDynamicBasicRemoveFromContainer, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicInvoke, eDynamicInvoke, eDynamicIsSet, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eInternalResource, eInverseAdd, eInverseRemove, eInvocationDelegate, eInvoke, eIsSet, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetResource, eSetStore, eSetting, eSettingDelegate, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticFeatureCount, eStaticOperationCount, eStore, eUnset, eVirtualBitCount, eVirtualGet, eVirtualGet, eVirtualIndex, eVirtualIndexBits, eVirtualIsSet, eVirtualSet, eVirtualUnset, eVirtualValue, eVirtualValues |
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl |
eNotificationRequired, eNotify |
Methods inherited from interface org.eclipse.emf.ecore.ENamedElement |
getName, setName |
Methods inherited from interface org.eclipse.emf.ecore.EModelElement |
getEAnnotation, getEAnnotations |
Methods inherited from interface org.eclipse.emf.ecore.EObject |
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset |
Methods inherited from interface org.eclipse.emf.common.notify.Notifier |
eAdapters, eDeliver, eNotify, eSetDeliver |
Methods inherited from interface org.eclipse.emf.ecore.InternalEObject |
eNotificationRequired |
NAMESPACE_URI
public static final String NAMESPACE_URI
- The package namespace URI.
- See Also:
- Constant Field Values
NAMESPACE_PREFIX
public static final String NAMESPACE_PREFIX
- The package namespace name.
- See Also:
- Constant Field Values
PATTERN_VERSION
public static final String PATTERN_VERSION
- The version of the generator pattern used to generate this class.
- See Also:
- Constant Field Values
BASE_DATA_GRAPH_TYPE
public static final int BASE_DATA_GRAPH_TYPE
- See Also:
- Constant Field Values
DATA_GRAPH_TYPE
public static final int DATA_GRAPH_TYPE
- See Also:
- Constant Field Values
DATA_OBJECT
public static final int DATA_OBJECT
- See Also:
- Constant Field Values
MODELS_TYPE
public static final int MODELS_TYPE
- See Also:
- Constant Field Values
PROPERTY
public static final int PROPERTY
- See Also:
- Constant Field Values
TEXT_TYPE
public static final int TEXT_TYPE
- See Also:
- Constant Field Values
TYPE
public static final int TYPE
- See Also:
- Constant Field Values
TYPES
public static final int TYPES
- See Also:
- Constant Field Values
XSD_TYPE
public static final int XSD_TYPE
- See Also:
- Constant Field Values
BOOLEAN
public static final int BOOLEAN
- See Also:
- Constant Field Values
BOOLEAN_OBJECT
public static final int BOOLEAN_OBJECT
- See Also:
- Constant Field Values
BYTE
public static final int BYTE
- See Also:
- Constant Field Values
BYTE_OBJECT
public static final int BYTE_OBJECT
- See Also:
- Constant Field Values
BYTES
public static final int BYTES
- See Also:
- Constant Field Values
CHANGE_SUMMARY_TYPE
public static final int CHANGE_SUMMARY_TYPE
- See Also:
- Constant Field Values
CHARACTER
public static final int CHARACTER
- See Also:
- Constant Field Values
CHARACTER_OBJECT
public static final int CHARACTER_OBJECT
- See Also:
- Constant Field Values
DATE
public static final int DATE
- See Also:
- Constant Field Values
DATE_TIME
public static final int DATE_TIME
- See Also:
- Constant Field Values
DAY
public static final int DAY
- See Also:
- Constant Field Values
DECIMAL
public static final int DECIMAL
- See Also:
- Constant Field Values
DOUBLE
public static final int DOUBLE
- See Also:
- Constant Field Values
DOUBLE_OBJECT
public static final int DOUBLE_OBJECT
- See Also:
- Constant Field Values
DURATION
public static final int DURATION
- See Also:
- Constant Field Values
FLOAT
public static final int FLOAT
- See Also:
- Constant Field Values
FLOAT_OBJECT
public static final int FLOAT_OBJECT
- See Also:
- Constant Field Values
INT
public static final int INT
- See Also:
- Constant Field Values
INTEGER
public static final int INTEGER
- See Also:
- Constant Field Values
INT_OBJECT
public static final int INT_OBJECT
- See Also:
- Constant Field Values
LONG
public static final int LONG
- See Also:
- Constant Field Values
LONG_OBJECT
public static final int LONG_OBJECT
- See Also:
- Constant Field Values
MONTH
public static final int MONTH
- See Also:
- Constant Field Values
MONTH_DAY
public static final int MONTH_DAY
- See Also:
- Constant Field Values
OBJECT
public static final int OBJECT
- See Also:
- Constant Field Values
SHORT
public static final int SHORT
- See Also:
- Constant Field Values
SHORT_OBJECT
public static final int SHORT_OBJECT
- See Also:
- Constant Field Values
STRING
public static final int STRING
- See Also:
- Constant Field Values
STRINGS
public static final int STRINGS
- See Also:
- Constant Field Values
TIME
public static final int TIME
- See Also:
- Constant Field Values
URI
public static final int URI
- See Also:
- Constant Field Values
YEAR
public static final int YEAR
- See Also:
- Constant Field Values
YEAR_MONTH
public static final int YEAR_MONTH
- See Also:
- Constant Field Values
YEAR_MONTH_DAY
public static final int YEAR_MONTH_DAY
- See Also:
- Constant Field Values
baseDataGraphTypeType
protected Type baseDataGraphTypeType
dataGraphTypeType
protected Type dataGraphTypeType
dataObjectType
protected Type dataObjectType
modelsTypeType
protected Type modelsTypeType
propertyType
protected Type propertyType
textTypeType
protected Type textTypeType
typeType
protected Type typeType
typesType
protected Type typesType
xsdTypeType
protected Type xsdTypeType
boolean_Type
protected Type boolean_Type
booleanObjectType
protected Type booleanObjectType
byte_Type
protected Type byte_Type
byteObjectType
protected Type byteObjectType
bytesType
protected Type bytesType
changeSummaryTypeType
protected Type changeSummaryTypeType
characterType
protected Type characterType
characterObjectType
protected Type characterObjectType
dateType
protected Type dateType
dateTimeType
protected Type dateTimeType
dayType
protected Type dayType
decimalType
protected Type decimalType
double_Type
protected Type double_Type
doubleObjectType
protected Type doubleObjectType
durationType
protected Type durationType
float_Type
protected Type float_Type
floatObjectType
protected Type floatObjectType
int_Type
protected Type int_Type
integerType
protected Type integerType
intObjectType
protected Type intObjectType
long_Type
protected Type long_Type
longObjectType
protected Type longObjectType
monthType
protected Type monthType
monthDayType
protected Type monthDayType
objectType
protected Type objectType
short_Type
protected Type short_Type
shortObjectType
protected Type shortObjectType
stringType
protected Type stringType
stringsType
protected Type stringsType
timeType
protected Type timeType
uriType
protected Type uriType
yearType
protected Type yearType
yearMonthType
protected Type yearMonthType
yearMonthDayType
protected Type yearMonthDayType
ModelFactoryImpl
public ModelFactoryImpl()
- Creates an instance of the factory.
register
public void register(HelperContext scope)
- Registers the Factory instance so that it is available within the supplied scope.
- Specified by:
register
in interface ModelFactory
- Parameters:
scope
- an instance of HelperContext used to manage the scoping of types.
create
public DataObject create(int typeNumber)
-
- Overrides:
create
in class FactoryBase
createFromString
public Object createFromString(int typeNumber,
String initialValue)
-
- Overrides:
createFromString
in class FactoryBase
convertToString
public String convertToString(int typeNumber,
Object instanceValue)
-
- Overrides:
convertToString
in class FactoryBase
createDataGraphType
public DataGraphType createDataGraphType()
-
- Specified by:
createDataGraphType
in interface ModelFactory
- Returns:
- a new object of class 'Data Graph Type'.
createModelsType
public ModelsType createModelsType()
-
- Specified by:
createModelsType
in interface ModelFactory
- Returns:
- a new object of class 'Models Type'.
createProperty
public Property createProperty()
-
- Specified by:
createProperty
in interface ModelFactory
- Returns:
- a new object of class 'Property'.
createType
public Type createType()
-
- Specified by:
createType
in interface ModelFactory
- Returns:
- a new object of class 'Type'.
createTypes
public Types createTypes()
-
- Specified by:
createTypes
in interface ModelFactory
- Returns:
- a new object of class 'Types'.
createXSDType
public XSDType createXSDType()
-
- Specified by:
createXSDType
in interface ModelFactory
- Returns:
- a new object of class 'XSD Type'.
getBaseDataGraphType
public Type getBaseDataGraphType()
getDataGraphType
public Type getDataGraphType()
getDataObject
public Type getDataObject()
getModelsType
public Type getModelsType()
getProperty
public Type getProperty()
getTextType
public Type getTextType()
getType
public Type getType()
getTypes
public Type getTypes()
getXSDType
public Type getXSDType()
getBoolean
public Type getBoolean()
getBooleanObject
public Type getBooleanObject()
getByte
public Type getByte()
getByteObject
public Type getByteObject()
getBytes
public Type getBytes()
getChangeSummaryType
public Type getChangeSummaryType()
getCharacter
public Type getCharacter()
getCharacterObject
public Type getCharacterObject()
getDate
public Type getDate()
getDateTime
public Type getDateTime()
getDay
public Type getDay()
getDecimal
public Type getDecimal()
getDouble
public Type getDouble()
getDoubleObject
public Type getDoubleObject()
getDuration
public Type getDuration()
getFloat
public Type getFloat()
getFloatObject
public Type getFloatObject()
getInt
public Type getInt()
getInteger
public Type getInteger()
getIntObject
public Type getIntObject()
getLong
public Type getLong()
getLongObject
public Type getLongObject()
getMonth
public Type getMonth()
getMonthDay
public Type getMonthDay()
getObject
public Type getObject()
getShort
public Type getShort()
getShortObject
public Type getShortObject()
getString
public Type getString()
getStrings
public Type getStrings()
getTime
public Type getTime()
getURI
public Type getURI()
getYear
public Type getYear()
getYearMonth
public Type getYearMonth()
getYearMonthDay
public Type getYearMonthDay()
init
public static ModelFactoryImpl init()
createMetaData
public void createMetaData()
initializeMetaData
public void initializeMetaData()
createXSDMetaData
protected void createXSDMetaData()
createBooleanFromString
public Boolean createBooleanFromString(String initialValue)
-
convertBooleanToString
public String convertBooleanToString(Object instanceValue)
-
createBooleanObjectFromString
public Boolean createBooleanObjectFromString(String initialValue)
-
convertBooleanObjectToString
public String convertBooleanObjectToString(Object instanceValue)
-
createByteFromString
public Byte createByteFromString(String initialValue)
-
convertByteToString
public String convertByteToString(Object instanceValue)
-
createByteObjectFromString
public Byte createByteObjectFromString(String initialValue)
-
convertByteObjectToString
public String convertByteObjectToString(Object instanceValue)
-
createBytesFromString
public byte[] createBytesFromString(String initialValue)
-
convertBytesToString
public String convertBytesToString(Object instanceValue)
-
createChangeSummaryTypeFromString
public ChangeSummary createChangeSummaryTypeFromString(String initialValue)
-
convertChangeSummaryTypeToString
public String convertChangeSummaryTypeToString(Object instanceValue)
-
createCharacterFromString
public Character createCharacterFromString(String initialValue)
-
convertCharacterToString
public String convertCharacterToString(Object instanceValue)
-
createCharacterObjectFromString
public Character createCharacterObjectFromString(String initialValue)
-
convertCharacterObjectToString
public String convertCharacterObjectToString(Object instanceValue)
-
createDateFromString
public Date createDateFromString(String initialValue)
-
convertDateToString
public String convertDateToString(Object instanceValue)
-
createDateTimeFromString
public String createDateTimeFromString(String initialValue)
-
convertDateTimeToString
public String convertDateTimeToString(Object instanceValue)
-
createDayFromString
public String createDayFromString(String initialValue)
-
convertDayToString
public String convertDayToString(Object instanceValue)
-
createDecimalFromString
public BigDecimal createDecimalFromString(String initialValue)
-
convertDecimalToString
public String convertDecimalToString(Object instanceValue)
-
createDoubleFromString
public Double createDoubleFromString(String initialValue)
-
convertDoubleToString
public String convertDoubleToString(Object instanceValue)
-
createDoubleObjectFromString
public Double createDoubleObjectFromString(String initialValue)
-
convertDoubleObjectToString
public String convertDoubleObjectToString(Object instanceValue)
-
createDurationFromString
public String createDurationFromString(String initialValue)
-
convertDurationToString
public String convertDurationToString(Object instanceValue)
-
createFloatFromString
public Float createFloatFromString(String initialValue)
-
convertFloatToString
public String convertFloatToString(Object instanceValue)
-
createFloatObjectFromString
public Float createFloatObjectFromString(String initialValue)
-
convertFloatObjectToString
public String convertFloatObjectToString(Object instanceValue)
-
createIntFromString
public Integer createIntFromString(String initialValue)
-
convertIntToString
public String convertIntToString(Object instanceValue)
-
createIntegerFromString
public BigInteger createIntegerFromString(String initialValue)
-
convertIntegerToString
public String convertIntegerToString(Object instanceValue)
-
createIntObjectFromString
public Integer createIntObjectFromString(String initialValue)
-
convertIntObjectToString
public String convertIntObjectToString(Object instanceValue)
-
createLongFromString
public Long createLongFromString(String initialValue)
-
convertLongToString
public String convertLongToString(Object instanceValue)
-
createLongObjectFromString
public Long createLongObjectFromString(String initialValue)
-
convertLongObjectToString
public String convertLongObjectToString(Object instanceValue)
-
createMonthFromString
public String createMonthFromString(String initialValue)
-
convertMonthToString
public String convertMonthToString(Object instanceValue)
-
createMonthDayFromString
public String createMonthDayFromString(String initialValue)
-
convertMonthDayToString
public String convertMonthDayToString(Object instanceValue)
-
createObjectFromString
public Object createObjectFromString(String initialValue)
-
convertObjectToString
public String convertObjectToString(Object instanceValue)
-
createShortFromString
public Short createShortFromString(String initialValue)
-
convertShortToString
public String convertShortToString(Object instanceValue)
-
createShortObjectFromString
public Short createShortObjectFromString(String initialValue)
-
convertShortObjectToString
public String convertShortObjectToString(Object instanceValue)
-
createStringFromString
public String createStringFromString(String initialValue)
-
convertStringToString
public String convertStringToString(Object instanceValue)
-
createStringsFromString
public List createStringsFromString(String initialValue)
-
convertStringsToString
public String convertStringsToString(Object instanceValue)
-
createTimeFromString
public String createTimeFromString(String initialValue)
-
convertTimeToString
public String convertTimeToString(Object instanceValue)
-
createURIFromString
public String createURIFromString(String initialValue)
-
convertURIToString
public String convertURIToString(Object instanceValue)
-
createYearFromString
public String createYearFromString(String initialValue)
-
convertYearToString
public String convertYearToString(Object instanceValue)
-
createYearMonthFromString
public String createYearMonthFromString(String initialValue)
-
convertYearMonthToString
public String convertYearMonthToString(Object instanceValue)
-
createYearMonthDayFromString
public String createYearMonthDayFromString(String initialValue)
-
convertYearMonthDayToString
public String convertYearMonthDayToString(Object instanceValue)
-
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.