Class Util
- java.lang.Object
-
- fi.tut.mei.resdescapi.rdtoontoapi.Util
-
public class Util extends Object
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Util()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Object
convert(Class<?> targetType, String value)
convert a value in string to a target typestatic String
fixIfCategory(fi.tut.mei.resdescapi.rdapi.model.rd.InterfaceCategoryST val)
static Boolean
isEmpty(String str)
if string is emptystatic String
removeWhiteSpace(String str)
remove all white spaces
-
-
-
Field Detail
-
RESOURCE_INTERFACE_NS
public static final String RESOURCE_INTERFACE_NS
- See Also:
- Constant Field Values
-
PREFIX_RESOURCE_INTERFACE
public static final String PREFIX_RESOURCE_INTERFACE
- See Also:
- Constant Field Values
-
PREFIX_CAPABILITY
public static final String PREFIX_CAPABILITY
- See Also:
- Constant Field Values
-
CLASS_INTERFACE_DEFINITION
public static final String CLASS_INTERFACE_DEFINITION
- See Also:
- Constant Field Values
-
CLASS_STANDARD_BODY_INFO
public static final String CLASS_STANDARD_BODY_INFO
- See Also:
- Constant Field Values
-
CLASS_IF_STANDARD
public static final String CLASS_IF_STANDARD
- See Also:
- Constant Field Values
-
CLASS_IF_CHARACTERISTIC
public static final String CLASS_IF_CHARACTERISTIC
- See Also:
- Constant Field Values
-
CLASS_IF_CLASS
public static final String CLASS_IF_CLASS
- See Also:
- Constant Field Values
-
CLASS_IF_OPTION
public static final String CLASS_IF_OPTION
- See Also:
- Constant Field Values
-
CLASS_IF_PROPERTY_VALUE
public static final String CLASS_IF_PROPERTY_VALUE
- See Also:
- Constant Field Values
-
CLASS_IF_STD_CHARACTERISTIC
public static final String CLASS_IF_STD_CHARACTERISTIC
- See Also:
- Constant Field Values
-
CLASS_IF_STD_CLASS
public static final String CLASS_IF_STD_CLASS
- See Also:
- Constant Field Values
-
CLASS_IF_STD_OPTION
public static final String CLASS_IF_STD_OPTION
- See Also:
- Constant Field Values
-
CLASS_IF_STD_PROPERTY_VALUE
public static final String CLASS_IF_STD_PROPERTY_VALUE
- See Also:
- Constant Field Values
-
CLASS_ORDERED_VALUE
public static final String CLASS_ORDERED_VALUE
- See Also:
- Constant Field Values
-
CLASS_PERFORMANCE
public static final String CLASS_PERFORMANCE
- See Also:
- Constant Field Values
-
CLASS_CATALOGUE
public static final String CLASS_CATALOGUE
- See Also:
- Constant Field Values
-
CLASS_INTERFACE_PURPOSE
public static final String CLASS_INTERFACE_PURPOSE
- See Also:
- Constant Field Values
-
PREFIX_CHARACTERISTIC_CLASS
public static final String PREFIX_CHARACTERISTIC_CLASS
- See Also:
- Constant Field Values
-
PREFIX_CHARACTERISTIC_OPTION
public static final String PREFIX_CHARACTERISTIC_OPTION
- See Also:
- Constant Field Values
-
PREFIX_CHARACTERISTIC_PROPERTY_VALUE
public static final String PREFIX_CHARACTERISTIC_PROPERTY_VALUE
- See Also:
- Constant Field Values
-
PROPERTY_DATATYPE_NAME
public static final String PROPERTY_DATATYPE_NAME
- See Also:
- Constant Field Values
-
PROPERTY_DATATYPE_LABEL
public static final String PROPERTY_DATATYPE_LABEL
- See Also:
- Constant Field Values
-
PROPERTY_DATATYPE_COMMENT
public static final String PROPERTY_DATATYPE_COMMENT
- See Also:
- Constant Field Values
-
PROPERTY_DATATYPE_DESCRIPTION
public static final String PROPERTY_DATATYPE_DESCRIPTION
- See Also:
- Constant Field Values
-
PROPERTY_DATATYPE_URL
public static final String PROPERTY_DATATYPE_URL
- See Also:
- Constant Field Values
-
PROPERTY_DATATYPE_STD_CODE_FULL
public static final String PROPERTY_DATATYPE_STD_CODE_FULL
- See Also:
- Constant Field Values
-
PROPERTY_DATATYPE_STD_CODE
public static final String PROPERTY_DATATYPE_STD_CODE
- See Also:
- Constant Field Values
-
PROPERTY_DATATYPE_STD_PART
public static final String PROPERTY_DATATYPE_STD_PART
- See Also:
- Constant Field Values
-
PROPERTY_DATATYPE_VERSION
public static final String PROPERTY_DATATYPE_VERSION
- See Also:
- Constant Field Values
-
PROPERTY_DATATYPE_YEAR
public static final String PROPERTY_DATATYPE_YEAR
- See Also:
- Constant Field Values
-
PROPERTY_DATATYPE_IF_GENDER
public static final String PROPERTY_DATATYPE_IF_GENDER
- See Also:
- Constant Field Values
-
PROPERTY_DATATYPE_IF_CATEGORY
public static final String PROPERTY_DATATYPE_IF_CATEGORY
- See Also:
- Constant Field Values
-
PROPERTY_DATATYPE_OCCURRENCE_MIN
public static final String PROPERTY_DATATYPE_OCCURRENCE_MIN
- See Also:
- Constant Field Values
-
PROPERTY_DATATYPE_OCCURRENCE_MAX
public static final String PROPERTY_DATATYPE_OCCURRENCE_MAX
- See Also:
- Constant Field Values
-
PROPERTY_DATATYPE_VALUE
public static final String PROPERTY_DATATYPE_VALUE
- See Also:
- Constant Field Values
-
PROPERTY_DATATYPE_IF_COMPATIBILITY
public static final String PROPERTY_DATATYPE_IF_COMPATIBILITY
- See Also:
- Constant Field Values
-
PROPERTY_DATATYPE_VALUE_NUM
public static final String PROPERTY_DATATYPE_VALUE_NUM
- See Also:
- Constant Field Values
-
PROPERTY_DATATYPE_VALUE_NUM_DEFAULT
public static final String PROPERTY_DATATYPE_VALUE_NUM_DEFAULT
- See Also:
- Constant Field Values
-
PROPERTY_DATATYPE_VALUE_NUM_MIN
public static final String PROPERTY_DATATYPE_VALUE_NUM_MIN
- See Also:
- Constant Field Values
-
PROPERTY_DATATYPE_VALUE_NUM_MAX
public static final String PROPERTY_DATATYPE_VALUE_NUM_MAX
- See Also:
- Constant Field Values
-
PROPERTY_DATATYPE_IF_REQ_OPT
public static final String PROPERTY_DATATYPE_IF_REQ_OPT
- See Also:
- Constant Field Values
-
PROPERTY_DATATYPE_IEC61131_DATATYPE
public static final String PROPERTY_DATATYPE_IEC61131_DATATYPE
- See Also:
- Constant Field Values
-
PROPERTY_DATATYPE_SEQNBR
public static final String PROPERTY_DATATYPE_SEQNBR
- See Also:
- Constant Field Values
-
PROPERTY_DATATYPE_ENTITY_ID
public static final String PROPERTY_DATATYPE_ENTITY_ID
- See Also:
- Constant Field Values
-
PROPERTY_FUNCTIONAL_CYCLE_TIME_AVERAGE
public static final String PROPERTY_FUNCTIONAL_CYCLE_TIME_AVERAGE
- See Also:
- Constant Field Values
-
PROPERTY_ID_PERFORMANCE
public static final String PROPERTY_ID_PERFORMANCE
- See Also:
- Constant Field Values
-
LINKING_IMPLEMENTS_STD
public static final String LINKING_IMPLEMENTS_STD
- See Also:
- Constant Field Values
-
LINKING_HAS_STD_BODY
public static final String LINKING_HAS_STD_BODY
- See Also:
- Constant Field Values
-
LINKING_HAS_INTERFACE
public static final String LINKING_HAS_INTERFACE
- See Also:
- Constant Field Values
-
LINKING_HAS_PERFORMANCE
public static final String LINKING_HAS_PERFORMANCE
- See Also:
- Constant Field Values
-
LINKING_HAS_IF_CHARACTERISTIC
public static final String LINKING_HAS_IF_CHARACTERISTIC
- See Also:
- Constant Field Values
-
LINKING_HAS_IF_STD_CHARACTERISTIC
public static final String LINKING_HAS_IF_STD_CHARACTERISTIC
- See Also:
- Constant Field Values
-
LINKING_HAS_PARENT_IF_STD_CHARACTERISTIC
public static final String LINKING_HAS_PARENT_IF_STD_CHARACTERISTIC
- See Also:
- Constant Field Values
-
LINKING_HAS_ORDERED_VALUE
public static final String LINKING_HAS_ORDERED_VALUE
- See Also:
- Constant Field Values
-
LINKING_CONTAINS_RESOURCE
public static final String LINKING_CONTAINS_RESOURCE
- See Also:
- Constant Field Values
-
LINKING_BELONGS_TO_CATALOGUE
public static final String LINKING_BELONGS_TO_CATALOGUE
- See Also:
- Constant Field Values
-
LINKING_HAS_PURPOSE
public static final String LINKING_HAS_PURPOSE
- See Also:
- Constant Field Values
-
TAG_NAME_MASS
public static final String TAG_NAME_MASS
- See Also:
- Constant Field Values
-
TAG_NAME_DIMENSION_X
public static final String TAG_NAME_DIMENSION_X
- See Also:
- Constant Field Values
-
TAG_NAME_DIMENSION_Y
public static final String TAG_NAME_DIMENSION_Y
- See Also:
- Constant Field Values
-
TAG_NAME_DIMENSION_Z
public static final String TAG_NAME_DIMENSION_Z
- See Also:
- Constant Field Values
-
SYMBOL_METER
public static final String SYMBOL_METER
- See Also:
- Constant Field Values
-
IF_CATEGORY_VALUE_REMOVING
public static final String IF_CATEGORY_VALUE_REMOVING
- See Also:
- Constant Field Values
-
-
Method Detail
-
removeWhiteSpace
public static String removeWhiteSpace(String str)
remove all white spaces- Parameters:
str
- string without white space- Returns:
-
convert
public static Object convert(Class<?> targetType, String value)
convert a value in string to a target type- Parameters:
targetType
- a target typevalue
- value in string- Returns:
-
fixIfCategory
public static String fixIfCategory(fi.tut.mei.resdescapi.rdapi.model.rd.InterfaceCategoryST val)
-
-