|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectma.glasnost.orika.metadata.Property.Builder
public static class Property.Builder
Builder is used to construct immutable Property instances
| Constructor Summary | |
|---|---|
Property.Builder()
Creates a new Property.Builder |
|
Property.Builder(Type<?> owningType,
String name)
Creates a new Property.Builder for the specified owning type and property name |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Property.Builder(Type<?> owningType,
String name)
owningType - name - public Property.Builder()
| Method Detail |
|---|
public String toString()
toString in class Objectpublic Property.Builder merge(Property property)
property -
public static Property.Builder propertyFor(Type<?> owningType,
String name)
owningType - the owning typename - the new property's name
public static Property.Builder propertyFor(Class<?> owningType,
String name)
owningType - the owning typename - the new property's name
public static Property.Builder propertyFor(String owningTypeDescriptor,
String name)
owningTypeDescriptor - a type-descriptor string describing the owning typename - the new property's name
public 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 set
public 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 -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||