public class PlasmaTypeHelper extends Object implements commonj.sdo.helper.TypeHelper
| Modifier and Type | Field and Description |
|---|---|
static PlasmaTypeHelper |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
commonj.sdo.Type |
define(commonj.sdo.DataObject type)
Define the DataObject as a Type.
|
List |
define(List types)
Define the list of DataObjects as Types.
|
commonj.sdo.Property |
defineOpenContentProperty(String uri,
commonj.sdo.DataObject property)
Define the DataObject as a Property for setting open content.
|
commonj.sdo.Type |
findTypeByPhysicalName(String uriPhisicalName,
String typePhysicalName)
Return the Type specified by physical typeName with the given physical uri,
or null if not found.
|
commonj.sdo.Property |
getOpenContentProperty(String uri,
String propertyName)
Get the open content (global) Property with the specified uri and name, or
null if not found.
|
commonj.sdo.Type |
getType(Class interfaceClass)
Return the Type for this interfaceClass or null if not found.
|
commonj.sdo.Type |
getType(String uri,
String typeName)
Return the Type specified by typeName with the given uri, or null if the
underlying classifier is not found.
|
List<commonj.sdo.Type> |
getTypes(String uri)
Return the Type instances specified by the given uri.
|
void |
releaseType(String uri,
String typeName)
Releases resources associated with the given type and removes it from
cache.
|
void |
releaseType(commonj.sdo.Type type)
Releases resources associated with the given type and removes it from
cache.
|
public static volatile PlasmaTypeHelper INSTANCE
public commonj.sdo.Type getType(String uri, String typeName)
getType in interface commonj.sdo.helper.TypeHelperuri - the logical uri of the Type - See Type.getURI() or
PlasmaType.getURIPhysicalName();typeName - The logical name of the Type - Type.getName() or
PlasmaType.getPhysicalName();public commonj.sdo.Type findTypeByPhysicalName(String uriPhisicalName, String typePhysicalName)
uriPhisicalName - the physical uri of the Type - See Type.getURI() or
PlasmaType.getURIPhysicalName();typeName - The logical or physical name of the Type - Type.getName() or
PlasmaType.getPhysicalName();public void releaseType(commonj.sdo.Type type)
type - the typepublic void releaseType(String uri, String typeName)
uri - The logical uri of the Type - type.getURI();typeName - The logical name of the Type - type.getName();public commonj.sdo.Type getType(Class interfaceClass)
getType in interface commonj.sdo.helper.TypeHelperinterfaceClass - is the interface for the DataObject's Type -
type.getInstanceClass();IllegalAccessExceptionIllegalArgumentExceptionpublic List<commonj.sdo.Type> getTypes(String uri)
uri - The namespace uri;public commonj.sdo.Type define(commonj.sdo.DataObject type)
define in interface commonj.sdo.helper.TypeHelpertype - the DataObject representing the Type.IllegalArgumentException - if the Type could not be defined.public List define(List types)
define in interface commonj.sdo.helper.TypeHelpertypes - a List of DataObjects representing the Types.IllegalArgumentException - if the Types could not be defined.public commonj.sdo.Property defineOpenContentProperty(String uri, commonj.sdo.DataObject property)
defineOpenContentProperty in interface commonj.sdo.helper.TypeHelperuri - the namespace URI of the open content Property or null.IllegalArgumentException - if the Property could not be defined.public commonj.sdo.Property getOpenContentProperty(String uri, String propertyName)
getOpenContentProperty in interface commonj.sdo.helper.TypeHelperuri - the namespace URI of the open content Property.propertyName - the name of the open content Property.Copyright © 2021. All rights reserved.