Enum PropertyType

java.lang.Object
java.lang.Enum<PropertyType>
com.solibri.smc.api.model.PropertyType
All Implemented Interfaces:
Serializable, Comparable<PropertyType>, java.lang.constant.Constable

public enum PropertyType
extends Enum<PropertyType>
Represents the data type of a property.
Since:
9.10.2
  • Enum Constant Details

  • Method Details

    • values

      public static PropertyType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      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 name
      NullPointerException - 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