Class ProjectResourceId
- java.lang.Object
-
- com.inductiveautomation.ignition.common.project.resource.ProjectResourceId
-
- All Implemented Interfaces:
java.io.Serializable
public class ProjectResourceId extends java.lang.Object implements java.io.SerializableUnique ID for a project resource, containing the project, module id, type id, and folder path.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringprojectNameprotected ResourcePathresourcePath
-
Constructor Summary
Constructors Constructor Description ProjectResourceId(java.lang.String project, ResourcePath resourcePath)ProjectResourceId(java.lang.String project, ResourceType resourceType, java.lang.String path)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)static ProjectResourceIdfromJson(com.inductiveautomation.ignition.common.gson.JsonElement e)java.lang.StringgetFolderPath()Shortcut for getResourcePath().getPath().toString()java.lang.StringgetProjectName()ResourcePathgetResourcePath()ResourceTypegetResourceType()inthashCode()com.inductiveautomation.ignition.common.gson.JsonObjecttoJson()java.lang.StringtoString()
-
-
-
Field Detail
-
projectName
protected java.lang.String projectName
-
resourcePath
protected ResourcePath resourcePath
-
-
Constructor Detail
-
ProjectResourceId
public ProjectResourceId(java.lang.String project, ResourceType resourceType, java.lang.String path)
-
ProjectResourceId
public ProjectResourceId(java.lang.String project, ResourcePath resourcePath)
-
-
Method Detail
-
getProjectName
public java.lang.String getProjectName()
-
getResourceType
public ResourceType getResourceType()
-
getResourcePath
public ResourcePath getResourcePath()
- Returns:
- The resource path, which is the resource type id + folder path.
-
getFolderPath
public java.lang.String getFolderPath()
Shortcut for getResourcePath().getPath().toString()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
toJson
public com.inductiveautomation.ignition.common.gson.JsonObject toJson()
-
fromJson
public static ProjectResourceId fromJson(com.inductiveautomation.ignition.common.gson.JsonElement e)
-
-