org.apache.tuscany.sdo.impl
Class DataTypeImpl

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.EClassifierImpl
                              extended by org.eclipse.emf.ecore.impl.EDataTypeImpl
                                  extended by org.apache.tuscany.sdo.impl.DataTypeImpl
All Implemented Interfaces:
Serializable, Type, org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.EClassifier, org.eclipse.emf.ecore.EDataType, org.eclipse.emf.ecore.EModelElement, org.eclipse.emf.ecore.ENamedElement, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EStructuralFeature.Internal.DynamicValueHolder, org.eclipse.emf.ecore.InternalEObject, org.eclipse.emf.ecore.util.BasicExtendedMetaData.EClassifierExtendedMetaData.Holder

public class DataTypeImpl
extends org.eclipse.emf.ecore.impl.EDataTypeImpl
implements Type, Type

An implementation of the model object 'Data Type'.

See Also:
Serialized Form

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.InternalEObject
org.eclipse.emf.ecore.InternalEObject.EStore
 
Field Summary
protected  List aliasNames
           
 
Fields inherited from class org.eclipse.emf.ecore.impl.EDataTypeImpl
defaultValue, defaultValueIsSet, SERIALIZABLE_EDEFAULT, SERIALIZABLE_EFLAG
 
Fields inherited from class org.eclipse.emf.ecore.impl.EClassifierImpl
DEFAULT_VALUE_EDEFAULT, eClassifierExtendedMetaData, eTypeParameters, generatedInstanceClassName, INSTANCE_CLASS_EDEFAULT, INSTANCE_CLASS_NAME_EDEFAULT, instanceClass, instanceClassName, instanceTypeName, metaObjectID
 
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 DataTypeImpl()
           
 
Method Summary
protected  org.eclipse.emf.ecore.EClass eStaticClass()
           
 Object get(Property property)
          Returns the value of the specified instance property of this Type.
 List getAliasName()
          Returns the value of the 'Alias Name' attribute list.
 List getAliasNames()
           
 Sequence getAny()
          Returns the value of the 'Any' attribute list.
 Sequence getAnyAttribute()
          Returns the value of the 'Any Attribute' attribute list.
 List getBaseType()
          Returns the value of the 'Base Type' reference list.
 List getBaseTypes()
           
 List getDeclaredProperties()
           
 List getInstanceProperties()
          Returns a read-only List of instance Properties available on this Type.
 List getProperties()
           
 List getProperty()
          Returns the value of the 'Property' containment reference list.
 Property getProperty(String propertyName)
           
 String getUri()
          Returns the value of the 'Uri' attribute.
 String getURI()
           
 boolean isAbstract()
          Indicates if this Type is abstract.
 boolean isDataType()
           
 boolean isOpen()
           
 boolean isSequenced()
           
 boolean isSetAbstract()
          Returns whether the value of the 'Abstract' attribute is set.
 boolean isSetDataType()
          Returns whether the value of the 'Data Type' attribute is set.
 boolean isSetName()
          Returns whether the value of the 'Name' attribute is set.
 boolean isSetOpen()
          Returns whether the value of the 'Open' attribute is set.
 boolean isSetSequenced()
          Returns whether the value of the 'Sequenced' attribute is set.
 boolean isSetUri()
          Returns whether the value of the 'Uri' attribute is set.
 void setAbstract(boolean value)
          Sets the value of the 'Abstract' attribute.
 void setDataType(boolean value)
          Sets the value of the 'Data Type' attribute.
 void setOpen(boolean value)
          Sets the value of the 'Open' attribute.
 void setSequenced(boolean value)
          Sets the value of the 'Sequenced' attribute.
 void setUri(String value)
          Sets the value of the 'Uri' attribute.
 void unsetAbstract()
          Unsets the value of the 'Abstract' attribute.
 void unsetDataType()
          Unsets the value of the 'Data Type' attribute.
 void unsetName()
          Unsets the value of the 'Name' attribute.
 void unsetOpen()
          Unsets the value of the 'Open' attribute.
 void unsetSequenced()
          Unsets the value of the 'Sequenced' attribute.
 void unsetUri()
          Unsets the value of the 'Uri' attribute.
 
Methods inherited from class org.eclipse.emf.ecore.impl.EDataTypeImpl
eGet, eIsSet, eSet, eUnset, getDefaultValue, isSerializable, setDataTypeGeneratedInstanceClass, setGeneratedInstanceClass, setInstanceClassGen, setSerializable, toString
 
Methods inherited from class org.eclipse.emf.ecore.impl.EClassifierImpl
basicGetEPackage, basicSetInstanceClassName, basicSetInstanceTypeName, dynamicIsInstance, eBasicRemoveFromContainerFeature, eBasicSetContainer, eInverseAdd, eInverseRemove, eInvoke, getClassForName, getClassifierID, getEPackage, getEPackageGen, getETypeParameters, getExtendedMetaData, getInstanceClass, getInstanceClassGen, getInstanceClassName, getInstanceClassNameGen, getInstanceTypeName, getPrimitiveOrArrayClass, isInstance, isSetInstanceClassName, isSetInstanceTypeName, setClassifierID, setExtendedMetaData, setInstanceClass, setInstanceClassName, setInstanceClassNameGen, setInstanceTypeName, setName, unsetInstanceClassName, unsetInstanceTypeName
 
Methods inherited from class org.eclipse.emf.ecore.impl.ENamedElementImpl
eContents, eCrossReferences, getName, getNameGen
 
Methods inherited from class org.eclipse.emf.ecore.impl.EModelElementImpl
eObjectForURIFragmentSegment, eSetDirectResource, eURIFragmentSegment, freeze, 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, eBasicSetContainerFeatureID, eBasicSetSettings, eBasicSettings, eClass, eContainerFeatureID, eDeliver, eDirectResource, eDynamicClass, eHasSettings, eIsProxy, eProperties, eProxyURI, eSetClass, eSetDeliver, eSetProxyURI, 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 commonj.sdo.Type
getInstanceClass, getName, isInstance
 
Methods inherited from interface org.apache.tuscany.sdo.model.Type
getInstanceClassName, getName, setName
 
Methods inherited from interface org.eclipse.emf.ecore.EClassifier
getClassifierID, getEPackage, getETypeParameters, getInstanceClass, getInstanceClassName, getInstanceTypeName, isInstance, setInstanceClass, setInstanceClassName, setInstanceTypeName
 
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

aliasNames

protected List aliasNames
Constructor Detail

DataTypeImpl

protected DataTypeImpl()

Method Detail

eStaticClass

protected org.eclipse.emf.ecore.EClass eStaticClass()

Overrides:
eStaticClass in class org.eclipse.emf.ecore.impl.EDataTypeImpl

getURI

public String getURI()

Returns:
the namespace URI.

isDataType

public boolean isDataType()

Specified by:
isDataType in interface Type
Returns:
true if Type specifies DataTypes, false for DataObjects.
See Also:
Type.isSetDataType(), Type.unsetDataType(), Type.setDataType(boolean)

isOpen

public boolean isOpen()

Specified by:
isOpen in interface Type
Returns:
true if this Type allows open content.
See Also:
Type.isSetOpen(), Type.unsetOpen(), Type.setOpen(boolean)

isSequenced

public boolean isSequenced()

Specified by:
isSequenced in interface Type
Returns:
true if this Type specifies Sequenced DataObjects.
See Also:
Type.isSetSequenced(), Type.unsetSequenced(), Type.setSequenced(boolean)

getAliasNames

public List getAliasNames()

Returns:
a list of alias names for this Type.

getDeclaredProperties

public List getDeclaredProperties()

Returns:
the Properties declared in this Type.

getProperties

public List getProperties()

Returns:
the Properties of the type.
See Also:
Property.getContainingType()

getBaseTypes

public List getBaseTypes()

Returns:
the List of base Types for this Type.

getProperty

public Property getProperty(String propertyName)

Returns:
the Property with the specified name.
See Also:
Type.getProperties()

getInstanceProperties

public List getInstanceProperties()
Description copied from interface: Type
Returns a read-only List of instance Properties available on this Type.

This list includes, at a minimum, any open content properties (extensions) added to the object before defining the Type's Type. Implementations may, but are not required to in the 2.1 version of SDO, provide additional instance properties.

Returns:
the List of instance Properties on this Type.

get

public Object get(Property property)
Description copied from interface: Type
Returns the value of the specified instance property of this Type.

Parameters:
property - one of the properties returned by Type.getInstanceProperties().
Returns:
the value of the specified property.
See Also:
DataObject.get(Property)

getBaseType

public List getBaseType()
Description copied from interface: Type
Returns the value of the 'Base Type' reference list. The list contents are of type Type.

If the meaning of the 'Base Type' reference list isn't clear, there really should be more of a description here...

Specified by:
getBaseType in interface Type
Returns:
the value of the 'Base Type' reference list.

getProperty

public List getProperty()
Description copied from interface: Type
Returns the value of the 'Property' containment reference list. The list contents are of type Property.

If the meaning of the 'Property' containment reference list isn't clear, there really should be more of a description here...

Specified by:
getProperty in interface Type
Returns:
the value of the 'Property' containment reference list.

getAliasName

public List getAliasName()
Description copied from interface: Type
Returns the value of the 'Alias Name' attribute list. The list contents are of type String.

If the meaning of the 'Alias Name' attribute list isn't clear, there really should be more of a description here...

Specified by:
getAliasName in interface Type
Returns:
the value of the 'Alias Name' attribute list.

getAny

public Sequence getAny()
Description copied from interface: Type
Returns the value of the 'Any' attribute list.

If the meaning of the 'Any' attribute list isn't clear, there really should be more of a description here...

Specified by:
getAny in interface Type
Returns:
the value of the 'Any' attribute list.

getAnyAttribute

public Sequence getAnyAttribute()
Description copied from interface: Type
Returns the value of the 'Any Attribute' attribute list.

If the meaning of the 'Any Attribute' attribute list isn't clear, there really should be more of a description here...

Specified by:
getAnyAttribute in interface Type
Returns:
the value of the 'Any Attribute' attribute list.

isAbstract

public boolean isAbstract()
Description copied from interface: Type
Indicates if this Type is abstract. If true, this Type cannot be instantiated. Abstract types cannot be used in DataObject or DataFactory create methods.

Specified by:
isAbstract in interface Type
Returns:
true if this Type is abstract.
See Also:
Type.isSetAbstract(), Type.unsetAbstract(), Type.setAbstract(boolean)

setAbstract

public void setAbstract(boolean value)
Description copied from interface: Type
Sets the value of the 'Abstract' attribute.

Specified by:
setAbstract in interface Type
Parameters:
value - the new value of the 'Abstract' attribute.
See Also:
Type.isSetAbstract(), Type.unsetAbstract(), Type.isAbstract()

isSetAbstract

public boolean isSetAbstract()
Description copied from interface: Type
Returns whether the value of the 'Abstract' attribute is set.

Specified by:
isSetAbstract in interface Type
Returns:
whether the value of the 'Abstract' attribute is set.
See Also:
Type.unsetAbstract(), Type.isAbstract(), Type.setAbstract(boolean)

unsetAbstract

public void unsetAbstract()
Description copied from interface: Type
Unsets the value of the 'Abstract' attribute.

Specified by:
unsetAbstract in interface Type
See Also:
Type.isSetAbstract(), Type.isAbstract(), Type.setAbstract(boolean)

setDataType

public void setDataType(boolean value)
Description copied from interface: Type
Sets the value of the 'Data Type' attribute.

Specified by:
setDataType in interface Type
Parameters:
value - the new value of the 'Data Type' attribute.
See Also:
Type.isSetDataType(), Type.unsetDataType(), Type.isDataType()

unsetDataType

public void unsetDataType()
Description copied from interface: Type
Unsets the value of the 'Data Type' attribute.

Specified by:
unsetDataType in interface Type
See Also:
Type.isSetDataType(), Type.isDataType(), Type.setDataType(boolean)

isSetDataType

public boolean isSetDataType()
Description copied from interface: Type
Returns whether the value of the 'Data Type' attribute is set.

Specified by:
isSetDataType in interface Type
Returns:
whether the value of the 'Data Type' attribute is set.
See Also:
Type.unsetDataType(), Type.isDataType(), Type.setDataType(boolean)

setOpen

public void setOpen(boolean value)
Description copied from interface: Type
Sets the value of the 'Open' attribute.

Specified by:
setOpen in interface Type
Parameters:
value - the new value of the 'Open' attribute.
See Also:
Type.isSetOpen(), Type.unsetOpen(), Type.isOpen()

unsetOpen

public void unsetOpen()
Description copied from interface: Type
Unsets the value of the 'Open' attribute.

Specified by:
unsetOpen in interface Type
See Also:
Type.isSetOpen(), Type.isOpen(), Type.setOpen(boolean)

isSetOpen

public boolean isSetOpen()
Description copied from interface: Type
Returns whether the value of the 'Open' attribute is set.

Specified by:
isSetOpen in interface Type
Returns:
whether the value of the 'Open' attribute is set.
See Also:
Type.unsetOpen(), Type.isOpen(), Type.setOpen(boolean)

setSequenced

public void setSequenced(boolean value)
Description copied from interface: Type
Sets the value of the 'Sequenced' attribute.

Specified by:
setSequenced in interface Type
Parameters:
value - the new value of the 'Sequenced' attribute.
See Also:
Type.isSetSequenced(), Type.unsetSequenced(), Type.isSequenced()

unsetSequenced

public void unsetSequenced()
Description copied from interface: Type
Unsets the value of the 'Sequenced' attribute.

Specified by:
unsetSequenced in interface Type
See Also:
Type.isSetSequenced(), Type.isSequenced(), Type.setSequenced(boolean)

isSetSequenced

public boolean isSetSequenced()
Description copied from interface: Type
Returns whether the value of the 'Sequenced' attribute is set.

Specified by:
isSetSequenced in interface Type
Returns:
whether the value of the 'Sequenced' attribute is set.
See Also:
Type.unsetSequenced(), Type.isSequenced(), Type.setSequenced(boolean)

unsetName

public void unsetName()
Description copied from interface: Type
Unsets the value of the 'Name' attribute.

Specified by:
unsetName in interface Type
See Also:
Type.isSetName(), Type.getName(), Type.setName(String)

isSetName

public boolean isSetName()
Description copied from interface: Type
Returns whether the value of the 'Name' attribute is set.

Specified by:
isSetName in interface Type
Returns:
whether the value of the 'Name' attribute is set.
See Also:
Type.unsetName(), Type.getName(), Type.setName(String)

unsetUri

public void unsetUri()
Description copied from interface: Type
Unsets the value of the 'Uri' attribute.

Specified by:
unsetUri in interface Type
See Also:
Type.isSetUri(), Type.getUri(), Type.setUri(String)

isSetUri

public boolean isSetUri()
Description copied from interface: Type
Returns whether the value of the 'Uri' attribute is set.

Specified by:
isSetUri in interface Type
Returns:
whether the value of the 'Uri' attribute is set.
See Also:
Type.unsetUri(), Type.getUri(), Type.setUri(String)

setUri

public void setUri(String value)
Description copied from interface: Type
Sets the value of the 'Uri' attribute.

Specified by:
setUri in interface Type
Parameters:
value - the new value of the 'Uri' attribute.
See Also:
Type.isSetUri(), Type.unsetUri(), Type.getUri()

getUri

public String getUri()
Description copied from interface: Type
Returns the value of the 'Uri' attribute.

If the meaning of the 'Uri' attribute isn't clear, there really should be more of a description here...

Specified by:
getUri in interface Type
Returns:
the value of the 'Uri' attribute.
See Also:
Type.isSetUri(), Type.unsetUri(), Type.setUri(String)


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