Class ProjectManifest
java.lang.Object
com.inductiveautomation.ignition.common.project.ProjectManifest
- All Implemented Interfaces:
Serializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionProjectManifest
(String title, String description, boolean enabled, boolean inheritable, String parent) -
Method Summary
Modifier and TypeMethodDescriptioncopy()
Create a copy of thisProjectManifest
.copy
(Consumer<ProjectManifest.Builder> consumer) Create a copy of thisProjectManifest
, allowing for modifications to take place prior via the consumedProjectManifest.Builder
.boolean
static ProjectManifest
fromGson
(com.inductiveautomation.ignition.common.gson.JsonElement json) Decode aJsonElement
containing aProjectManifest
.static ProjectManifest
Decode a String containing a JSON-encodedProjectManifest
.getTitle()
int
hashCode()
boolean
boolean
static ProjectManifest.Builder
Create a newProjectManifest.Builder
.Create a newProjectManifest.Builder
pre-set with all the values from thisProjectManifest
.static com.inductiveautomation.ignition.common.gson.JsonObject
toGson
(ProjectManifest manifest) Encode aProjectManifest
into aJsonObject
.static String
toJson
(ProjectManifest manifest) Encode aProjectManifest
into a pretty-printed JSON String.
-
Field Details
-
PROJECT_MANIFEST_FILE_NAME
- See Also:
-
-
Constructor Details
-
ProjectManifest
-
-
Method Details
-
getTitle
-
getDescription
-
getParent
-
isEnabled
public boolean isEnabled() -
isInheritable
public boolean isInheritable() -
copy
Create a copy of thisProjectManifest
.- Returns:
- a copy of this
ProjectManifest
.
-
copy
Create a copy of thisProjectManifest
, allowing for modifications to take place prior via the consumedProjectManifest.Builder
.- Parameters:
consumer
- theProjectManifest.Builder
consumer.- Returns:
- a copy of this
ProjectManifest
.
-
toBuilder
Create a newProjectManifest.Builder
pre-set with all the values from thisProjectManifest
.- Returns:
- a new
ProjectManifest.Builder
pre-set with all the values from thisProjectManifest
.
-
equals
-
hashCode
public int hashCode() -
fromGson
public static ProjectManifest fromGson(com.inductiveautomation.ignition.common.gson.JsonElement json) Decode aJsonElement
containing aProjectManifest
.- Parameters:
json
- aJsonElement
containing a JSON-encodedProjectManifest
.- Returns:
- a
ProjectManifest
.
-
fromJson
Decode a String containing a JSON-encodedProjectManifest
.- Parameters:
json
- a String containing a JSON-encodedProjectManifest
.- Returns:
- a
ProjectManifest
decoded fromjson
.
-
toGson
public static com.inductiveautomation.ignition.common.gson.JsonObject toGson(ProjectManifest manifest) Encode aProjectManifest
into aJsonObject
.- Parameters:
manifest
- theProjectManifest
to encode.- Returns:
- a
JsonObject
containing a JSON-encodedProjectManifest
.
-
toJson
Encode aProjectManifest
into a pretty-printed JSON String.- Parameters:
manifest
- theProjectManifest
to encode.- Returns:
- a pretty-printed JSON String encoding of
manifest
.
-
newBuilder
Create a newProjectManifest.Builder
.- Returns:
- a new
ProjectManifest.Builder
.
-