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.booleanstatic ProjectManifestfromGson(com.inductiveautomation.ignition.common.gson.JsonElement json) Decode aJsonElementcontaining aProjectManifest.static ProjectManifestDecode a String containing a JSON-encodedProjectManifest.getTitle()inthashCode()booleanbooleanstatic ProjectManifest.BuilderCreate a newProjectManifest.Builder.Create a newProjectManifest.Builderpre-set with all the values from thisProjectManifest.static com.inductiveautomation.ignition.common.gson.JsonObjecttoGson(ProjectManifest manifest) Encode aProjectManifestinto aJsonObject.static StringtoJson(ProjectManifest manifest) Encode aProjectManifestinto 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.Builderconsumer.- Returns:
- a copy of this
ProjectManifest.
-
toBuilder
Create a newProjectManifest.Builderpre-set with all the values from thisProjectManifest.- Returns:
- a new
ProjectManifest.Builderpre-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 aJsonElementcontaining aProjectManifest.- Parameters:
json- aJsonElementcontaining a JSON-encodedProjectManifest.- Returns:
- a
ProjectManifest.
-
fromJson
Decode a String containing a JSON-encodedProjectManifest.- Parameters:
json- a String containing a JSON-encodedProjectManifest.- Returns:
- a
ProjectManifestdecoded fromjson.
-
toGson
public static com.inductiveautomation.ignition.common.gson.JsonObject toGson(ProjectManifest manifest) Encode aProjectManifestinto aJsonObject.- Parameters:
manifest- theProjectManifestto encode.- Returns:
- a
JsonObjectcontaining a JSON-encodedProjectManifest.
-
toJson
Encode aProjectManifestinto a pretty-printed JSON String.- Parameters:
manifest- theProjectManifestto encode.- Returns:
- a pretty-printed JSON String encoding of
manifest.
-
newBuilder
Create a newProjectManifest.Builder.- Returns:
- a new
ProjectManifest.Builder.
-