Class ProjectDiff
- java.lang.Object
-
- com.inductiveautomation.ignition.common.project.ProjectDiff
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
ProjectDiff.AbsoluteDiff
,ProjectDiff.EffectiveDiff
public abstract class ProjectDiff extends java.lang.Object implements java.io.Serializable
TheChangeOperation
s associated with a project when pulled from the Gateway.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ProjectDiff.AbsoluteDiff
An absolute diff, i.e.static class
ProjectDiff.EffectiveDiff
An effective diff, i.e.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<ChangeOperation>
getChangeOperations()
java.lang.String
getProjectName()
boolean
isAbsoluteDiff()
boolean
isEffectiveDiff()
boolean
isEmpty()
static ProjectDiff.AbsoluteDiff
newAbsoluteDiff(java.lang.String projectName, java.util.List<ChangeOperation> changeOperations)
Create anProjectDiff.AbsoluteDiff
.static ProjectDiff.EffectiveDiff
newEffectiveDiff(java.lang.String projectName, java.util.List<ChangeOperation> changeOperations)
Create anProjectDiff.EffectiveDiff
.java.lang.String
toString()
-
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
- Returns:
true
if this diff has an emptyChangeOperation
list.
-
getProjectName
public java.lang.String getProjectName()
- Returns:
- the name of the project this diff applies to.
-
getChangeOperations
public java.util.List<ChangeOperation> getChangeOperations()
- Returns:
- the list of
ChangeOperation
s comprising this diff.
-
isAbsoluteDiff
public boolean isAbsoluteDiff()
- Returns:
true
if this diff is anProjectDiff.AbsoluteDiff
.
-
isEffectiveDiff
public boolean isEffectiveDiff()
- Returns:
true
if this diff is anProjectDiff.EffectiveDiff
.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
newAbsoluteDiff
public static ProjectDiff.AbsoluteDiff newAbsoluteDiff(java.lang.String projectName, java.util.List<ChangeOperation> changeOperations)
Create anProjectDiff.AbsoluteDiff
.- Parameters:
projectName
- the name of the project the diff applies to.changeOperations
- the list ofChangeOperation
s.- Returns:
- an
ProjectDiff.AbsoluteDiff
. - See Also:
ProjectDiff.AbsoluteDiff
-
newEffectiveDiff
public static ProjectDiff.EffectiveDiff newEffectiveDiff(java.lang.String projectName, java.util.List<ChangeOperation> changeOperations)
Create anProjectDiff.EffectiveDiff
.- Parameters:
projectName
- the name of the project the diff applies to.changeOperations
- the list ofChangeOperation
s.- Returns:
- an
ProjectDiff.EffectiveDiff
. - See Also:
ProjectDiff.EffectiveDiff
-
-