| Constructor and Description |
|---|
Builder()
Creates a new Property.Builder
|
Builder(Type<?> owningType,
String name)
Creates a new Property.Builder for the specified owning type and
property name
|
| Modifier and Type | Method and Description |
|---|---|
Property |
build()
Builds the property
|
Property |
build(PropertyResolver propertyResolver)
Builds the property, using the specified proeprtyResolver to validate
the property settings
|
Property.Builder |
container(Property container) |
Property.Builder |
elementType(Type<?> elementType)
Set the element type
|
Property.Builder |
expression(String expression)
Sets the expression
|
Method |
getReadMethod()
Get the getter/accessor method
|
Property.Builder |
getter(Method readMethod)
Set the getter/accessor method
|
Property.Builder |
getter(String getter) |
Method |
getWriteMethod()
Get the setter/mutator method
|
Property.Builder |
merge(Property property)
Merges the attributes of the specified property into this one
|
Property.Builder |
name(String name)
Set the name
|
Property.Builder |
nestedProperty(String name)
Creates a new nested property builder (with this builder as the
owner) for the specified name
|
protected Property.Builder |
owningType(Type<?> owningType)
Sets the owning type
|
Property.Builder |
path(Property[] path) |
static Property.Builder |
propertyFor(Class<?> owningType,
String name)
Creates a new property builder for the specified owningType and name
|
static Property.Builder |
propertyFor(String owningTypeDescriptor,
String name)
Creates a new property builder for the specified owningType
descriptor and name
|
static Property.Builder |
propertyFor(Type<?> owningType,
String name)
Creates a new property builder for the specified owningType and name
|
Property.Builder |
setter(Method writeMethod)
Set the setter/mutator method
|
Property.Builder |
setter(String setter) |
String |
toString() |
Property.Builder |
type(String typeName)
Set the type by name
|
Property.Builder |
type(Type type)
Set the type
|
public Builder(Type<?> owningType, String name)
owningType - name - public Builder()
public Property.Builder merge(Property property)
property - public static Property.Builder propertyFor(Type<?> owningType, String name)
owningType - the owning typename - the new property's namepublic static Property.Builder propertyFor(Class<?> owningType, String name)
owningType - the owning typename - the new property's namepublic static Property.Builder propertyFor(String owningTypeDescriptor, String name)
owningTypeDescriptor - a type-descriptor string describing the owning typename - the new property's namepublic Property.Builder nestedProperty(String name)
name - public Property.Builder container(Property container)
container - the container to setpublic Property.Builder path(Property[] path)
path - the path to setpublic Property.Builder getter(String getter)
getter - the getter to setpublic Property.Builder setter(String setter)
setter - the setter to setpublic Property.Builder expression(String expression)
expression - public Property.Builder name(String name)
name - public Property.Builder type(Type type)
type - public Property.Builder type(String typeName)
typeName - public Property.Builder elementType(Type<?> elementType)
elementType - public Property.Builder getter(Method readMethod)
readMethod - public Method getReadMethod()
public Method getWriteMethod()
public Property.Builder setter(Method writeMethod)
writeMethod - protected Property.Builder owningType(Type<?> owningType)
owningType - public Property build()
public Property build(PropertyResolver propertyResolver)
propertyResolver - Copyright © 2019 Glasnost. All rights reserved.