Class PropertyType
- java.lang.Object
-
- com.inductiveautomation.ignition.common.config.PropertyType
-
- All Implemented Interfaces:
Localized
,java.io.Serializable
public class PropertyType extends java.lang.Object implements java.io.Serializable, Localized
This represents a simple type system that is a bridge between documents/json which aren't very strongly typed, and our/java's type system, mostly for the purpose of storing/using properties. Many properties are well known, meaning statically defined and registered such that we know exactly what the type should be. But if not, we have to derive a type. In other places, we want to be able to specify a type for an arbitrary property,and this will be the list of options we allow.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static PropertyType
Array
static PropertyType
Boolean
static PropertyType
Dataset
static PropertyType
Document
static PropertyType
Numeric
static PropertyType
String
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PropertyType
getFor(java.lang.Class<?> clazz)
java.lang.Class<?>
getJavaType()
java.lang.String
toString()
java.lang.String
toString(java.util.Locale locale)
static PropertyType[]
values()
-
-
-
Field Detail
-
Numeric
public static final PropertyType Numeric
-
Boolean
public static final PropertyType Boolean
-
String
public static final PropertyType String
-
Array
public static final PropertyType Array
-
Document
public static final PropertyType Document
-
Dataset
public static final PropertyType Dataset
-
-
Method Detail
-
getJavaType
public java.lang.Class<?> getJavaType()
-
getFor
public static PropertyType getFor(java.lang.Class<?> clazz)
-
toString
public java.lang.String toString(java.util.Locale locale)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
values
public static PropertyType[] values()
-
-