public class DataModelDescriptor extends Object
Constructor and Description |
---|
DataModelDescriptor(Class<?> dataModelClass,
List<? extends PropertyDescriptor> properties)
Creates a new instance.
|
DataModelDescriptor(Class<?> dataModelClass,
String comment,
List<? extends PropertyDescriptor> properties)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
Object |
createDataModelObject()
Creates a new instance of the target data model.
|
PropertyDescriptor |
findPropertyDescriptor(String name)
Returns a property descriptor.
|
Class<?> |
getDataModelClass()
Returns the target data model class.
|
String |
getDataModelComment()
Returns comment for this data model.
|
List<? extends PropertyDescriptor> |
getPropertyDescriptors()
Returns the property descriptors in the target data model.
|
String |
toString() |
public DataModelDescriptor(Class<?> dataModelClass, List<? extends PropertyDescriptor> properties)
dataModelClass
- the data model classproperties
- the data model property descriptorspublic DataModelDescriptor(Class<?> dataModelClass, String comment, List<? extends PropertyDescriptor> properties)
dataModelClass
- the data model classcomment
- comment for the data modelproperties
- the data model property descriptorspublic Object createDataModelObject()
public Class<?> getDataModelClass()
public String getDataModelComment()
null
if it is not setpublic PropertyDescriptor findPropertyDescriptor(String name)
name
- the target property namenull
if there is no such a propertypublic List<? extends PropertyDescriptor> getPropertyDescriptors()
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.