public class PropertyModel extends Object implements org.qi4j.api.property.PropertyDescriptor, PropertyInfo, Binder, org.qi4j.functional.Visitable<PropertyModel>
Equality is based on the Property accessor object (property type and name), not on the QualifiedName.
| Modifier and Type | Field and Description |
|---|---|
protected PropertyInfo |
builderInfo |
protected org.qi4j.api.common.MetaInfo |
metaInfo |
| Constructor and Description |
|---|
PropertyModel(AccessibleObject accessor,
boolean immutable,
boolean useDefaults,
ValueConstraintsInstance constraints,
org.qi4j.api.common.MetaInfo metaInfo,
Object initialValue) |
| Modifier and Type | Method and Description |
|---|---|
<ThrowableType extends Throwable> |
accept(org.qi4j.functional.Visitor<? super PropertyModel,ThrowableType> visitor) |
AccessibleObject |
accessor() |
void |
bind(Resolution resolution) |
void |
checkConstraints(Object value) |
boolean |
equals(Object o) |
PropertyInfo |
getBuilderInfo() |
int |
hashCode() |
Object |
initialValue(org.qi4j.api.structure.Module module) |
boolean |
isImmutable() |
<T> T |
metaInfo(Class<T> infoType) |
String |
name() |
org.qi4j.api.common.QualifiedName |
qualifiedName() |
boolean |
queryable() |
String |
toString() |
Type |
type() |
org.qi4j.api.type.ValueType |
valueType() |
protected final org.qi4j.api.common.MetaInfo metaInfo
protected PropertyInfo builderInfo
public PropertyModel(AccessibleObject accessor, boolean immutable, boolean useDefaults, ValueConstraintsInstance constraints, org.qi4j.api.common.MetaInfo metaInfo, Object initialValue)
public <T> T metaInfo(Class<T> infoType)
metaInfo in interface org.qi4j.api.structure.MetaInfoHolderpublic String name()
public org.qi4j.api.common.QualifiedName qualifiedName()
qualifiedName in interface org.qi4j.api.property.PropertyDescriptorqualifiedName in interface PropertyInfopublic Type type()
type in interface org.qi4j.api.property.PropertyDescriptortype in interface PropertyInfopublic AccessibleObject accessor()
accessor in interface org.qi4j.api.property.PropertyDescriptorpublic org.qi4j.api.type.ValueType valueType()
valueType in interface org.qi4j.api.property.PropertyDescriptorpublic boolean isImmutable()
isImmutable in interface org.qi4j.api.property.PropertyDescriptorisImmutable in interface PropertyInfopublic PropertyInfo getBuilderInfo()
public boolean queryable()
queryable in interface org.qi4j.api.property.PropertyDescriptorpublic Object initialValue(org.qi4j.api.structure.Module module)
initialValue in interface org.qi4j.api.property.PropertyDescriptorpublic void bind(Resolution resolution) throws org.qi4j.bootstrap.BindingException
public <ThrowableType extends Throwable> boolean accept(org.qi4j.functional.Visitor<? super PropertyModel,ThrowableType> visitor) throws ThrowableType extends Throwable
accept in interface org.qi4j.functional.Visitable<PropertyModel>ThrowableType extends Throwablepublic void checkConstraints(Object value) throws org.qi4j.api.constraint.ConstraintViolationException
checkConstraints in interface ConstraintsCheckorg.qi4j.api.constraint.ConstraintViolationException