com.softwareag.centrasite.appl.framework.mapping
Class RegistryObjectModel

java.lang.Object
  extended by com.softwareag.centrasite.appl.framework.mapping.RegistryObjectModel

public class RegistryObjectModel
extends java.lang.Object

Specification of a registry object model used by CSAF. Contains meta information for all managed persistent Java classes.


Constructor Summary
RegistryObjectModel(RegistryProvider registryProvider)
          Create a registry object model
 
Method Summary
 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()
           
 void setRegistryProvider(RegistryProvider registryProvider)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegistryObjectModel

public RegistryObjectModel(RegistryProvider registryProvider)
Create a registry object model

Parameters:
registryProvider -
Method Detail

getBeanType

public BeanType getBeanType(java.lang.Class<?> persistentClass)
Retrieves the bean type meta information for the given persistent class.

Parameters:
persistentClass - Java bean type mapped to a registry object type.
Returns:
BeanType

addBeanType

public void addBeanType(java.lang.Class<?> persistentClass,
                        BeanType beanType)
Adds a bean type meta information for the given persistent class.

Parameters:
persistentClass -
beanType -

contains

public boolean contains(java.lang.Class<?> persistentClass)
Checks if this model contains meta information for the given persistent class.

Parameters:
persistentClass -
Returns:
boolean

getAllBeanTypes

public BeanType[] getAllBeanTypes(javax.xml.registry.infomodel.RegistryObject ro)
                           throws CSAppFrameworkException
Retrieves all known BeanType-s supporting the given registry object. Prefer ClassifiedInstance types (which can be virtual types).

Parameters:
ro -
Returns:
bean types
Throws:
CSAppFrameworkException

getBeanType

public BeanType getBeanType(javax.xml.registry.infomodel.RegistryObject ro)
                     throws CSAppFrameworkException
Retrieves the BeanType of the given registry object.

Parameters:
ro -
Returns:
bean type
Throws:
CSAppFrameworkException

getBeanType

public BeanType getBeanType(javax.xml.registry.infomodel.RegistryObject ro,
                            java.util.List<?> classes)
                     throws CSAppFrameworkException
Retrieves the BeanType of the given registry object from a list of classes.

Parameters:
ro - the registry object
classes - the list of classes
Returns:
bean type
Throws:
CSAppFrameworkException

getBeanType

public BeanType getBeanType(javax.xml.namespace.QName objectTypeName)
                     throws CSAppFrameworkException
Retrieves the BeanType of the given registry object type.

Parameters:
objectTypeName - the typename
Returns:
bean type
Throws:
CSAppFrameworkException

getAllBeanTypes

public BeanType[] getAllBeanTypes(javax.xml.namespace.QName objectTypeName)
                           throws CSAppFrameworkException
Retrieves all known BeanType-s supporting the given registry object type.

Parameters:
objectTypeName - the typename
Returns:
bean types
Throws:
CSAppFrameworkException

getBeanTypes

public java.util.Collection<BeanType> getBeanTypes()
Retrieves the bean type meta information for all registered bean types.

Returns:
all bean types

getRegistryProvider

public RegistryProvider getRegistryProvider()
Returns:
the registryProvider

setRegistryProvider

public void setRegistryProvider(RegistryProvider registryProvider)
Parameters:
registryProvider - the registryProvider to set