Interface GenericComponentManagement.GenericComponentInfo

  • Enclosing interface:
    GenericComponentManagement

    public static interface GenericComponentManagement.GenericComponentInfo
    A list of related component info tuples
    • Method Detail

      • getName

        java.lang.String getName()
        The name of this category of component information.
      • getData

        GenericComponentManagement.GenericComponentInfoTuple[] getData()
        An ordered list of (name,value) tuples. For some categories the names are unique keys (for dictionary information), for others the keys may not be unique, or may all be null (essentially a list of values).
      • getDataValue

        default java.lang.String getDataValue​(java.lang.String name,
                                              java.lang.String defaultValue)
        Get the value of the tuple with the specified unique name. This is a convenience method for looking up a value from GenericComponentInfo categories that hold dictionary content, where each name is a unique key.
        Parameters:
        defaultValue - A value to be returned if the specified name has no associated (non-null) value.
        Returns:
        the value of the tuple matching the specified name, or defaultValue if not found or null. Unless defaultValue=null this method will never return a null value.
        Throws:
        java.lang.UnsupportedOperationException - if the specified name appears more than once. This method should only be used on categories where the name is a unique key.