Class ExtraDFItemProperties


  • public final class ExtraDFItemProperties
    extends java.lang.Object
    Utility methods for accessing extra properties.
    Since:
    5.10
    See Also:
    ExtraDFItemProperty
    • Method Detail

      • getExtraProperty

        public static java.lang.String getExtraProperty​(DFItem item,
                                                        java.lang.Class<? extends ExtraDFItemProperty<?,​?>> extraProp)
        Gets the value of an extra property.
        Parameters:
        item - The item to read the extra property from. Usually an DFEntity or a DFField.
        extraProp - The extra property type.
        Returns:
        The extra property value or null if no property of such type can be found or if its value is not set.
      • getExtraPropertyValue

        public static <T extends DFItem,​V> V getExtraPropertyValue​(T item,
                                                                         java.lang.Class<? extends ExtraDFItemProperty<T,​V>> extraProp)
        Gets the value of an extra property.
        Type Parameters:
        T - The type of a DFItem instance, which property is requested.
        V - The requested property value type.
        Parameters:
        item - The DFItem, which property is requested. This is usually a DFEntity or a DFField.
        extraProp - The requested property descriptor.
        Returns:
        The property value or null if the property value is not set or if no such property exists.
        Since:
        6.0