org.apache.tuscany.sdo.model.java.impl
Class JavaFactoryImpl
java.lang.Object
org.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.ecore.impl.BasicEObjectImpl
org.eclipse.emf.ecore.impl.EObjectImpl
org.eclipse.emf.ecore.impl.FlatEObjectImpl
org.eclipse.emf.ecore.impl.EModelElementImpl
org.eclipse.emf.ecore.impl.ENamedElementImpl
org.eclipse.emf.ecore.impl.EPackageImpl
org.apache.tuscany.sdo.impl.FactoryBase
org.apache.tuscany.sdo.model.java.impl.JavaFactoryImpl
- All Implemented Interfaces:
- JavaFactory, 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 JavaFactoryImpl
- extends FactoryBase
- implements JavaFactory
An implementation of the commonj.sdo/java model factory.
This model is generated from sdoJava.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/java -targetDirectory -javaPackage org.apache.tuscany.sdo.model.java /src/main/resources/xml/sdoJava.xsd
2. Delete all the createXXXFromString() and convertXXXToString() methods in the newly generated JavaFactoryImpl and
replace them with the ones from this file.
3. Move this JavaDoc comment into the newly generated JavaFactoryImpl class.
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 |
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.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, 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 |
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
JAVA_INFO
public static final int JAVA_INFO
- See Also:
- Constant Field Values
BOOLEAN_OBJECT
public static final int BOOLEAN_OBJECT
- See Also:
- Constant Field Values
BYTE_OBJECT
public static final int BYTE_OBJECT
- See Also:
- Constant Field Values
CHARACTER_OBJECT
public static final int CHARACTER_OBJECT
- See Also:
- Constant Field Values
DOUBLE_OBJECT
public static final int DOUBLE_OBJECT
- See Also:
- Constant Field Values
FLOAT_OBJECT
public static final int FLOAT_OBJECT
- See Also:
- Constant Field Values
INT_OBJECT
public static final int INT_OBJECT
- See Also:
- Constant Field Values
LONG_OBJECT
public static final int LONG_OBJECT
- See Also:
- Constant Field Values
SHORT_OBJECT
public static final int SHORT_OBJECT
- See Also:
- Constant Field Values
javaInfoType
protected commonj.sdo.Type javaInfoType
booleanObjectType
protected commonj.sdo.Type booleanObjectType
byteObjectType
protected commonj.sdo.Type byteObjectType
characterObjectType
protected commonj.sdo.Type characterObjectType
doubleObjectType
protected commonj.sdo.Type doubleObjectType
floatObjectType
protected commonj.sdo.Type floatObjectType
intObjectType
protected commonj.sdo.Type intObjectType
longObjectType
protected commonj.sdo.Type longObjectType
shortObjectType
protected commonj.sdo.Type shortObjectType
JavaFactoryImpl
public JavaFactoryImpl()
- Creates an instance of the factory.
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 JavaFactory
- 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
createJavaInfo
public JavaInfo createJavaInfo()
-
- Specified by:
createJavaInfo
in interface JavaFactory
- Returns:
- a new object of class 'Info'.
getJavaInfo
public commonj.sdo.Type getJavaInfo()
getBooleanObject
public commonj.sdo.Type getBooleanObject()
getByteObject
public commonj.sdo.Type getByteObject()
getCharacterObject
public commonj.sdo.Type getCharacterObject()
getDoubleObject
public commonj.sdo.Type getDoubleObject()
getFloatObject
public commonj.sdo.Type getFloatObject()
getIntObject
public commonj.sdo.Type getIntObject()
getLongObject
public commonj.sdo.Type getLongObject()
getShortObject
public commonj.sdo.Type getShortObject()
init
public static JavaFactoryImpl init()
createMetaData
public void createMetaData()
initializeMetaData
public void initializeMetaData()
createXSDMetaData
protected void createXSDMetaData(ModelFactoryImpl theModelPackageImpl)
createBooleanObjectFromString
public java.lang.Boolean createBooleanObjectFromString(java.lang.String initialValue)
-
convertBooleanObjectToString
public java.lang.String convertBooleanObjectToString(java.lang.Object instanceValue)
-
createByteObjectFromString
public java.lang.Byte createByteObjectFromString(java.lang.String initialValue)
-
convertByteObjectToString
public java.lang.String convertByteObjectToString(java.lang.Object instanceValue)
-
createCharacterObjectFromString
public java.lang.Character createCharacterObjectFromString(java.lang.String initialValue)
-
convertCharacterObjectToString
public java.lang.String convertCharacterObjectToString(java.lang.Object instanceValue)
-
createDoubleObjectFromString
public java.lang.Double createDoubleObjectFromString(java.lang.String initialValue)
-
convertDoubleObjectToString
public java.lang.String convertDoubleObjectToString(java.lang.Object instanceValue)
-
createFloatObjectFromString
public java.lang.Float createFloatObjectFromString(java.lang.String initialValue)
-
convertFloatObjectToString
public java.lang.String convertFloatObjectToString(java.lang.Object instanceValue)
-
createIntObjectFromString
public java.lang.Integer createIntObjectFromString(java.lang.String initialValue)
-
convertIntObjectToString
public java.lang.String convertIntObjectToString(java.lang.Object instanceValue)
-
createLongObjectFromString
public java.lang.Long createLongObjectFromString(java.lang.String initialValue)
-
convertLongObjectToString
public java.lang.String convertLongObjectToString(java.lang.Object instanceValue)
-
createShortObjectFromString
public java.lang.Short createShortObjectFromString(java.lang.String initialValue)
-
convertShortObjectToString
public java.lang.String convertShortObjectToString(java.lang.Object instanceValue)
-
Copyright © 2007 Apache Software Foundation. All Rights Reserved.