org.apache.tuscany.sdo.impl
Class FactoryBase

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
All Implemented Interfaces:
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
Direct Known Subclasses:
InternalFactoryImpl, JavaFactoryImpl, MetadataFactoryImpl, ModelFactoryImpl, XMLFactoryImpl

public class FactoryBase
extends org.eclipse.emf.ecore.impl.EPackageImpl

Base class for generated (static) SDO factories


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 boolean 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.eclipse.emf.ecore.EStructuralFeature.Internal.DynamicValueHolder
NIL
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Constructor Summary
protected FactoryBase(String namespaceURI, String namespacePrefix)
           
protected FactoryBase(String namespaceURI, String namespacePrefix, String interfacePackage)
           
 
Method Summary
protected  void addSuperType(Type subType, Type superType)
           
protected  void addXSDMapping(Property property, String[] xsdMappings)
           
protected  void addXSDMapping(String[] xsdMappings, String annotationSource)
           
protected  void addXSDMapping(Type type, String[] xsdMappings)
           
 String convertToString(int typeNumber, Object objectValue)
           
 DataObject create(int typeNumber)
           
 Object createFromString(int typeNumber, String stringValue)
           
protected  Property createGlobalProperty(String name, Type type, String[] xsdMappings)
           
protected  Property createGlobalProperty(String name, Type type, String[] xsdMappings, boolean asAttribute)
           
protected  Property createGlobalProperty(String name, Type type, String[] xsdMappings, boolean asAttribute, String annotationSource)
           
protected  void createProperty(boolean isDataType, Type containingType, int internalPropertyNumber)
           
protected  Type createType(boolean isDataType, int typeNumber)
           
protected  Property getLocalProperty(Type type, int localPropertyIndex)
           
protected  Property getProperty(Type type, int internalPropertyNumber)
          Deprecated. - use getLocalProperty instead, since getProperty causes caching of structural features.
protected  Type getSequence()
           
static Object getStaticFactory(String namespaceURI)
          Deprecated. - Use of the global scope is no longer encouraged. This method uses the global scope for retrieving the URI's factory. Instead, it is now possible to simply access SomeFactoryInterface.INSTANCE object directly.
protected  void initializeProperty(Property property, Type type, String name, String defaultValue, int lower, int upper, Class containerClass, boolean isReadonly, boolean isUnsettable, boolean isDerived)
           
protected  void initializeProperty(Property property, Type type, String name, String defaultValue, int lower, int upper, Class containerClass, boolean isReadonly, boolean isUnsettable, boolean isDerived, boolean isComposite, Property oppositeProperty)
           
protected  void initializeType(Type type, Class instanceClass, String name)
           
protected  void initializeType(Type type, Class instanceClass, String name, boolean isAbstract)
           
protected  void initializeType(Type type, Class instanceClass, String name, boolean isSerializable, boolean isGenerated)
           
protected  void initXSD()
           
protected  void setInstanceProperty(Property property, String namespaceURI, String propertyName, String propertyValue)
           
protected  void setInstanceProperty(Type type, String namespaceURI, String propertyName, String propertyValue)
           
 
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

IS_ATTRIBUTE

public static final boolean IS_ATTRIBUTE
See Also:
Constant Field Values
Constructor Detail

FactoryBase

protected FactoryBase(String namespaceURI,
                      String namespacePrefix)

FactoryBase

protected FactoryBase(String namespaceURI,
                      String namespacePrefix,
                      String interfacePackage)
Method Detail

create

public DataObject create(int typeNumber)

createFromString

public Object createFromString(int typeNumber,
                               String stringValue)

convertToString

public String convertToString(int typeNumber,
                              Object objectValue)

createType

protected Type createType(boolean isDataType,
                          int typeNumber)

createProperty

protected void createProperty(boolean isDataType,
                              Type containingType,
                              int internalPropertyNumber)

getProperty

protected Property getProperty(Type type,
                               int internalPropertyNumber)
Deprecated. - use getLocalProperty instead, since getProperty causes caching of structural features.


getLocalProperty

protected Property getLocalProperty(Type type,
                                    int localPropertyIndex)

initializeType

protected void initializeType(Type type,
                              Class instanceClass,
                              String name)

initializeType

protected void initializeType(Type type,
                              Class instanceClass,
                              String name,
                              boolean isAbstract)

initializeType

protected void initializeType(Type type,
                              Class instanceClass,
                              String name,
                              boolean isSerializable,
                              boolean isGenerated)

initializeProperty

protected void initializeProperty(Property property,
                                  Type type,
                                  String name,
                                  String defaultValue,
                                  int lower,
                                  int upper,
                                  Class containerClass,
                                  boolean isReadonly,
                                  boolean isUnsettable,
                                  boolean isDerived)

initializeProperty

protected void initializeProperty(Property property,
                                  Type type,
                                  String name,
                                  String defaultValue,
                                  int lower,
                                  int upper,
                                  Class containerClass,
                                  boolean isReadonly,
                                  boolean isUnsettable,
                                  boolean isDerived,
                                  boolean isComposite,
                                  Property oppositeProperty)

initXSD

protected void initXSD()

addXSDMapping

protected void addXSDMapping(String[] xsdMappings,
                             String annotationSource)

addXSDMapping

protected void addXSDMapping(Type type,
                             String[] xsdMappings)

addXSDMapping

protected void addXSDMapping(Property property,
                             String[] xsdMappings)

setInstanceProperty

protected void setInstanceProperty(Type type,
                                   String namespaceURI,
                                   String propertyName,
                                   String propertyValue)

setInstanceProperty

protected void setInstanceProperty(Property property,
                                   String namespaceURI,
                                   String propertyName,
                                   String propertyValue)

createGlobalProperty

protected Property createGlobalProperty(String name,
                                        Type type,
                                        String[] xsdMappings)

createGlobalProperty

protected Property createGlobalProperty(String name,
                                        Type type,
                                        String[] xsdMappings,
                                        boolean asAttribute)

createGlobalProperty

protected Property createGlobalProperty(String name,
                                        Type type,
                                        String[] xsdMappings,
                                        boolean asAttribute,
                                        String annotationSource)

getSequence

protected Type getSequence()

addSuperType

protected void addSuperType(Type subType,
                            Type superType)

getStaticFactory

public static Object getStaticFactory(String namespaceURI)
Deprecated. - Use of the global scope is no longer encouraged. This method uses the global scope for retrieving the URI's factory. Instead, it is now possible to simply access SomeFactoryInterface.INSTANCE object directly.

Parameters:
namespaceURI -
Returns:
Static factory (from the global scope) for the provided URI


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