Package com.solibri.smc.api.model
Enum PropertyType
- java.lang.Object
-
- java.lang.Enum<PropertyType>
-
- com.solibri.smc.api.model.PropertyType
-
- All Implemented Interfaces:
Serializable
,Comparable<PropertyType>
public enum PropertyType extends Enum<PropertyType>
Represents the data type of a property.- Since:
- 9.10.2
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AREA
BOOLEAN
DATE
DATE_TIME
DOUBLE
INT
LENGTH
PERCENTAGE
PLANE_ANGLE
SOLID_ANGLE
STRING
TIME
UNKNOWN
VOLUME
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<?>
getDataType()
Returns the data type class of this property type.Format
getFormat()
Returns the format for this property type.boolean
isNumberType()
Returns true if this property type is a number type.static PropertyType
valueOf(String name)
Returns the enum constant of this type with the specified name.static PropertyType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BOOLEAN
public static final PropertyType BOOLEAN
-
INT
public static final PropertyType INT
-
DOUBLE
public static final PropertyType DOUBLE
-
DATE
public static final PropertyType DATE
-
DATE_TIME
public static final PropertyType DATE_TIME
-
STRING
public static final PropertyType STRING
-
AREA
public static final PropertyType AREA
-
LENGTH
public static final PropertyType LENGTH
-
PERCENTAGE
public static final PropertyType PERCENTAGE
-
PLANE_ANGLE
public static final PropertyType PLANE_ANGLE
-
SOLID_ANGLE
public static final PropertyType SOLID_ANGLE
-
TIME
public static final PropertyType TIME
-
VOLUME
public static final PropertyType VOLUME
-
UNKNOWN
public static final PropertyType UNKNOWN
-
-
Method Detail
-
values
public static PropertyType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PropertyType c : PropertyType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PropertyType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getDataType
public Class<?> getDataType()
Returns the data type class of this property type.- Returns:
- the data type class of this property type
- Since:
- 9.10.2
-
isNumberType
public boolean isNumberType()
Returns true if this property type is a number type.- Returns:
- true if this property type is a number type
- Since:
- 9.10.2
-
getFormat
public Format getFormat()
Returns the format for this property type.The formatting and units used in the returned format depend on the units selected in the application preferences.
- Returns:
- the format for this property type
- Since:
- 9.10.2
-
-