public class PlasmaTypeHelper extends Object implements TypeHelper
| Modifier and Type | Field and Description |
|---|---|
static PlasmaTypeHelper |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.
|
List<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(Type type)
Releases resources associated with the given type and removes it
from cache.
|
public static volatile PlasmaTypeHelper INSTANCE
public Type define(DataObject type)
define in interface TypeHelpertype - the DataObject representing the Type.IllegalArgumentException - if the Type could not be defined.public List define(List types)
define in interface TypeHelpertypes - a List of DataObjects representing the Types.IllegalArgumentException - if the Types could not be defined.public Property defineOpenContentProperty(String uri, DataObject property)
defineOpenContentProperty in interface TypeHelperuri - the namespace URI of the open content Property or null.IllegalArgumentException - if the Property could not be defined.public Property getOpenContentProperty(String uri, String propertyName)
getOpenContentProperty in interface TypeHelperuri - the namespace URI of the open content Property.propertyName - the name of the open content Property.public Type getType(String uri, String typeName)
getType in interface TypeHelperuri - The uri of the Type - type.getURI();typeName - The name of the Type - type.getName();public void releaseType(Type type)
type - the typepublic void releaseType(String uri, String typeName)
uri - The uri of the Type - type.getURI();typeName - The name of the Type - type.getName();public Type getType(Class interfaceClass)
getType in interface TypeHelperinterfaceClass - is the interface for the DataObject's Type -
type.getInstanceClass();IllegalAccessExceptionIllegalArgumentExceptionCopyright © 2017. All rights reserved.