public class DataModelDescriptorBuilder extends Object
DataModelDescriptor
.Constructor and Description |
---|
DataModelDescriptorBuilder(Class<?> dataModelClass)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
DataModelDescriptor |
build()
Builds a
DataModelDescriptor . |
DataModelDescriptorBuilder |
comment(String string)
Sets comment for the target data model.
|
static DataModelDescriptorBuilder |
of(Class<?> dataModelClass)
Creates a new instance.
|
DataModelDescriptorBuilder |
property(PropertyDescriptor descriptor)
Adds a property descriptor for the target data model.
|
public DataModelDescriptorBuilder(Class<?> dataModelClass)
dataModelClass
- the target data model classpublic static DataModelDescriptorBuilder of(Class<?> dataModelClass)
dataModelClass
- the target data model classpublic DataModelDescriptorBuilder comment(String string)
string
- the comment stringpublic DataModelDescriptorBuilder property(PropertyDescriptor descriptor)
descriptor
- the property descriptorpublic DataModelDescriptor build()
DataModelDescriptor
.Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.