Class PerspectiveModule
- java.lang.Object
- 
- com.inductiveautomation.perspective.common.PerspectiveModule
 
- 
 public class PerspectiveModule extends java.lang.ObjectContains common configuration and const definitions for things like module ID, and also provides a registry for components.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classPerspectiveModule.WellKnownIds
 - 
Field SummaryFields Modifier and Type Field Description static java.lang.StringLOG_PREFIXstatic JsonSchemaMETA_SCHEMAstatic java.lang.StringMODULE_IDstatic JsonSchemaSESSION_PROPS_SCHEMAstatic JsonSchemaVIEW_SCHEMA
 - 
Constructor SummaryConstructors Constructor Description PerspectiveModule()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static com.inductiveautomation.ignition.common.gson.GsoncreatePerspectiveCompatibleGson()Creates a Gson instance with the correct type adapters registered to serialize and deserialize viewsstatic com.inductiveautomation.ignition.common.gson.GsoncreatePerspectiveCompatibleGson(java.util.function.Consumer<com.inductiveautomation.ignition.common.gson.GsonBuilder> customize)Creates a Gson instance with the correct type adapters registered to serialize and deserialize viewsstatic com.inductiveautomation.ignition.common.gson.JsonObjectdefaultMetaProps()static com.inductiveautomation.ignition.common.gson.JsonObjectdefaultSessionProps()static com.inductiveautomation.ignition.common.gson.JsonObjectdefaultViewProps()static LoggerExgetLogger(java.lang.String name)
 
- 
- 
- 
Field Detail- 
MODULE_IDpublic static final java.lang.String MODULE_ID - See Also:
- Constant Field Values
 
 - 
LOG_PREFIXpublic static final java.lang.String LOG_PREFIX - See Also:
- Constant Field Values
 
 - 
SESSION_PROPS_SCHEMApublic static final JsonSchema SESSION_PROPS_SCHEMA 
 - 
VIEW_SCHEMApublic static final JsonSchema VIEW_SCHEMA 
 - 
META_SCHEMApublic static final JsonSchema META_SCHEMA 
 
- 
 - 
Method Detail- 
getLoggerpublic static LoggerEx getLogger(java.lang.String name) 
 - 
createPerspectiveCompatibleGson@Nonnull public static com.inductiveautomation.ignition.common.gson.Gson createPerspectiveCompatibleGson() Creates a Gson instance with the correct type adapters registered to serialize and deserialize views
 - 
createPerspectiveCompatibleGson@Nonnull public static com.inductiveautomation.ignition.common.gson.Gson createPerspectiveCompatibleGson(java.util.function.Consumer<com.inductiveautomation.ignition.common.gson.GsonBuilder> customize) Creates a Gson instance with the correct type adapters registered to serialize and deserialize views
 - 
defaultMetaPropspublic static com.inductiveautomation.ignition.common.gson.JsonObject defaultMetaProps() - Returns:
- the default object parsed from the common meta-schema resource.
 
 - 
defaultViewPropspublic static com.inductiveautomation.ignition.common.gson.JsonObject defaultViewProps() - Returns:
- the default object parsed from the common view-props-schema resource.
 
 - 
defaultSessionPropspublic static com.inductiveautomation.ignition.common.gson.JsonObject defaultSessionProps() - Returns:
- the default object parsed from the common session-props schema resource.
 
 
- 
 
-