T
- Built type.public abstract class MetaBuilder<T extends WithMetaClass> extends Object implements Builder<T>
Modifier and Type | Method and Description |
---|---|
MetaClass<T> |
getMetaClass()
Returns the metaclass of the object to build.
|
MetaBuilder<T> |
set(MetaFlag<? super T> flag,
boolean value)
Sets a flag value.
|
<V> MetaBuilder<T> |
set(MetaProperty<? super T,V> property,
V value)
Sets a property value.
|
public final <V> MetaBuilder<T> set(MetaProperty<? super T,V> property, V value)
property
- Property to set.value
- Value to set.IllegalArgumentException
- if the property is not defined for the meta class.IllegalArgumentException
- If the value is not allowed for the property.IllegalStateException
- If the value has already been set.public final MetaBuilder<T> set(MetaFlag<? super T> flag, boolean value)
flag
- Flag to set.value
- Value to set.IllegalArgumentException
- if the property is not defined for the meta class.IllegalArgumentException
- If the value is not allowed for the property.IllegalStateException
- If the value has already been set.Copyright © 2014 Derquinse Projects. All rights reserved.