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.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.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.EStructuralFeature.Internal.DynamicValueHolder, 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. Make sure the top of each generated file contains the ASF License. 10. Move this JavaDoc comment into the newly generated ModelFactoryImpl 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 BASE_DATA_GRAPH_TYPE
           
protected  Type baseDataGraphTypeType
           
static int BOOLEAN
           
static int BOOLEAN_OBJECT
           
protected  Type boolean_Type
           
protected  Type booleanObjectType
           
static int BYTE
           
static int BYTE_OBJECT
           
protected  Type byte_Type
           
protected  Type byteObjectType
           
static int BYTES
           
protected  Type bytesType
           
static int CHANGE_SUMMARY_TYPE
           
protected  Type changeSummaryTypeType
           
static int CHARACTER
           
static int CHARACTER_OBJECT
           
protected  Type characterObjectType
           
protected  Type characterType
           
static int DATA_GRAPH_TYPE
           
static int DATA_OBJECT
           
protected  Type dataGraphTypeType
           
protected  Type dataObjectType
           
static int DATE
           
static int DATE_TIME
           
protected  Type dateTimeType
           
protected  Type dateType
           
static int DAY
           
protected  Type dayType
           
static int DECIMAL
           
protected  Type decimalType
           
static int DOUBLE
           
static int DOUBLE_OBJECT
           
protected  Type double_Type
           
protected  Type doubleObjectType
           
static int DURATION
           
protected  Type durationType
           
static int FLOAT
           
static int FLOAT_OBJECT
           
protected  Type float_Type
           
protected  Type floatObjectType
           
static int INT
           
static int INT_OBJECT
           
protected  Type int_Type
           
static int INTEGER
           
protected  Type integerType
           
protected  Type intObjectType
           
static int LONG
           
static int LONG_OBJECT
           
protected  Type long_Type
           
protected  Type longObjectType
           
static int MODELS_TYPE
           
protected  Type modelsTypeType
           
static int MONTH
           
static int MONTH_DAY
           
protected  Type monthDayType
           
protected  Type monthType
           
static String NAMESPACE_PREFIX
          The package namespace name.
static String NAMESPACE_URI
          The package namespace URI.
static int OBJECT
           
protected  Type objectType
           
static String PATTERN_VERSION
          The version of the generator pattern used to generate this class.
static int PROPERTY
           
protected  Type propertyType
           
static int SHORT
           
static int SHORT_OBJECT
           
protected  Type short_Type
           
protected  Type shortObjectType
           
static int STRING
           
static int STRINGS
           
protected  Type stringsType
           
protected  Type stringType
           
static int TEXT_TYPE
           
protected  Type textTypeType
           
static int TIME
           
protected  Type timeType
           
static int TYPE
           
static int TYPES
           
protected  Type typesType
           
protected  Type typeType
           
static int URI
           
protected  Type uriType
           
static int XSD_TYPE
           
protected  Type xsdTypeType
           
static int YEAR
           
static int YEAR_MONTH
           
static int YEAR_MONTH_DAY
           
protected  Type yearMonthDayType
           
protected  Type yearMonthType
           
protected  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, 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.ModelFactory
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
ModelFactoryImpl()
          Creates an instance of the factory.
 
Method Summary
 String convertBooleanObjectToString(Object instanceValue)
           
 String convertBooleanToString(Object instanceValue)
           
 String convertByteObjectToString(Object instanceValue)
           
 String convertBytesToString(Object instanceValue)
           
 String convertByteToString(Object instanceValue)
           
 String convertChangeSummaryTypeToString(Object instanceValue)
           
 String convertCharacterObjectToString(Object instanceValue)
           
 String convertCharacterToString(Object instanceValue)
           
 String convertDateTimeToString(Object instanceValue)
           
 String convertDateToString(Object instanceValue)
           
 String convertDayToString(Object instanceValue)
           
 String convertDecimalToString(Object instanceValue)
           
 String convertDoubleObjectToString(Object instanceValue)
           
 String convertDoubleToString(Object instanceValue)
           
 String convertDurationToString(Object instanceValue)
           
 String convertFloatObjectToString(Object instanceValue)
           
 String convertFloatToString(Object instanceValue)
           
 String convertIntegerToString(Object instanceValue)
           
 String convertIntObjectToString(Object instanceValue)
           
 String convertIntToString(Object instanceValue)
           
 String convertLongObjectToString(Object instanceValue)
           
 String convertLongToString(Object instanceValue)
           
 String convertMonthDayToString(Object instanceValue)
           
 String convertMonthToString(Object instanceValue)
           
 String convertObjectToString(Object instanceValue)
           
 String convertShortObjectToString(Object instanceValue)
           
 String convertShortToString(Object instanceValue)
           
 String convertStringsToString(Object instanceValue)
           
 String convertStringToString(Object instanceValue)
           
 String convertTimeToString(Object instanceValue)
           
 String convertToString(int typeNumber, Object instanceValue)
           
 String convertURIToString(Object instanceValue)
           
 String convertYearMonthDayToString(Object instanceValue)
           
 String convertYearMonthToString(Object instanceValue)
           
 String convertYearToString(Object instanceValue)
           
 DataObject create(int typeNumber)
           
 Boolean createBooleanFromString(String initialValue)
           
 Boolean createBooleanObjectFromString(String initialValue)
           
 Byte createByteFromString(String initialValue)
           
 Byte createByteObjectFromString(String initialValue)
           
 byte[] createBytesFromString(String initialValue)
           
 ChangeSummary createChangeSummaryTypeFromString(String initialValue)
           
 Character createCharacterFromString(String initialValue)
           
 Character createCharacterObjectFromString(String initialValue)
           
 DataGraphType createDataGraphType()
           
 Date createDateFromString(String initialValue)
           
 String createDateTimeFromString(String initialValue)
           
 String createDayFromString(String initialValue)
           
 BigDecimal createDecimalFromString(String initialValue)
           
 Double createDoubleFromString(String initialValue)
           
 Double createDoubleObjectFromString(String initialValue)
           
 String createDurationFromString(String initialValue)
           
 Float createFloatFromString(String initialValue)
           
 Float createFloatObjectFromString(String initialValue)
           
 Object createFromString(int typeNumber, String initialValue)
           
 BigInteger createIntegerFromString(String initialValue)
           
 Integer createIntFromString(String initialValue)
           
 Integer createIntObjectFromString(String initialValue)
           
 Long createLongFromString(String initialValue)
           
 Long createLongObjectFromString(String initialValue)
           
 void createMetaData()
           
 ModelsType createModelsType()
           
 String createMonthDayFromString(String initialValue)
           
 String createMonthFromString(String initialValue)
           
 Object createObjectFromString(String initialValue)
           
 Property createProperty()
           
 Short createShortFromString(String initialValue)
           
 Short createShortObjectFromString(String initialValue)
           
 String createStringFromString(String initialValue)
           
 List createStringsFromString(String initialValue)
           
 String createTimeFromString(String initialValue)
           
 Type createType()
           
 Types createTypes()
           
 String createURIFromString(String initialValue)
           
protected  void createXSDMetaData()
           
 XSDType createXSDType()
           
 String createYearFromString(String initialValue)
           
 String createYearMonthDayFromString(String initialValue)
           
 String createYearMonthFromString(String initialValue)
           
 Type getBaseDataGraphType()
           
 Type getBoolean()
           
 Type getBooleanObject()
           
 Type getByte()
           
 Type getByteObject()
           
 Type getBytes()
           
 Type getChangeSummaryType()
           
 Type getCharacter()
           
 Type getCharacterObject()
           
 Type getDataGraphType()
           
 Type getDataObject()
           
 Type getDate()
           
 Type getDateTime()
           
 Type getDay()
           
 Type getDecimal()
           
 Type getDouble()
           
 Type getDoubleObject()
           
 Type getDuration()
           
 Type getFloat()
           
 Type getFloatObject()
           
 Type getInt()
           
 Type getInteger()
           
 Type getIntObject()
           
 Type getLong()
           
 Type getLongObject()
           
 Type getModelsType()
           
 Type getMonth()
           
 Type getMonthDay()
           
 Type getObject()
           
 Type getProperty()
           
 Type getShort()
           
 Type getShortObject()
           
 Type getString()
           
 Type getStrings()
           
 Type getTextType()
           
 Type getTime()
           
 Type getType()
           
 Type getTypes()
           
 Type getURI()
           
 Type getXSDType()
           
 Type getYear()
           
 Type getYearMonth()
           
 Type getYearMonthDay()
           
static ModelFactoryImpl 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

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

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

dataGraphTypeType

protected Type dataGraphTypeType

dataObjectType

protected Type dataObjectType

modelsTypeType

protected Type modelsTypeType

propertyType

protected Type propertyType

textTypeType

protected Type textTypeType

typeType

protected Type typeType

typesType

protected Type typesType

xsdTypeType

protected Type xsdTypeType

boolean_Type

protected Type boolean_Type

booleanObjectType

protected Type booleanObjectType

byte_Type

protected Type byte_Type

byteObjectType

protected Type byteObjectType

bytesType

protected Type bytesType

changeSummaryTypeType

protected Type changeSummaryTypeType

characterType

protected Type characterType

characterObjectType

protected Type characterObjectType

dateType

protected Type dateType

dateTimeType

protected Type dateTimeType

dayType

protected Type dayType

decimalType

protected Type decimalType

double_Type

protected Type double_Type

doubleObjectType

protected Type doubleObjectType

durationType

protected Type durationType

float_Type

protected Type float_Type

floatObjectType

protected Type floatObjectType

int_Type

protected Type int_Type

integerType

protected Type integerType

intObjectType

protected Type intObjectType

long_Type

protected Type long_Type

longObjectType

protected Type longObjectType

monthType

protected Type monthType

monthDayType

protected Type monthDayType

objectType

protected Type objectType

short_Type

protected Type short_Type

shortObjectType

protected Type shortObjectType

stringType

protected Type stringType

stringsType

protected Type stringsType

timeType

protected Type timeType

uriType

protected Type uriType

yearType

protected Type yearType

yearMonthType

protected Type yearMonthType

yearMonthDayType

protected Type yearMonthDayType
Constructor Detail

ModelFactoryImpl

public ModelFactoryImpl()
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 ModelFactory
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

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 Type getBaseDataGraphType()

getDataGraphType

public Type getDataGraphType()

getDataObject

public Type getDataObject()

getModelsType

public Type getModelsType()

getProperty

public Type getProperty()

getTextType

public Type getTextType()

getType

public Type getType()

getTypes

public Type getTypes()

getXSDType

public Type getXSDType()

getBoolean

public Type getBoolean()

getBooleanObject

public Type getBooleanObject()

getByte

public Type getByte()

getByteObject

public Type getByteObject()

getBytes

public Type getBytes()

getChangeSummaryType

public Type getChangeSummaryType()

getCharacter

public Type getCharacter()

getCharacterObject

public Type getCharacterObject()

getDate

public Type getDate()

getDateTime

public Type getDateTime()

getDay

public Type getDay()

getDecimal

public Type getDecimal()

getDouble

public Type getDouble()

getDoubleObject

public Type getDoubleObject()

getDuration

public Type getDuration()

getFloat

public Type getFloat()

getFloatObject

public Type getFloatObject()

getInt

public Type getInt()

getInteger

public Type getInteger()

getIntObject

public Type getIntObject()

getLong

public Type getLong()

getLongObject

public Type getLongObject()

getMonth

public Type getMonth()

getMonthDay

public Type getMonthDay()

getObject

public Type getObject()

getShort

public Type getShort()

getShortObject

public Type getShortObject()

getString

public Type getString()

getStrings

public Type getStrings()

getTime

public Type getTime()

getURI

public Type getURI()

getYear

public Type getYear()

getYearMonth

public Type getYearMonth()

getYearMonthDay

public Type getYearMonthDay()

init

public static ModelFactoryImpl init()

createMetaData

public void createMetaData()

initializeMetaData

public void initializeMetaData()

createXSDMetaData

protected void createXSDMetaData()

createBooleanFromString

public Boolean createBooleanFromString(String initialValue)


convertBooleanToString

public String convertBooleanToString(Object instanceValue)


createBooleanObjectFromString

public Boolean createBooleanObjectFromString(String initialValue)


convertBooleanObjectToString

public String convertBooleanObjectToString(Object instanceValue)


createByteFromString

public Byte createByteFromString(String initialValue)


convertByteToString

public String convertByteToString(Object instanceValue)


createByteObjectFromString

public Byte createByteObjectFromString(String initialValue)


convertByteObjectToString

public String convertByteObjectToString(Object instanceValue)


createBytesFromString

public byte[] createBytesFromString(String initialValue)


convertBytesToString

public String convertBytesToString(Object instanceValue)


createChangeSummaryTypeFromString

public ChangeSummary createChangeSummaryTypeFromString(String initialValue)


convertChangeSummaryTypeToString

public String convertChangeSummaryTypeToString(Object instanceValue)


createCharacterFromString

public Character createCharacterFromString(String initialValue)


convertCharacterToString

public String convertCharacterToString(Object instanceValue)


createCharacterObjectFromString

public Character createCharacterObjectFromString(String initialValue)


convertCharacterObjectToString

public String convertCharacterObjectToString(Object instanceValue)


createDateFromString

public Date createDateFromString(String initialValue)


convertDateToString

public String convertDateToString(Object instanceValue)


createDateTimeFromString

public String createDateTimeFromString(String initialValue)


convertDateTimeToString

public String convertDateTimeToString(Object instanceValue)


createDayFromString

public String createDayFromString(String initialValue)


convertDayToString

public String convertDayToString(Object instanceValue)


createDecimalFromString

public BigDecimal createDecimalFromString(String initialValue)


convertDecimalToString

public String convertDecimalToString(Object instanceValue)


createDoubleFromString

public Double createDoubleFromString(String initialValue)


convertDoubleToString

public String convertDoubleToString(Object instanceValue)


createDoubleObjectFromString

public Double createDoubleObjectFromString(String initialValue)


convertDoubleObjectToString

public String convertDoubleObjectToString(Object instanceValue)


createDurationFromString

public String createDurationFromString(String initialValue)


convertDurationToString

public String convertDurationToString(Object instanceValue)


createFloatFromString

public Float createFloatFromString(String initialValue)


convertFloatToString

public String convertFloatToString(Object instanceValue)


createFloatObjectFromString

public Float createFloatObjectFromString(String initialValue)


convertFloatObjectToString

public String convertFloatObjectToString(Object instanceValue)


createIntFromString

public Integer createIntFromString(String initialValue)


convertIntToString

public String convertIntToString(Object instanceValue)


createIntegerFromString

public BigInteger createIntegerFromString(String initialValue)


convertIntegerToString

public String convertIntegerToString(Object instanceValue)


createIntObjectFromString

public Integer createIntObjectFromString(String initialValue)


convertIntObjectToString

public String convertIntObjectToString(Object instanceValue)


createLongFromString

public Long createLongFromString(String initialValue)


convertLongToString

public String convertLongToString(Object instanceValue)


createLongObjectFromString

public Long createLongObjectFromString(String initialValue)


convertLongObjectToString

public String convertLongObjectToString(Object instanceValue)


createMonthFromString

public String createMonthFromString(String initialValue)


convertMonthToString

public String convertMonthToString(Object instanceValue)


createMonthDayFromString

public String createMonthDayFromString(String initialValue)


convertMonthDayToString

public String convertMonthDayToString(Object instanceValue)


createObjectFromString

public Object createObjectFromString(String initialValue)


convertObjectToString

public String convertObjectToString(Object instanceValue)


createShortFromString

public Short createShortFromString(String initialValue)


convertShortToString

public String convertShortToString(Object instanceValue)


createShortObjectFromString

public Short createShortObjectFromString(String initialValue)


convertShortObjectToString

public String convertShortObjectToString(Object instanceValue)


createStringFromString

public String createStringFromString(String initialValue)


convertStringToString

public String convertStringToString(Object instanceValue)


createStringsFromString

public List createStringsFromString(String initialValue)


convertStringsToString

public String convertStringsToString(Object instanceValue)


createTimeFromString

public String createTimeFromString(String initialValue)


convertTimeToString

public String convertTimeToString(Object instanceValue)


createURIFromString

public String createURIFromString(String initialValue)


convertURIToString

public String convertURIToString(Object instanceValue)


createYearFromString

public String createYearFromString(String initialValue)


convertYearToString

public String convertYearToString(Object instanceValue)


createYearMonthFromString

public String createYearMonthFromString(String initialValue)


convertYearMonthToString

public String convertYearMonthToString(Object instanceValue)


createYearMonthDayFromString

public String createYearMonthDayFromString(String initialValue)


convertYearMonthDayToString

public String convertYearMonthDayToString(Object instanceValue)



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