public class RegistryObjectModel
extends java.lang.Object
Constructor and Description |
---|
RegistryObjectModel(RegistryProvider registryProvider)
Create a registry object model.
|
Modifier and Type | Method and Description |
---|---|
void |
addBeanType(java.lang.Class<?> persistentClass,
BeanType beanType)
Adds a bean type meta information for the given persistent class.
|
boolean |
contains(java.lang.Class<?> persistentClass)
Checks if this model contains meta information for the given persistent
class.
|
BeanType[] |
getAllBeanTypes(javax.xml.namespace.QName objectTypeName)
Retrieves all known
BeanType -s supporting the given registry object type. |
BeanType[] |
getAllBeanTypes(javax.xml.registry.infomodel.RegistryObject ro)
Retrieves all known
BeanType -s supporting the given registry object. |
BeanType |
getBeanType(java.lang.Class<?> persistentClass)
Retrieves the bean type meta information for the given persistent class.
|
BeanType |
getBeanType(javax.xml.namespace.QName objectTypeName)
Retrieves the
BeanType of the given registry object type. |
BeanType |
getBeanType(javax.xml.registry.infomodel.RegistryObject ro)
Retrieves the
BeanType of the given registry object. |
BeanType |
getBeanType(javax.xml.registry.infomodel.RegistryObject ro,
java.util.List<?> classes)
Retrieves the
BeanType of the given registry object from a list of classes. |
java.util.Collection<BeanType> |
getBeanTypes()
Retrieves the bean type meta information for all registered bean types.
|
RegistryProvider |
getRegistryProvider()
Returns the registry provider.
|
void |
setRegistryProvider(RegistryProvider registryProvider)
Sets the registry provider.
|
public RegistryObjectModel(RegistryProvider registryProvider)
registryProvider
- the registry provider.public BeanType getBeanType(java.lang.Class<?> persistentClass)
persistentClass
- Java bean type mapped to a registry object type.BeanType
public void addBeanType(java.lang.Class<?> persistentClass, BeanType beanType)
persistentClass
- the persistent class.beanType
- the bean type.public boolean contains(java.lang.Class<?> persistentClass)
persistentClass
- the persistent class.true
if it contains.public BeanType[] getAllBeanTypes(javax.xml.registry.infomodel.RegistryObject ro) throws CSAppFrameworkException
BeanType
-s supporting the given registry object.
Prefer ClassifiedInstance types (which can be virtual types).ro
- the registry object.CSAppFrameworkException
- if an internal error occurs on getting all bean types.public BeanType getBeanType(javax.xml.registry.infomodel.RegistryObject ro) throws CSAppFrameworkException
BeanType
of the given registry object.ro
- the registry object.CSAppFrameworkException
- if an internal error occurs on getting bean type.public BeanType getBeanType(javax.xml.registry.infomodel.RegistryObject ro, java.util.List<?> classes) throws CSAppFrameworkException
BeanType
of the given registry object from a list of classes.ro
- the registry object.classes
- the list of classes.CSAppFrameworkException
- if an internal error occurs.public BeanType getBeanType(javax.xml.namespace.QName objectTypeName) throws CSAppFrameworkException
BeanType
of the given registry object type.objectTypeName
- the type name.CSAppFrameworkException
- if an internal error occurs.public BeanType[] getAllBeanTypes(javax.xml.namespace.QName objectTypeName) throws CSAppFrameworkException
BeanType
-s supporting the given registry object type.objectTypeName
- the type name.CSAppFrameworkException
- if an internal error occurs.public java.util.Collection<BeanType> getBeanTypes()
public RegistryProvider getRegistryProvider()
public void setRegistryProvider(RegistryProvider registryProvider)
registryProvider
- the registryProvider to set