public enum IpsModel extends Enum<IpsModel>
| Modifier and Type | Method and Description |
|---|---|
static EnumType |
getEnumType(Class<?> enumObjectClass) |
static EnumType |
getEnumType(Object enumInstance) |
static PolicyCmptType |
getPolicyCmptType(Class<? extends IModelObject> policyModelClass) |
static PolicyCmptType |
getPolicyCmptType(IModelObject modelObject) |
static ProductCmptType |
getProductCmptType(Class<? extends IProductComponent> productModelClass) |
static ProductCmptType |
getProductCmptType(IProductComponent productComponent) |
static TableStructure |
getTableStructure(Class<? extends ITable<?>> tableObjectClass) |
static TableStructure |
getTableStructure(ITable<?> table) |
static Type |
getType(Class<?> modelObjectClass) |
static boolean |
isEnumType(Class<?> enumObjectClass)
Returns whether the given class is a generated enum type and can be given to
getEnumType(Class) as an argument without getting an
IllegalArgumentException. |
static boolean |
isPolicyCmptType(Class<?> policyModelClass)
Returns whether the given class is a generated policy type and can be given to
getPolicyCmptType(Class) as an argument without getting an
IllegalArgumentException. |
static boolean |
isProductCmptType(Class<?> productModelClass)
Returns whether the given class is a generated product type and can be given to
getProductCmptType(Class) as an argument without getting an
IllegalArgumentException. |
static IpsModel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IpsModel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static IpsModel[] values()
for (IpsModel c : IpsModel.values()) System.out.println(c);
public static IpsModel valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static TableStructure getTableStructure(Class<? extends ITable<?>> tableObjectClass)
tableObjectClass - a generated subclass of ITableTableStructure describing the type and columns of the given ITable
classpublic static TableStructure getTableStructure(ITable<?> table)
TableStructure describing the type and columns of the given ITablepublic static boolean isProductCmptType(Class<?> productModelClass)
getProductCmptType(Class) as an argument without getting an
IllegalArgumentException.productModelClass - the class to checktrue if the given class is a product model classpublic static ProductCmptType getProductCmptType(Class<? extends IProductComponent> productModelClass)
productModelClass - The generated class for a product component type, may be either an
implementation class of a published interface.IllegalArgumentException - if the given class is not a valid model typeisProductCmptType(Class)public static ProductCmptType getProductCmptType(IProductComponent productComponent)
IllegalArgumentException - if the class of the given product component is not properly
annotated for a product modelpublic static boolean isPolicyCmptType(Class<?> policyModelClass)
getPolicyCmptType(Class) as an argument without getting an
IllegalArgumentException.policyModelClass - the class to checktrue if the given class is a policy model classpublic static PolicyCmptType getPolicyCmptType(Class<? extends IModelObject> policyModelClass)
policyModelClass - The generated class for a policy component type, may be either an
implementation class of a published interface.IllegalArgumentException - if the given class is not a valid model typeisPolicyCmptType(Class)public static PolicyCmptType getPolicyCmptType(IModelObject modelObject)
IllegalArgumentException - if the class of the model object is not properly annotated
for a policy modelpublic static Type getType(Class<?> modelObjectClass)
IllegalArgumentException - if the given class is not properly annotated for a model
typepublic static boolean isEnumType(Class<?> enumObjectClass)
getEnumType(Class) as an argument without getting an
IllegalArgumentException.enumObjectClass - the class to checktrue if the given class is an enum model classpublic static EnumType getEnumType(Class<?> enumObjectClass)
enumObjectClass - a generated Faktor-IPS enum classEnumType describing the attributes of the given Faktor-IPS enumIllegalArgumentException - if the given class is not a valid model typeisEnumType(Class)public static EnumType getEnumType(Object enumInstance)
EnumType describing the attributes of the given Faktor-IPS enum.IllegalArgumentException - if the given object's class is not properly annotated for a
model typeCopyright © 2020. All rights reserved.