Class ProjectUtil
java.lang.Object
com.inductiveautomation.ignition.common.util.ProjectUtil
- 
Method SummaryModifier and TypeMethodDescriptionstatic <T> TdecodeOrCreate(ResourceType resourceType, XMLDeserializer deserializer, Class<T> clazz, Project p) Looks for a single project resource with the given module id and resource type.static <T> TdecodeOrCreate(ResourceType resourceType, XMLDeserializer deserializer, Class<T> clazz, Project p, LoggerEx log) static <T> TdecodeOrNull(ResourceType resourceType, XMLDeserializer deserializer, Class<T> clazz, Project project) static Stringstatic booleanisRunnable(ProjectManifest manifest) 
- 
Method Details- 
displayTitle
- 
decodeOrCreatepublic 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
 
- 
decodeOrCreatepublic static <T> T decodeOrCreate(ResourceType resourceType, XMLDeserializer deserializer, Class<T> clazz, Project p, LoggerEx log) throws Exception - Throws:
- Exception
 
- 
decodeOrNullpublic static <T> T decodeOrNull(ResourceType resourceType, XMLDeserializer deserializer, Class<T> clazz, Project project) throws Exception - Throws:
- Exception
 
- 
isRunnable
 
-