|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tuscany.sdo.helper.TypeHelperImpl
public class TypeHelperImpl
Look up a Type given the uri and typeName or interfaceClass. SDO Types are available through the getType("commonj.sdo", typeName) method. Defines Types from DataObjects.
Field Summary | |
---|---|
protected static Set |
builtInModels
|
protected HelperContext |
helperContext
|
static String |
TUSCANY_NO_URI
|
Fields inherited from interface commonj.sdo.helper.TypeHelper |
---|
INSTANCE |
Constructor Summary | |
---|---|
TypeHelperImpl(HelperContext hc)
|
Method Summary | |
---|---|
protected void |
addPropertyInstanceProperties(Property definedProperty,
DataObject modeledProperty)
|
protected void |
addTypeInstanceProperties(Type definedType,
DataObject modeledType)
|
Type |
define(DataObject type)
Define the DataObject as a Type. |
List |
define(List types)
Define the list of DataObjects as Types. |
Property |
defineOpenContentProperty(String uri,
DataObject property)
Define the DataObject as a Property for setting open content. |
static Set |
getBuiltInModels()
|
protected Property |
getDefinedProperty(Property modeledProperty)
|
protected Type |
getDefinedType(Type modeledType)
|
org.eclipse.emf.ecore.util.ExtendedMetaData |
getExtendedMetaData()
|
HelperContext |
getHelperContext()
|
Property |
getOpenContentProperty(String uri,
String propertyName)
Get the open content (global) Property with the specified uri and name, or null if not found. |
Type |
getType(Class interfaceClass)
Return the Type for this interfaceClass or null if not found. |
Type |
getType(String uri,
String typeName)
Return the Type specified by typeName with the given uri, or null if not found. |
protected void |
initializeProperty(Property newProperty,
Property modeledProperty)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected HelperContext helperContext
protected static Set builtInModels
public static final String TUSCANY_NO_URI
Constructor Detail |
---|
public TypeHelperImpl(HelperContext hc)
Method Detail |
---|
public static Set getBuiltInModels()
public org.eclipse.emf.ecore.util.ExtendedMetaData getExtendedMetaData()
public Type getType(String uri, String typeName)
TypeHelper
getType
in interface TypeHelper
uri
- The uri of the Type - type.getURI();typeName
- The name of the Type - type.getName();
public Type getType(Class interfaceClass)
TypeHelper
getType
in interface TypeHelper
interfaceClass
- is the interface for the DataObject's Type -
type.getInstanceClass();
public Type define(DataObject type)
TypeHelper
define
in interface TypeHelper
type
- the DataObject representing the Type.
protected void addTypeInstanceProperties(Type definedType, DataObject modeledType)
protected void addPropertyInstanceProperties(Property definedProperty, DataObject modeledProperty)
public List define(List types)
TypeHelper
define
in interface TypeHelper
types
- a List of DataObjects representing the Types.
protected Type getDefinedType(Type modeledType)
protected Property getDefinedProperty(Property modeledProperty)
protected void initializeProperty(Property newProperty, Property modeledProperty)
public Property defineOpenContentProperty(String uri, DataObject property)
TypeHelper
defineOpenContentProperty
in interface TypeHelper
uri
- the namespace URI of the open content Property or null.
public Property getOpenContentProperty(String uri, String propertyName)
TypeHelper
getOpenContentProperty
in interface TypeHelper
uri
- the namespace URI of the open content Property.propertyName
- the name of the open content Property.
public HelperContext getHelperContext()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |