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.MetaInfoHolder
public String name()
public org.qi4j.api.common.QualifiedName qualifiedName()
qualifiedName
in interface org.qi4j.api.property.PropertyDescriptor
qualifiedName
in interface PropertyInfo
public Type type()
type
in interface org.qi4j.api.property.PropertyDescriptor
type
in interface PropertyInfo
public AccessibleObject accessor()
accessor
in interface org.qi4j.api.property.PropertyDescriptor
public org.qi4j.api.type.ValueType valueType()
valueType
in interface org.qi4j.api.property.PropertyDescriptor
public boolean isImmutable()
isImmutable
in interface org.qi4j.api.property.PropertyDescriptor
isImmutable
in interface PropertyInfo
public PropertyInfo getBuilderInfo()
public boolean queryable()
queryable
in interface org.qi4j.api.property.PropertyDescriptor
public Object initialValue(org.qi4j.api.structure.Module module)
initialValue
in interface org.qi4j.api.property.PropertyDescriptor
public 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 Throwable
public void checkConstraints(Object value) throws org.qi4j.api.constraint.ConstraintViolationException
checkConstraints
in interface ConstraintsCheck
org.qi4j.api.constraint.ConstraintViolationException