Class ProductUtil

java.lang.Object
org.cip4.lib.xjdf.util.ProductUtil

public final class ProductUtil extends Object
Utility for performing reoccuring operations on products.
  • Method Details

    • getIntent

      public static <T extends ProductIntent> T getIntent(Product product, Class<T> productIntent)
      Retrieve a specific intent from a product.
      Type Parameters:
      T - Type of the intent.
      Parameters:
      product - Product te read intent from.
      productIntent - Type of the intent.
      Returns:
      Requested Intent or null if no matching intent was found.