org.qi4j.api.property
Interface PropertyInfo

All Known Subinterfaces:
AuthenticationMethod, LogType, Property<T>, PropertyDescriptor, PropertyTypeDescriptor
All Known Implementing Classes:
AbstractPropertyInstance, ComputedPropertyInstance, GenericPropertyInfo

public interface PropertyInfo

Provide access to metadata information about a property. The Property interface extends this one, so there is always easy access to it if you have a reference to a Property.


Method Summary
 boolean isComputed()
           
 boolean isImmutable()
           
<T> T
metaInfo(Class<T> infoType)
          Access metadata about the property with a given type.
 QualifiedName qualifiedName()
          Get the qualified name of the property which is equal to:
:
 Type type()
          Get the type of the property.
 

Method Detail

isImmutable

boolean isImmutable()

isComputed

boolean isComputed()

metaInfo

<T> T metaInfo(Class<T> infoType)
Access metadata about the property with a given type. The info is registered for the property during assembly of the application.

Parameters:
infoType - the type of the metadata to return
Returns:
a metadata object that implements the requested type or null if none is registered

qualifiedName

QualifiedName qualifiedName()
Get the qualified name of the property which is equal to:
:

Returns:
the qualified name of the property

type

Type type()
Get the type of the property. If the property is declared as Property then X is returned.

Returns:
the property type