java.lang.Object
com.inductiveautomation.ignition.common.util.ProjectUtil

public class ProjectUtil extends Object
  • Method Details

    • displayTitle

      public static String displayTitle(Project p)
    • decodeOrCreate

      public static <T> T decodeOrCreate(ResourceType resourceType, XMLDeserializer deserializer, Class<T> clazz, Project p) throws Exception
      Looks for a single project resource with the given module id and resource type. If such a resource exists, it is deserialized into the desired class. If not, a new instance of the desired class is created by calling clazz.newInstance()
      Parameters:
      resourceType - The resource type for the project resource to look for.
      deserializer - An XML Deserializer to use to deserialize the project resource, if it is found.
      clazz - The desired type. Any serialized object of the found resource must be one of these.
      Throws:
      Exception
    • decodeOrCreate

      public static <T> T decodeOrCreate(ResourceType resourceType, XMLDeserializer deserializer, Class<T> clazz, Project p, LoggerEx log) throws Exception
      Throws:
      Exception
    • decodeOrNull

      public static <T> T decodeOrNull(ResourceType resourceType, XMLDeserializer deserializer, Class<T> clazz, Project project) throws Exception
      Throws:
      Exception
    • isRunnable

      public static boolean isRunnable(ProjectManifest manifest)