Package de.smartics.properties.api.core.annotations

Package class diagram package de.smartics.properties.api.core.annotations
Provides annotations to attach metadata to properties.

See:
          Description

Class Summary
PropertyLifecycle.UpdateInterval Defines constants for the PropertyLifecycle.updateInterval().
 

Enum Summary
AccessType Defines the type of the access to properties.
PropertyDefinitionTime Defines the different times the definition of a property is conducted.
 

Annotation Types Summary
PropertyElementType Defines the value type of a collection property value.
PropertyExpression Defines a default expression for the property to evaluate a value, if not specified otherwise.
PropertyIntValueRange Defines the range of valid integer values of a property.
PropertyKeyName Defines a name of a property key.
PropertyLifecycle Defines the lifecycle of a property.
PropertyListElementConstraints Flags a nested interface as defining constraints for property list elements.
PropertyMetaDataMethod Declares a method to return meta data instead of a property value.
PropertySet Defines a set of properties.
PropertyStringValueRange Defines the range of valid string values of a property.
 

Package de.smartics.properties.api.core.annotations Description

Provides annotations to attach metadata to properties.

The central annotation to declare a property set is PropertySet.

The following annotations allow to declare properties and their metadata:

  1. PropertyKeyName - specify the name of the property to override the default.
  2. PropertyLifecycle - specify definition time, access type and update interval of a property.
  3. PropertyExpression - specify a default value or a resolvable expression for a property value.
  4. PropertyMetaDataMethod - tag a method to return a PropertyKey or PropertyDescriptor explicitly.
  5. Property Ranges
    1. PropertyIntValueRange - specify a range of integer values to select from.
    2. PropertyStringValueRange - specify a range of string values to select from.
    3. Note: If elements are to be taken from an enumeration, simply state the enum type as return value. Defaults may be set by their string representation.
  6. List Properties
    1. PropertyElementType - specify type of an element (if it is not a String) since generics information is not available at runtime.
    2. PropertyListElementConstraints - specify constraints on a list element.

Since:
1.0


Copyright © 2012-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.