org.apache.tuscany.sdo.model.impl
Class ModelFactoryImpl

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.BasicNotifierImpl
      extended by org.eclipse.emf.ecore.impl.BasicEObjectImpl
          extended by org.eclipse.emf.ecore.impl.EObjectImpl
              extended by org.eclipse.emf.ecore.impl.FlatEObjectImpl
                  extended by org.eclipse.emf.ecore.impl.EModelElementImpl
                      extended by org.eclipse.emf.ecore.impl.ENamedElementImpl
                          extended by org.eclipse.emf.ecore.impl.EPackageImpl
                              extended by org.apache.tuscany.sdo.impl.FactoryBase
                                  extended by org.apache.tuscany.sdo.model.impl.ModelFactoryImpl
All Implemented Interfaces:
ModelFactory, org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.EModelElement, org.eclipse.emf.ecore.ENamedElement, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EPackage, org.eclipse.emf.ecore.InternalEObject, org.eclipse.emf.ecore.util.BasicExtendedMetaData.EPackageExtendedMetaData.Holder

public class ModelFactoryImpl
extends FactoryBase
implements ModelFactory

An implementation of the commonj.sdo model factory. This model is generated from sdoModel.xsd, in the sdo-api project. Until the SDO code generator supports name conflicts and regen/merge, follow the following steps to regenerate this model: 1. Regenerate the model into a temporary directory: XSD2JavaGenerator -generateBuiltIn commonj.sdo -targetDirectory -javaPackage org.apache.tuscany.sdo.model /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. Move this JavaDoc comment into the newly generated ModelFactoryImpl class.


Nested Class Summary
 
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
 
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
 
Field Summary
static int BASE_DATA_GRAPH_TYPE
           
static int BASE64_BYTES
           
protected  commonj.sdo.Type base64BytesType
           
protected  commonj.sdo.Type baseDataGraphTypeType
           
static int BOOLEAN
           
static int BOOLEAN_OBJECT
           
protected  commonj.sdo.Type boolean_Type
           
protected  commonj.sdo.Type booleanObjectType
           
static int BYTE
           
static int BYTE_OBJECT
           
protected  commonj.sdo.Type byte_Type
           
protected  commonj.sdo.Type byteObjectType
           
static int BYTES
           
protected  commonj.sdo.Type bytesType
           
static int CHANGE_SUMMARY_TYPE
           
protected  commonj.sdo.Type changeSummaryTypeType
           
static int CHARACTER
           
static int CHARACTER_OBJECT
           
protected  commonj.sdo.Type characterObjectType
           
protected  commonj.sdo.Type characterType
           
static int DATA_GRAPH_TYPE
           
static int DATA_OBJECT
           
protected  commonj.sdo.Type dataGraphTypeType
           
protected  commonj.sdo.Type dataObjectType
           
static int DATE
           
static int DATE_TIME
           
protected  commonj.sdo.Type dateTimeType
           
protected  commonj.sdo.Type dateType
           
static int DAY
           
protected  commonj.sdo.Type dayType
           
static int DECIMAL
           
protected  commonj.sdo.Type decimalType
           
static int DOUBLE
           
static int DOUBLE_OBJECT
           
protected  commonj.sdo.Type double_Type
           
protected  commonj.sdo.Type doubleObjectType
           
static int DURATION
           
protected  commonj.sdo.Type durationType
           
static int FLOAT
           
static int FLOAT_OBJECT
           
protected  commonj.sdo.Type float_Type
           
protected  commonj.sdo.Type floatObjectType
           
static int INT
           
static int INT_OBJECT
           
protected  commonj.sdo.Type int_Type
           
static int INTEGER
           
protected  commonj.sdo.Type integerType
           
protected  commonj.sdo.Type intObjectType
           
static int LONG
           
static int LONG_OBJECT
           
protected  commonj.sdo.Type long_Type
           
protected  commonj.sdo.Type longObjectType
           
static int MODELS_TYPE
           
protected  commonj.sdo.Type modelsTypeType
           
static int MONTH
           
static int MONTH_DAY
           
protected  commonj.sdo.Type monthDayType
           
protected  commonj.sdo.Type monthType
           
static java.lang.String NAMESPACE_PREFIX
          The package namespace name.
static java.lang.String NAMESPACE_URI
          The package namespace URI.
static int OBJECT
           
protected  commonj.sdo.Type objectType
           
static java.lang.String PATTERN_VERSION
          The version of the generator pattern used to generate this class.
static int PROPERTY
           
protected  commonj.sdo.Type propertyType
           
static int SHORT
           
static int SHORT_OBJECT
           
protected  commonj.sdo.Type short_Type
           
protected  commonj.sdo.Type shortObjectType
           
static int STRING
           
static int STRINGS
           
protected  commonj.sdo.Type stringsType
           
protected  commonj.sdo.Type stringType
           
static int TEXT_TYPE
           
protected  commonj.sdo.Type textTypeType
           
static int TIME
           
protected  commonj.sdo.Type timeType
           
static int TYPE
           
static int TYPES
           
protected  commonj.sdo.Type typesType
           
protected  commonj.sdo.Type typeType
           
static int URI
           
protected  commonj.sdo.Type uriType
           
static int XSD_TYPE
           
protected  commonj.sdo.Type xsdTypeType
           
static int YEAR
           
static int YEAR_MONTH
           
static int YEAR_MONTH_DAY
           
protected  commonj.sdo.Type yearMonthDayType
           
protected  commonj.sdo.Type yearMonthType
           
protected  commonj.sdo.Type yearType
           
 
Fields inherited from class org.apache.tuscany.sdo.impl.FactoryBase
IS_ATTRIBUTE
 
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, EFROZEN, ELAST_EMODEL_ELEMENT_FLAG
 
Fields inherited from class org.eclipse.emf.ecore.impl.FlatEObjectImpl
eContents, eCrossReferences, eProxyURI
 
Fields inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eContainer, eContainerFeatureID, EDELIVER, EDYNAMIC_CLASS, eFlags, ELAST_EOBJECT_FLAG, ELAST_NOTIFIER_FLAG, eProperties, EPROXY
 
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.apache.tuscany.sdo.model.ModelFactory
INSTANCE
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Constructor Summary
ModelFactoryImpl()
          Creates an instance of the factory.
 
Method Summary
 java.lang.String convertBase64BytesToString(java.lang.Object instanceValue)
           
 java.lang.String convertBooleanObjectToString(java.lang.Object instanceValue)
           
 java.lang.String convertBooleanToString(java.lang.Object instanceValue)
           
 java.lang.String convertByteObjectToString(java.lang.Object instanceValue)
           
 java.lang.String convertBytesToString(java.lang.Object instanceValue)
           
 java.lang.String convertByteToString(java.lang.Object instanceValue)
           
 java.lang.String convertChangeSummaryTypeToString(java.lang.Object instanceValue)
           
 java.lang.String convertCharacterObjectToString(java.lang.Object instanceValue)
           
 java.lang.String convertCharacterToString(java.lang.Object instanceValue)
           
 java.lang.String convertDateTimeToString(java.lang.Object instanceValue)
           
 java.lang.String convertDateToString(java.lang.Object instanceValue)
           
 java.lang.String convertDayToString(java.lang.Object instanceValue)
           
 java.lang.String convertDecimalToString(java.lang.Object instanceValue)
           
 java.lang.String convertDoubleObjectToString(java.lang.Object instanceValue)
           
 java.lang.String convertDoubleToString(java.lang.Object instanceValue)
           
 java.lang.String convertDurationToString(java.lang.Object instanceValue)
           
 java.lang.String convertFloatObjectToString(java.lang.Object instanceValue)
           
 java.lang.String convertFloatToString(java.lang.Object instanceValue)
           
 java.lang.String convertIntegerToString(java.lang.Object instanceValue)
           
 java.lang.String convertIntObjectToString(java.lang.Object instanceValue)
           
 java.lang.String convertIntToString(java.lang.Object instanceValue)
           
 java.lang.String convertLongObjectToString(java.lang.Object instanceValue)
           
 java.lang.String convertLongToString(java.lang.Object instanceValue)
           
 java.lang.String convertMonthDayToString(java.lang.Object instanceValue)
           
 java.lang.String convertMonthToString(java.lang.Object instanceValue)
           
 java.lang.String convertObjectToString(java.lang.Object instanceValue)
           
 java.lang.String convertShortObjectToString(java.lang.Object instanceValue)
           
 java.lang.String convertShortToString(java.lang.Object instanceValue)
           
 java.lang.String convertStringsToString(java.lang.Object instanceValue)
           
 java.lang.String convertStringToString(java.lang.Object instanceValue)
           
 java.lang.String convertTimeToString(java.lang.Object instanceValue)
           
 java.lang.String convertToString(int typeNumber, java.lang.Object instanceValue)
           
 java.lang.String convertURIToString(java.lang.Object instanceValue)
           
 java.lang.String convertYearMonthDayToString(java.lang.Object instanceValue)
           
 java.lang.String convertYearMonthToString(java.lang.Object instanceValue)
           
 java.lang.String convertYearToString(java.lang.Object instanceValue)
           
 commonj.sdo.DataObject create(int typeNumber)
           
 byte[] createBase64BytesFromString(java.lang.String initialValue)
           
 java.lang.Boolean createBooleanFromString(java.lang.String initialValue)
           
 java.lang.Boolean createBooleanObjectFromString(java.lang.String initialValue)
           
 java.lang.Byte createByteFromString(java.lang.String initialValue)
           
 java.lang.Byte createByteObjectFromString(java.lang.String initialValue)
           
 byte[] createBytesFromString(java.lang.String initialValue)
           
 commonj.sdo.ChangeSummary createChangeSummaryTypeFromString(java.lang.String initialValue)
           
 java.lang.Character createCharacterFromString(java.lang.String initialValue)
           
 java.lang.Character createCharacterObjectFromString(java.lang.String initialValue)
           
 DataGraphType createDataGraphType()
           
 java.util.Date createDateFromString(java.lang.String initialValue)
           
 java.lang.String createDateTimeFromString(java.lang.String initialValue)
           
 java.lang.String createDayFromString(java.lang.String initialValue)
           
 java.math.BigDecimal createDecimalFromString(java.lang.String initialValue)
           
 java.lang.Double createDoubleFromString(java.lang.String initialValue)
           
 java.lang.Double createDoubleObjectFromString(java.lang.String initialValue)
           
 java.lang.String createDurationFromString(java.lang.String initialValue)
           
 java.lang.Float createFloatFromString(java.lang.String initialValue)
           
 java.lang.Float createFloatObjectFromString(java.lang.String initialValue)
           
 java.lang.Object createFromString(int typeNumber, java.lang.String initialValue)
           
 java.math.BigInteger createIntegerFromString(java.lang.String initialValue)
           
 java.lang.Integer createIntFromString(java.lang.String initialValue)
           
 java.lang.Integer createIntObjectFromString(java.lang.String initialValue)
           
 java.lang.Long createLongFromString(java.lang.String initialValue)
           
 java.lang.Long createLongObjectFromString(java.lang.String initialValue)
           
 void createMetaData()
           
 ModelsType createModelsType()
           
 java.lang.String createMonthDayFromString(java.lang.String initialValue)
           
 java.lang.String createMonthFromString(java.lang.String initialValue)
           
 java.lang.Object createObjectFromString(java.lang.String initialValue)
           
 Property createProperty()
           
 java.lang.Short createShortFromString(java.lang.String initialValue)
           
 java.lang.Short createShortObjectFromString(java.lang.String initialValue)
           
 java.lang.String createStringFromString(java.lang.String initialValue)
           
 java.util.List createStringsFromString(java.lang.String initialValue)
           
 java.lang.String createTimeFromString(java.lang.String initialValue)
           
 Type createType()
           
 Types createTypes()
           
 java.lang.String createURIFromString(java.lang.String initialValue)
           
protected  void createXSDMetaData()
           
 XSDType createXSDType()
           
 java.lang.String createYearFromString(java.lang.String initialValue)
           
 java.lang.String createYearMonthDayFromString(java.lang.String initialValue)
           
 java.lang.String createYearMonthFromString(java.lang.String initialValue)
           
 commonj.sdo.Type getBase64Bytes()
           
 commonj.sdo.Type getBaseDataGraphType()
           
 commonj.sdo.Type getBoolean()
           
 commonj.sdo.Type getBooleanObject()
           
 commonj.sdo.Type getByte()
           
 commonj.sdo.Type getByteObject()
           
 commonj.sdo.Type getBytes()
           
 commonj.sdo.Type getChangeSummaryType()
           
 commonj.sdo.Type getCharacter()
           
 commonj.sdo.Type getCharacterObject()
           
 commonj.sdo.Type getDataGraphType()
           
 commonj.sdo.Type getDataObject()
           
 commonj.sdo.Type getDate()
           
 commonj.sdo.Type getDateTime()
           
 commonj.sdo.Type getDay()
           
 commonj.sdo.Type getDecimal()
           
 commonj.sdo.Type getDouble()
           
 commonj.sdo.Type getDoubleObject()
           
 commonj.sdo.Type getDuration()
           
 commonj.sdo.Type getFloat()
           
 commonj.sdo.Type getFloatObject()
           
 commonj.sdo.Type getInt()
           
 commonj.sdo.Type getInteger()
           
 commonj.sdo.Type getIntObject()
           
 commonj.sdo.Type getLong()
           
 commonj.sdo.Type getLongObject()
           
 commonj.sdo.Type getModelsType()
           
 commonj.sdo.Type getMonth()
           
 commonj.sdo.Type getMonthDay()
           
 commonj.sdo.Type getObject()
           
 commonj.sdo.Type getProperty()
           
 commonj.sdo.Type getShort()
           
 commonj.sdo.Type getShortObject()
           
 commonj.sdo.Type getString()
           
 commonj.sdo.Type getStrings()
           
 commonj.sdo.Type getTextType()
           
 commonj.sdo.Type getTime()
           
 commonj.sdo.Type getType()
           
 commonj.sdo.Type getTypes()
           
 commonj.sdo.Type getURI()
           
 commonj.sdo.Type getXSDType()
           
 commonj.sdo.Type getYear()
           
 commonj.sdo.Type getYearMonth()
           
 commonj.sdo.Type getYearMonthDay()
           
static ModelFactoryImpl init()
           
 void initializeMetaData()
           
 void register(commonj.sdo.helper.HelperContext scope)
          Registers the Factory instance so that it is available within the supplied scope.
 
Methods inherited from class org.apache.tuscany.sdo.impl.FactoryBase
addSuperType, addXSDMapping, addXSDMapping, addXSDMapping, createGlobalProperty, createGlobalProperty, createGlobalProperty, createProperty, createType, getProperty, getSequence, getStaticFactory, initializeProperty, initializeProperty, initializeType, initializeType, initializeType, initXSD, setInstanceProperty, setInstanceProperty
 
Methods inherited from class org.eclipse.emf.ecore.impl.EPackageImpl
addAnnotation, addAnnotation, addEEnumLiteral, addEException, addEOperation, addEOperation, addEParameter, addEParameter, basicGetESuperPackage, basicSetEFactoryInstance, createEAttribute, createEClass, createEDataType, createEEnum, createEReference, createResource, eBasicRemoveFromContainerFeature, eGet, eInverseAdd, eInverseRemove, eIsSet, eObjectForURIFragmentSegment, eSet, eSetProxyURI, eStaticClass, eUnset, fixEClassifiers, fixEEnumLiterals, fixEStructuralFeatures, fixInstanceClass, freeze, getEClassifier, getEClassifierGen, getEClassifiers, getEFactoryInstance, getESubpackages, getESuperPackage, getExtendedMetaData, getNsPrefix, getNsURI, initEAttribute, initEAttribute, initEAttribute, initEAttribute, initEAttribute, initEAttribute, initEClass, initEClass, initEDataType, initEDataType, initEEnum, initEReference, initEReference, initEReference, initEReference, initEReference, initEReference, initializeFromLoadedEPackage, setEFactoryInstance, setExtendedMetaData, setGeneratedClassName, setNamespaceURI, setNsPrefix, setNsURI, toString
 
Methods inherited from class org.eclipse.emf.ecore.impl.ENamedElementImpl
getName, getNameGen, setName
 
Methods inherited from class org.eclipse.emf.ecore.impl.EModelElementImpl
eURIFragmentSegment, freeze, getEAnnotation, getEAnnotations, isFrozen, setFrozen
 
Methods inherited from class org.eclipse.emf.ecore.impl.FlatEObjectImpl
eContents, eCrossReferences, eIsProxy, eProperties, eProxyURI
 
Methods inherited from class org.eclipse.emf.ecore.impl.EObjectImpl
eAdapters, eBasicAdapters, eBasicProperties, eBasicSetContainer, eClass, eContainerFeatureID, eDeliver, eInternalContainer, eSetClass, eSetDeliver
 
Methods inherited from class org.eclipse.emf.ecore.impl.BasicEObjectImpl
eAddVirtualValue, eAllContents, eBaseStructuralFeatureID, eBasicRemoveFromContainer, eBasicSetContainer, eComputeVirtualValuesCapacity, eContainer, eContainingFeature, eContainmentFeature, eContainmentFeature, eContains, eDerivedStructuralFeatureID, eDerivedStructuralFeatureID, eDirectResource, eDynamicBasicRemoveFromContainer, eDynamicClass, eDynamicFeature, eDynamicFeatureID, eDynamicGet, eDynamicGet, eDynamicGet, eDynamicInverseAdd, eDynamicInverseAdd, eDynamicInverseRemove, eDynamicInverseRemove, eDynamicIsSet, eDynamicIsSet, eDynamicIsSet, eDynamicSet, eDynamicSet, eDynamicSet, eDynamicUnset, eDynamicUnset, eDynamicUnset, eGet, eGet, eGet, eHasSettings, eInternalResource, eInverseAdd, eInverseRemove, eIsSet, eOpenGet, eOpenIsSet, eOpenSet, eOpenUnset, eRemoveVirtualValue, eResolveProxy, eResource, eSet, eSetDirectResource, eSetResource, eSetStore, eSetting, eSettingDelegate, eSettings, eSetVirtualIndexBits, eSetVirtualValue, eSetVirtualValues, eStaticFeatureCount, 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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
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, 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
 

Field Detail

NAMESPACE_URI

public static final java.lang.String NAMESPACE_URI
The package namespace URI.

See Also:
Constant Field Values

NAMESPACE_PREFIX

public static final java.lang.String NAMESPACE_PREFIX
The package namespace name.

See Also:
Constant Field Values

PATTERN_VERSION

public static final java.lang.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

BASE64_BYTES

public static final int BASE64_BYTES
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 commonj.sdo.Type baseDataGraphTypeType

dataGraphTypeType

protected commonj.sdo.Type dataGraphTypeType

dataObjectType

protected commonj.sdo.Type dataObjectType

modelsTypeType

protected commonj.sdo.Type modelsTypeType

propertyType

protected commonj.sdo.Type propertyType

textTypeType

protected commonj.sdo.Type textTypeType

typeType

protected commonj.sdo.Type typeType

typesType

protected commonj.sdo.Type typesType

xsdTypeType

protected commonj.sdo.Type xsdTypeType

base64BytesType

protected commonj.sdo.Type base64BytesType

boolean_Type

protected commonj.sdo.Type boolean_Type

booleanObjectType

protected commonj.sdo.Type booleanObjectType

byte_Type

protected commonj.sdo.Type byte_Type

byteObjectType

protected commonj.sdo.Type byteObjectType

bytesType

protected commonj.sdo.Type bytesType

changeSummaryTypeType

protected commonj.sdo.Type changeSummaryTypeType

characterType

protected commonj.sdo.Type characterType

characterObjectType

protected commonj.sdo.Type characterObjectType

dateType

protected commonj.sdo.Type dateType

dateTimeType

protected commonj.sdo.Type dateTimeType

dayType

protected commonj.sdo.Type dayType

decimalType

protected commonj.sdo.Type decimalType

double_Type

protected commonj.sdo.Type double_Type

doubleObjectType

protected commonj.sdo.Type doubleObjectType

durationType

protected commonj.sdo.Type durationType

float_Type

protected commonj.sdo.Type float_Type

floatObjectType

protected commonj.sdo.Type floatObjectType

int_Type

protected commonj.sdo.Type int_Type

integerType

protected commonj.sdo.Type integerType

intObjectType

protected commonj.sdo.Type intObjectType

long_Type

protected commonj.sdo.Type long_Type

longObjectType

protected commonj.sdo.Type longObjectType

monthType

protected commonj.sdo.Type monthType

monthDayType

protected commonj.sdo.Type monthDayType

objectType

protected commonj.sdo.Type objectType

short_Type

protected commonj.sdo.Type short_Type

shortObjectType

protected commonj.sdo.Type shortObjectType

stringType

protected commonj.sdo.Type stringType

stringsType

protected commonj.sdo.Type stringsType

timeType

protected commonj.sdo.Type timeType

uriType

protected commonj.sdo.Type uriType

yearType

protected commonj.sdo.Type yearType

yearMonthType

protected commonj.sdo.Type yearMonthType

yearMonthDayType

protected commonj.sdo.Type yearMonthDayType
Constructor Detail

ModelFactoryImpl

public ModelFactoryImpl()
Creates an instance of the factory.

Method Detail

register

public void register(commonj.sdo.helper.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 commonj.sdo.DataObject create(int typeNumber)

Overrides:
create in class FactoryBase

createFromString

public java.lang.Object createFromString(int typeNumber,
                                         java.lang.String initialValue)

Overrides:
createFromString in class FactoryBase

convertToString

public java.lang.String convertToString(int typeNumber,
                                        java.lang.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 commonj.sdo.Type getBaseDataGraphType()

getDataGraphType

public commonj.sdo.Type getDataGraphType()

getDataObject

public commonj.sdo.Type getDataObject()

getModelsType

public commonj.sdo.Type getModelsType()

getProperty

public commonj.sdo.Type getProperty()

getTextType

public commonj.sdo.Type getTextType()

getType

public commonj.sdo.Type getType()

getTypes

public commonj.sdo.Type getTypes()

getXSDType

public commonj.sdo.Type getXSDType()

getBase64Bytes

public commonj.sdo.Type getBase64Bytes()

getBoolean

public commonj.sdo.Type getBoolean()

getBooleanObject

public commonj.sdo.Type getBooleanObject()

getByte

public commonj.sdo.Type getByte()

getByteObject

public commonj.sdo.Type getByteObject()

getBytes

public commonj.sdo.Type getBytes()

getChangeSummaryType

public commonj.sdo.Type getChangeSummaryType()

getCharacter

public commonj.sdo.Type getCharacter()

getCharacterObject

public commonj.sdo.Type getCharacterObject()

getDate

public commonj.sdo.Type getDate()

getDateTime

public commonj.sdo.Type getDateTime()

getDay

public commonj.sdo.Type getDay()

getDecimal

public commonj.sdo.Type getDecimal()

getDouble

public commonj.sdo.Type getDouble()

getDoubleObject

public commonj.sdo.Type getDoubleObject()

getDuration

public commonj.sdo.Type getDuration()

getFloat

public commonj.sdo.Type getFloat()

getFloatObject

public commonj.sdo.Type getFloatObject()

getInt

public commonj.sdo.Type getInt()

getInteger

public commonj.sdo.Type getInteger()

getIntObject

public commonj.sdo.Type getIntObject()

getLong

public commonj.sdo.Type getLong()

getLongObject

public commonj.sdo.Type getLongObject()

getMonth

public commonj.sdo.Type getMonth()

getMonthDay

public commonj.sdo.Type getMonthDay()

getObject

public commonj.sdo.Type getObject()

getShort

public commonj.sdo.Type getShort()

getShortObject

public commonj.sdo.Type getShortObject()

getString

public commonj.sdo.Type getString()

getStrings

public commonj.sdo.Type getStrings()

getTime

public commonj.sdo.Type getTime()

getURI

public commonj.sdo.Type getURI()

getYear

public commonj.sdo.Type getYear()

getYearMonth

public commonj.sdo.Type getYearMonth()

getYearMonthDay

public commonj.sdo.Type getYearMonthDay()

init

public static ModelFactoryImpl init()

createMetaData

public void createMetaData()

initializeMetaData

public void initializeMetaData()

createXSDMetaData

protected void createXSDMetaData()

createBase64BytesFromString

public byte[] createBase64BytesFromString(java.lang.String initialValue)


convertBase64BytesToString

public java.lang.String convertBase64BytesToString(java.lang.Object instanceValue)


createBooleanFromString

public java.lang.Boolean createBooleanFromString(java.lang.String initialValue)


convertBooleanToString

public java.lang.String convertBooleanToString(java.lang.Object instanceValue)


createBooleanObjectFromString

public java.lang.Boolean createBooleanObjectFromString(java.lang.String initialValue)


convertBooleanObjectToString

public java.lang.String convertBooleanObjectToString(java.lang.Object instanceValue)


createByteFromString

public java.lang.Byte createByteFromString(java.lang.String initialValue)


convertByteToString

public java.lang.String convertByteToString(java.lang.Object instanceValue)


createByteObjectFromString

public java.lang.Byte createByteObjectFromString(java.lang.String initialValue)


convertByteObjectToString

public java.lang.String convertByteObjectToString(java.lang.Object instanceValue)


createBytesFromString

public byte[] createBytesFromString(java.lang.String initialValue)


convertBytesToString

public java.lang.String convertBytesToString(java.lang.Object instanceValue)


createChangeSummaryTypeFromString

public commonj.sdo.ChangeSummary createChangeSummaryTypeFromString(java.lang.String initialValue)


convertChangeSummaryTypeToString

public java.lang.String convertChangeSummaryTypeToString(java.lang.Object instanceValue)


createCharacterFromString

public java.lang.Character createCharacterFromString(java.lang.String initialValue)


convertCharacterToString

public java.lang.String convertCharacterToString(java.lang.Object instanceValue)


createCharacterObjectFromString

public java.lang.Character createCharacterObjectFromString(java.lang.String initialValue)


convertCharacterObjectToString

public java.lang.String convertCharacterObjectToString(java.lang.Object instanceValue)


createDateFromString

public java.util.Date createDateFromString(java.lang.String initialValue)


convertDateToString

public java.lang.String convertDateToString(java.lang.Object instanceValue)


createDateTimeFromString

public java.lang.String createDateTimeFromString(java.lang.String initialValue)


convertDateTimeToString

public java.lang.String convertDateTimeToString(java.lang.Object instanceValue)


createDayFromString

public java.lang.String createDayFromString(java.lang.String initialValue)


convertDayToString

public java.lang.String convertDayToString(java.lang.Object instanceValue)


createDecimalFromString

public java.math.BigDecimal createDecimalFromString(java.lang.String initialValue)


convertDecimalToString

public java.lang.String convertDecimalToString(java.lang.Object instanceValue)


createDoubleFromString

public java.lang.Double createDoubleFromString(java.lang.String initialValue)


convertDoubleToString

public java.lang.String convertDoubleToString(java.lang.Object instanceValue)


createDoubleObjectFromString

public java.lang.Double createDoubleObjectFromString(java.lang.String initialValue)


convertDoubleObjectToString

public java.lang.String convertDoubleObjectToString(java.lang.Object instanceValue)


createDurationFromString

public java.lang.String createDurationFromString(java.lang.String initialValue)


convertDurationToString

public java.lang.String convertDurationToString(java.lang.Object instanceValue)


createFloatFromString

public java.lang.Float createFloatFromString(java.lang.String initialValue)


convertFloatToString

public java.lang.String convertFloatToString(java.lang.Object instanceValue)


createFloatObjectFromString

public java.lang.Float createFloatObjectFromString(java.lang.String initialValue)


convertFloatObjectToString

public java.lang.String convertFloatObjectToString(java.lang.Object instanceValue)


createIntFromString

public java.lang.Integer createIntFromString(java.lang.String initialValue)


convertIntToString

public java.lang.String convertIntToString(java.lang.Object instanceValue)


createIntegerFromString

public java.math.BigInteger createIntegerFromString(java.lang.String initialValue)


convertIntegerToString

public java.lang.String convertIntegerToString(java.lang.Object instanceValue)


createIntObjectFromString

public java.lang.Integer createIntObjectFromString(java.lang.String initialValue)


convertIntObjectToString

public java.lang.String convertIntObjectToString(java.lang.Object instanceValue)


createLongFromString

public java.lang.Long createLongFromString(java.lang.String initialValue)


convertLongToString

public java.lang.String convertLongToString(java.lang.Object instanceValue)


createLongObjectFromString

public java.lang.Long createLongObjectFromString(java.lang.String initialValue)


convertLongObjectToString

public java.lang.String convertLongObjectToString(java.lang.Object instanceValue)


createMonthFromString

public java.lang.String createMonthFromString(java.lang.String initialValue)


convertMonthToString

public java.lang.String convertMonthToString(java.lang.Object instanceValue)


createMonthDayFromString

public java.lang.String createMonthDayFromString(java.lang.String initialValue)


convertMonthDayToString

public java.lang.String convertMonthDayToString(java.lang.Object instanceValue)


createObjectFromString

public java.lang.Object createObjectFromString(java.lang.String initialValue)


convertObjectToString

public java.lang.String convertObjectToString(java.lang.Object instanceValue)


createShortFromString

public java.lang.Short createShortFromString(java.lang.String initialValue)


convertShortToString

public java.lang.String convertShortToString(java.lang.Object instanceValue)


createShortObjectFromString

public java.lang.Short createShortObjectFromString(java.lang.String initialValue)


convertShortObjectToString

public java.lang.String convertShortObjectToString(java.lang.Object instanceValue)


createStringFromString

public java.lang.String createStringFromString(java.lang.String initialValue)


convertStringToString

public java.lang.String convertStringToString(java.lang.Object instanceValue)


createStringsFromString

public java.util.List createStringsFromString(java.lang.String initialValue)


convertStringsToString

public java.lang.String convertStringsToString(java.lang.Object instanceValue)


createTimeFromString

public java.lang.String createTimeFromString(java.lang.String initialValue)


convertTimeToString

public java.lang.String convertTimeToString(java.lang.Object instanceValue)


createURIFromString

public java.lang.String createURIFromString(java.lang.String initialValue)


convertURIToString

public java.lang.String convertURIToString(java.lang.Object instanceValue)


createYearFromString

public java.lang.String createYearFromString(java.lang.String initialValue)


convertYearToString

public java.lang.String convertYearToString(java.lang.Object instanceValue)


createYearMonthFromString

public java.lang.String createYearMonthFromString(java.lang.String initialValue)


convertYearMonthToString

public java.lang.String convertYearMonthToString(java.lang.Object instanceValue)


createYearMonthDayFromString

public java.lang.String createYearMonthDayFromString(java.lang.String initialValue)


convertYearMonthDayToString

public java.lang.String convertYearMonthDayToString(java.lang.Object instanceValue)



Copyright © 2007 Apache Software Foundation. All Rights Reserved.