Interface PropertyKey

All Known Implementing Classes:
BndProperties, MvnProperties, Project.Properties

public interface PropertyKey
The Interface defines the type used as key for a Project's properties. Implementations of this interface should extend Enum. See Project.Properties for an example.
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    The property's default value.
    The property's name.
    default Class<?>
    An explicitly set property type.
    default Class<?>
    The property's type.
  • Method Details

    • name

      The property's name.
      Returns:
      the string
    • type

      default Class<?> type()
      The property's type. Returns Object.class if both the property type and the default value are null.
      Returns:
      the class
    • propertyType

      default Class<?> propertyType()
      An explicitly set property type. Only required if the default value is null or the type of the default value is a derived class of the desired property type.
      Returns:
      the class
    • defaultValue

      <T> T defaultValue()
      The property's default value. This value should either not be null or propertyType() should return a non-null class.
      Type Parameters:
      T - the generic type
      Returns:
      the object