Package jetbrains.mps.generator.plan
Class CheckpointIdentity
- java.lang.Object
 - 
- jetbrains.mps.generator.plan.CheckpointIdentity
 
 
- 
public final class CheckpointIdentity extends Object
Provisional way to identify checkpoint within a generation plan without resorting to String. FIXME Once I've got a better idea what I can use to identify CP, this class likely shall become an interface with hashCode/equals, persistence and presentation contract, likePlanIdentity. Or a final class if there's only 1 way to identify CP. It seems there's no difference in Checkpoint vs CheckpointIdentity (both are presentation and persistence strings). However, I keep them separate for few reasons: (a) there's PlanIdentity as I can't persist ModelGenerationPlan, so would be strange to identify CP with (PlanIdentity,Checkpoint) (b) I might want to expose MGP from Checkpoint (parent/child hierarchy), which would not be possible for persistent cp identity- Since:
 - 3.4
 
 
- 
- 
Constructor Summary
Constructors Constructor Description CheckpointIdentity(PlanIdentity plan, String cpName) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetName()StringgetPersistenceValue()Not sure I need this one as part of identity interface.PlanIdentitygetPlan()inthashCode()StringtoString() 
 - 
 
- 
- 
Constructor Detail
- 
CheckpointIdentity
public CheckpointIdentity(@NotNull PlanIdentity plan, @NotNull String cpName)
 
 - 
 
- 
Method Detail
- 
getPersistenceValue
@NotNull public String getPersistenceValue()
Not sure I need this one as part of identity interface. Perhaps, identity string could be specified explicitly in a GP model (with default == toPersistentValue(name)).- Returns:
 - value one can safely write e.g. in a file system.
 
 
- 
getPlan
public PlanIdentity getPlan()
 
 - 
 
 -