Class ComponentConfig
- java.lang.Object
- 
- com.inductiveautomation.perspective.common.config.ComponentConfig
 
- 
 public class ComponentConfig extends java.lang.ObjectA Gson serializable representation of a Component definition.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classComponentConfig.RuntimeGsonAdapterstatic classComponentConfig.StandardGsonAdapterCustom GSON serializer used to omit empty stuff to keep the serialized components small as possible.
 - 
Field SummaryFields Modifier and Type Field Description java.util.List<ComponentConfig>childrenA component may have children.static java.lang.reflect.TypeCOMPONENT_LIST_TYPE_TOKENcom.inductiveautomation.ignition.common.gson.JsonObjectcustomCustom properties associated with the component, with similar structure topropsEventConfigeventsContains configuration for how to respond to events.com.inductiveautomation.ignition.common.gson.JsonObjectmetaMeta properties associated with the component, with similar structure toprops.com.inductiveautomation.ignition.common.gson.JsonObjectpositionPositional properties associated with the component, generally specific to a single instance of a component.PropertyConfigCollectionpropConfigContains configuration associated with specific properties, e.g.com.inductiveautomation.ignition.common.gson.JsonObjectpropsA map of properties that this component has, where the key is the property key, and the Object represents the value of the property, of an arbitrary type.ScriptConfigscriptsContains scripting configuration for the component like custom methods and message handlers.java.lang.StringtypeThe type of component, as defined when registering the PerspectiveComponentConfig meta object in the client.longversionThe version of this component.
 - 
Constructor SummaryConstructors Constructor Description ComponentConfig()ComponentConfig(long version, java.lang.String type, com.inductiveautomation.ignition.common.gson.JsonObject props, com.inductiveautomation.ignition.common.gson.JsonObject custom, com.inductiveautomation.ignition.common.gson.JsonObject meta, com.inductiveautomation.ignition.common.gson.JsonObject position, EventConfig events, PropertyConfigCollection propConfig, ScriptConfig scripts, java.util.List<ComponentConfig> children)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.StringgetName()inthashCode()java.lang.StringtoString()
 
- 
- 
- 
Field Detail- 
versionpublic long version The version of this component.
 - 
typepublic java.lang.String type The type of component, as defined when registering the PerspectiveComponentConfig meta object in the client.
 - 
propspublic com.inductiveautomation.ignition.common.gson.JsonObject props A map of properties that this component has, where the key is the property key, and the Object represents the value of the property, of an arbitrary type. Values may be a simple primitive value, or represent its own document shape with deeper structure. These properties are generally specific to the component type.
 - 
custompublic com.inductiveautomation.ignition.common.gson.JsonObject custom Custom properties associated with the component, with similar structure toprops
 - 
metapublic com.inductiveautomation.ignition.common.gson.JsonObject meta Meta properties associated with the component, with similar structure toprops. In general, all components have the same set of meta properties.
 - 
positionpublic com.inductiveautomation.ignition.common.gson.JsonObject position Positional properties associated with the component, generally specific to a single instance of a component.
 - 
eventspublic EventConfig events Contains configuration for how to respond to events.
 - 
propConfigpublic PropertyConfigCollection propConfig Contains configuration associated with specific properties, e.g. bindings, persistence, etc.
 - 
scriptspublic ScriptConfig scripts Contains scripting configuration for the component like custom methods and message handlers.
 - 
childrenpublic java.util.List<ComponentConfig> children A component may have children. This list represents the children of the component.
 - 
COMPONENT_LIST_TYPE_TOKENpublic static final java.lang.reflect.Type COMPONENT_LIST_TYPE_TOKEN 
 
- 
 - 
Constructor Detail- 
ComponentConfigpublic ComponentConfig() 
 - 
ComponentConfigpublic ComponentConfig(long version, java.lang.String type, com.inductiveautomation.ignition.common.gson.JsonObject props, com.inductiveautomation.ignition.common.gson.JsonObject custom, com.inductiveautomation.ignition.common.gson.JsonObject meta, com.inductiveautomation.ignition.common.gson.JsonObject position, EventConfig events, PropertyConfigCollection propConfig, ScriptConfig scripts, java.util.List<ComponentConfig> children)
 
- 
 - 
Method Detail- 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
getNamepublic java.lang.String getName() 
 - 
equalspublic boolean equals(java.lang.Object o) - Overrides:
- equalsin class- java.lang.Object
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 
- 
 
-