Package org.cip4.lib.xjdf.util
Class Products
- java.lang.Object
-
- org.cip4.lib.xjdf.util.Products
-
public final class Products extends java.lang.ObjectProducts utility class providing Product management functionality.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T extends ProductIntent>
TgetIntent(Product product, java.lang.Class<T> productIntent)Retrieve a specific intent from a product.
-
-
-
Method Detail
-
getIntent
public static <T extends ProductIntent> T getIntent(Product product, java.lang.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.
-
-