public class BeanType
extends java.lang.Object
RegistryObjectModel
.Constructor and Description |
---|
BeanType() |
Modifier and Type | Method and Description |
---|---|
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()
Returns the meta data holder.
|
RegistryObjectModel |
getModel()
Returns the registry object model.
|
java.lang.Class<?> |
getPersistentClass()
Returns the persistent class.
|
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()
Returns the registry object type.
|
Concept |
getRegistryObjectTypeConcept()
Returns the registry object type.
|
java.lang.String |
getRegistryObjectTypeKey()
Returns the registry object type key.
|
RegistryProvider |
getRegistryProvider()
Returns the registry provider object of the model.
|
void |
setMetaDataHolder(MetaDataHolder metaDataHolder)
Sets the meta data holder.
|
void |
setModel(RegistryObjectModel model)
Sets the registry object model.
|
void |
setPersistentClass(java.lang.Class<?> persistentClass)
Sets the persistent class.
|
void |
setRegistryObjectType(javax.xml.namespace.QName registryObjectType)
Sets the registry object type.
|
void |
setRegistryObjectTypeConcept(Concept registryObjectTypeConcept)
Returns the registry object type.
|
void |
setRegistryObjectTypeKey(java.lang.String registryObjectTypeKey)
Sets the registry object type key.
|
public Property getProperty(java.lang.String propName)
Property
with the given name.propName
- the property name.Property
with the given name and null if not found.public static java.util.List<Property> findNestedProperty(java.util.List<BeanType> beanTypes, java.lang.String propName, RegistryObjectModel model)
Property
with the given name. Supports property name
also in the format prop1[.prop2]. In this case returns an instance of
NestedProperty
.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.public java.util.Collection<Property> getProperties()
List
public void addProperty(Property prop)
Property
to the list of properties for this bean
type.prop
- the given Property
object.public java.util.List<Relation> findRelations()
Relation
.List
object.public java.lang.Class<?> getPersistentClass()
public void setPersistentClass(java.lang.Class<?> persistentClass)
persistentClass
- the persistentClass to setpublic javax.xml.namespace.QName getRegistryObjectType()
public void setRegistryObjectType(javax.xml.namespace.QName registryObjectType)
registryObjectType
- the registryObjectType to setpublic java.lang.String getRegistryObjectTypeKey()
public void setRegistryObjectTypeKey(java.lang.String registryObjectTypeKey)
registryObjectTypeKey
- the registryObjectTypeKey to setpublic RegistryObjectModel getModel()
public void setModel(RegistryObjectModel model)
model
- the model to setpublic RegistryProvider getRegistryProvider()
public Concept getRegistryObjectTypeConcept() throws CSAppFrameworkException
CSAppFrameworkException
- if an internal error occurs.public void setRegistryObjectTypeConcept(Concept registryObjectTypeConcept)
registryObjectTypeConcept
- the registryObjectTypeConcept to setpublic MetaDataHolder getMetaDataHolder()
public void setMetaDataHolder(MetaDataHolder metaDataHolder)
metaDataHolder
- the meta data holder.