|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.plasma.sdo.helper.PlasmaTypeHelper
public class PlasmaTypeHelper
Look up a Type given the uri and typeName or interfaceClass. SDO Types are available through the getType(uri, typeName) method. Defines Types from DataObjects.
| Field Summary | |
|---|---|
static PlasmaTypeHelper |
INSTANCE
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static PlasmaTypeHelper INSTANCE
| Method Detail |
|---|
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 Type getType(Class interfaceClass)
getType in interface TypeHelperinterfaceClass - is the interface for the DataObject's Type -
type.getInstanceClass();
IllegalAccessException
IllegalArgumentExceptionpublic List<Type> getTypes(String uri)
uri - The namespace uri;
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||