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 |
isPolicyCmptType(Class<?> policyModelClass)
Returns whether the given class is a generated policy component type and could be given to
getPolicyCmptType(Class) as argument without getting an
IllegalArgumentException. |
static boolean |
isProductCmptType(Class<?> productModelClass)
Returns whether the given class is a generated product type and could be given to
getProductCmptType(Class) as 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 argument without getting an
IllegalArgumentException.productModelClass - The class that may be a the implementation or the published
interface of an IProductComponent.true 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 properly annotated for a product
modelpublic 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 argument without getting an
IllegalArgumentException.policyModelClass - The class that may be a the implementation or the published interface
of an IModelObject.true 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 properly annotated for a policy
modelpublic 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 EnumType getEnumType(Class<?> enumObjectClass)
enumObjectClass - a generated Faktor-IPS enum class.EnumType describing the attributes of the given Faktor-IPS enum.Copyright © 2016. All rights reserved.