org.apache.tuscany.sdo.model.java.impl
Class JavaFactoryImpl

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.MinimalEObjectImpl
              extended by org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container
                  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.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.EStructuralFeature.Internal.DynamicValueHolder, 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. Make sure the top of each generated file contains the ASF License. 4. Move this JavaDoc comment into the newly generated JavaFactoryImpl class.


Nested Class Summary
 
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
 
Field Summary
static int BOOLEAN_OBJECT
           
protected  Type booleanObjectType
           
static int BYTE_OBJECT
           
protected  Type byteObjectType
           
static int CHARACTER_OBJECT
           
protected  Type characterObjectType
           
static int DOUBLE_OBJECT
           
protected  Type doubleObjectType
           
static int FLOAT_OBJECT
           
protected  Type floatObjectType
           
static int INT_OBJECT
           
protected  Type intObjectType
           
static int JAVA_INFO
           
protected  Type javaInfoType
           
static int LONG_OBJECT
           
protected  Type longObjectType
           
static String NAMESPACE_PREFIX
          The package namespace name.
static String NAMESPACE_URI
          The package namespace URI.
static String PATTERN_VERSION
          The version of the generator pattern used to generate this class.
static int SHORT_OBJECT
           
protected  Type shortObjectType
           
 
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, 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.apache.tuscany.sdo.model.java.JavaFactory
INSTANCE
 
Fields inherited from interface org.eclipse.emf.ecore.EStructuralFeature.Internal.DynamicValueHolder
NIL
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Constructor Summary
JavaFactoryImpl()
          Creates an instance of the factory.
 
Method Summary
 String convertBooleanObjectToString(Object instanceValue)
           
 String convertByteObjectToString(Object instanceValue)
           
 String convertCharacterObjectToString(Object instanceValue)
           
 String convertDoubleObjectToString(Object instanceValue)
           
 String convertFloatObjectToString(Object instanceValue)
           
 String convertIntObjectToString(Object instanceValue)
           
 String convertLongObjectToString(Object instanceValue)
           
 String convertShortObjectToString(Object instanceValue)
           
 String convertToString(int typeNumber, Object instanceValue)
           
 DataObject create(int typeNumber)
           
 Boolean createBooleanObjectFromString(String initialValue)
           
 Byte createByteObjectFromString(String initialValue)
           
 Character createCharacterObjectFromString(String initialValue)
           
 Double createDoubleObjectFromString(String initialValue)
           
 Float createFloatObjectFromString(String initialValue)
           
 Object createFromString(int typeNumber, String initialValue)
           
 Integer createIntObjectFromString(String initialValue)
           
 JavaInfo createJavaInfo()
           
 Long createLongObjectFromString(String initialValue)
           
 void createMetaData()
           
 Short createShortObjectFromString(String initialValue)
           
protected  void createXSDMetaData(ModelFactoryImpl theModelPackageImpl)
           
 Type getBooleanObject()
           
 Type getByteObject()
           
 Type getCharacterObject()
           
 Type getDoubleObject()
           
 Type getFloatObject()
           
 Type getIntObject()
           
 Type getJavaInfo()
           
 Type getLongObject()
           
 Type getShortObject()
           
static JavaFactoryImpl init()
           
 void initializeMetaData()
           
 void register(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, 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 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, 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
 

Field Detail

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

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 Type javaInfoType

booleanObjectType

protected Type booleanObjectType

byteObjectType

protected Type byteObjectType

characterObjectType

protected Type characterObjectType

doubleObjectType

protected Type doubleObjectType

floatObjectType

protected Type floatObjectType

intObjectType

protected Type intObjectType

longObjectType

protected Type longObjectType

shortObjectType

protected Type shortObjectType
Constructor Detail

JavaFactoryImpl

public JavaFactoryImpl()
Creates an instance of the factory.

Method Detail

register

public void register(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 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

createJavaInfo

public JavaInfo createJavaInfo()

Specified by:
createJavaInfo in interface JavaFactory
Returns:
a new object of class 'Info'.

getJavaInfo

public Type getJavaInfo()

getBooleanObject

public Type getBooleanObject()

getByteObject

public Type getByteObject()

getCharacterObject

public Type getCharacterObject()

getDoubleObject

public Type getDoubleObject()

getFloatObject

public Type getFloatObject()

getIntObject

public Type getIntObject()

getLongObject

public Type getLongObject()

getShortObject

public Type getShortObject()

init

public static JavaFactoryImpl init()

createMetaData

public void createMetaData()

initializeMetaData

public void initializeMetaData()

createXSDMetaData

protected void createXSDMetaData(ModelFactoryImpl theModelPackageImpl)

createBooleanObjectFromString

public Boolean createBooleanObjectFromString(String initialValue)


convertBooleanObjectToString

public String convertBooleanObjectToString(Object instanceValue)


createByteObjectFromString

public Byte createByteObjectFromString(String initialValue)


convertByteObjectToString

public String convertByteObjectToString(Object instanceValue)


createCharacterObjectFromString

public Character createCharacterObjectFromString(String initialValue)


convertCharacterObjectToString

public String convertCharacterObjectToString(Object instanceValue)


createDoubleObjectFromString

public Double createDoubleObjectFromString(String initialValue)


convertDoubleObjectToString

public String convertDoubleObjectToString(Object instanceValue)


createFloatObjectFromString

public Float createFloatObjectFromString(String initialValue)


convertFloatObjectToString

public String convertFloatObjectToString(Object instanceValue)


createIntObjectFromString

public Integer createIntObjectFromString(String initialValue)


convertIntObjectToString

public String convertIntObjectToString(Object instanceValue)


createLongObjectFromString

public Long createLongObjectFromString(String initialValue)


convertLongObjectToString

public String convertLongObjectToString(Object instanceValue)


createShortObjectFromString

public Short createShortObjectFromString(String initialValue)


convertShortObjectToString

public String convertShortObjectToString(Object instanceValue)



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