|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthelp.de.smartics.properties.core.PropertyTypeBuilder
public final class PropertyTypeBuilder
Builds instances of PropertyType
s for tests.
Field Summary | |
---|---|
static Class<?> |
DEFAULT_SCALAR_ELEMENT_TYPE |
static Class<?> |
DEFAULT_SCALAR_TYPE |
Method Summary | |
---|---|
static PropertyTypeBuilder |
a() Creates a builder filled with default values. |
PropertyType |
build() Creates the instance. |
PropertyTypeBuilder |
but() Clones the builder. |
static PropertyType |
defaultPropertyType() Creates a default instance filled with default values. |
PropertyTypeBuilder |
withElementType(Class<?> elementType) Sets the Java type of the elements of the property if the #getType()type is a collection type. |
PropertyTypeBuilder |
withType(Class<?> type) Sets the Java type of the property. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Class<?> DEFAULT_SCALAR_TYPE
public static final Class<?> DEFAULT_SCALAR_ELEMENT_TYPE
Method Detail |
---|
public PropertyTypeBuilder withType(Class<?> type)
type
- the Java type of the property.
public PropertyTypeBuilder withElementType(Class<?> elementType)
#getType()type
is a collection type. The value is derived from the value specified as
PropertyElementType
.
elementType
- the Java type of the elements of the property if the
#getType()type
is a collection type.
public static PropertyType defaultPropertyType()
DEFAULT_SCALAR_TYPE
,
DEFAULT_SCALAR_ELEMENT_TYPE
public static PropertyTypeBuilder a()
DEFAULT_SCALAR_TYPE
,
DEFAULT_SCALAR_ELEMENT_TYPE
public PropertyTypeBuilder but()
public PropertyType build()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |