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

java.lang.Object
  extended by com.softwareag.centrasite.appl.framework.mapping.BeanType
Direct Known Subclasses:
ClassifiedInstanceBeanType

public class BeanType
extends java.lang.Object

Container for bean type information. Obtainable from the RegistryObjectModel.


Constructor Summary
BeanType()
           
 
Method Summary
 void addProperty(Property prop)
          Adds the given Property to the list of properties for this bean type.
static java.util.List<Property> findNestedProperty(java.util.List<BeanType> beanTypes, java.lang.String propName, RegistryObjectModel model)
          Finds the Property with the given name.
 java.util.List<Relation> findRelations()
          Returns all properties representing relations.
 MetaDataHolder getMetaDataHolder()
           
 RegistryObjectModel getModel()
           
 java.lang.Class<?> getPersistentClass()
           
 java.util.Collection<Property> getProperties()
          Returns all properties of this bean type.
 Property getProperty(java.lang.String propName)
          Finds the Property with the given name.
 javax.xml.namespace.QName getRegistryObjectType()
           
 javax.xml.registry.infomodel.Concept getRegistryObjectTypeConcept()
           
 java.lang.String getRegistryObjectTypeKey()
           
 RegistryProvider getRegistryProvider()
           
 void setMetaDataHolder(MetaDataHolder metaDataHolder)
           
 void setModel(RegistryObjectModel model)
           
 void setPersistentClass(java.lang.Class<?> persistentClass)
           
 void setRegistryObjectType(javax.xml.namespace.QName registryObjectType)
           
 void setRegistryObjectTypeConcept(javax.xml.registry.infomodel.Concept registryObjectTypeConcept)
           
 void setRegistryObjectTypeKey(java.lang.String registryObjectTypeKey)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanType

public BeanType()
Method Detail

getProperty

public Property getProperty(java.lang.String propName)
Finds the Property with the given name.

Parameters:
propName -
Returns:
Property with the given name and null if not found.

findNestedProperty

public static java.util.List<Property> findNestedProperty(java.util.List<BeanType> beanTypes,
                                                          java.lang.String propName,
                                                          RegistryObjectModel model)
Finds the Property with the given name. Supports property name also in the format prop1[.prop2]. In this case returns an instance of NestedProperty.

Parameters:
beanTypes - The root bean type to search for the property.
propName - Prop name string in the format prop1[.prop2].
model - The RegistryObjectModel to use for retrieving mapping information when traversing the nested property.
Returns:
Property

getProperties

public java.util.Collection<Property> getProperties()
Returns all properties of this bean type.

Returns:
List

addProperty

public void addProperty(Property prop)
Adds the given Property to the list of properties for this bean type.

Parameters:
prop -

findRelations

public java.util.List<Relation> findRelations()
Returns all properties representing relations. That is being instance of Relation.

Returns:
List

getPersistentClass

public java.lang.Class<?> getPersistentClass()
Returns:
the persistentClass

setPersistentClass

public void setPersistentClass(java.lang.Class<?> persistentClass)
Parameters:
persistentClass - the persistentClass to set

getRegistryObjectType

public javax.xml.namespace.QName getRegistryObjectType()
Returns:
the registryObjectType

setRegistryObjectType

public void setRegistryObjectType(javax.xml.namespace.QName registryObjectType)
Parameters:
registryObjectType - the registryObjectType to set

getRegistryObjectTypeKey

public java.lang.String getRegistryObjectTypeKey()
Returns:
the registryObjectTypeKey

setRegistryObjectTypeKey

public void setRegistryObjectTypeKey(java.lang.String registryObjectTypeKey)
Parameters:
registryObjectTypeKey - the registryObjectTypeKey to set

getModel

public RegistryObjectModel getModel()
Returns:
the model

setModel

public void setModel(RegistryObjectModel model)
Parameters:
model - the model to set

getRegistryProvider

public RegistryProvider getRegistryProvider()

getRegistryObjectTypeConcept

public javax.xml.registry.infomodel.Concept getRegistryObjectTypeConcept()
                                                                  throws CSAppFrameworkException
Throws:
CSAppFrameworkException

setRegistryObjectTypeConcept

public void setRegistryObjectTypeConcept(javax.xml.registry.infomodel.Concept registryObjectTypeConcept)
Parameters:
registryObjectTypeConcept - the registryObjectTypeConcept to set

getMetaDataHolder

public MetaDataHolder getMetaDataHolder()

setMetaDataHolder

public void setMetaDataHolder(MetaDataHolder metaDataHolder)