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.MinimalEObjectImpl
org.eclipse.emf.ecore.impl.MinimalEObjectImpl.Container
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.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 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
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
JavaFactoryImpl
public JavaFactoryImpl()
- 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 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.