-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changed call for the logical definitions superclass ancestors to GetC…
…lassAncestorsWithLinearizationAction.
- Loading branch information
Showing
6 changed files
with
114 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
...va/edu/stanford/bmir/protege/web/shared/icd/GetClassAncestorsWithLinearizationAction.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package edu.stanford.bmir.protege.web.shared.icd; | ||
|
||
import com.fasterxml.jackson.annotation.*; | ||
import com.google.auto.value.AutoValue; | ||
import com.google.common.annotations.GwtCompatible; | ||
import edu.stanford.bmir.protege.web.shared.dispatch.Action; | ||
import edu.stanford.bmir.protege.web.shared.project.ProjectId; | ||
import org.semanticweb.owlapi.model.IRI; | ||
|
||
import static edu.stanford.bmir.protege.web.shared.icd.GetClassAncestorsWithLinearizationAction.CHANNEL; | ||
|
||
@AutoValue | ||
@GwtCompatible(serializable = true) | ||
@JsonTypeName(CHANNEL) | ||
public abstract class GetClassAncestorsWithLinearizationAction implements Action<GetClassAncestorsWithLinearizationResult> { | ||
|
||
public final static String CHANNEL = "webprotege.entities.GetClassAncestorsWithLinearization"; | ||
|
||
@JsonCreator | ||
public static GetClassAncestorsWithLinearizationAction create(@JsonProperty("classIri") IRI classIri, | ||
@JsonProperty("projectId") ProjectId projectId) { | ||
return new AutoValue_GetClassAncestorsWithLinearizationAction(classIri, projectId); | ||
} | ||
|
||
public abstract IRI getClassIri(); | ||
public abstract ProjectId getProjectId(); | ||
} |
26 changes: 26 additions & 0 deletions
26
...va/edu/stanford/bmir/protege/web/shared/icd/GetClassAncestorsWithLinearizationResult.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package edu.stanford.bmir.protege.web.shared.icd; | ||
|
||
import com.fasterxml.jackson.annotation.*; | ||
import com.google.auto.value.AutoValue; | ||
import com.google.common.annotations.GwtCompatible; | ||
import edu.stanford.bmir.protege.web.shared.dispatch.Result; | ||
import edu.stanford.bmir.protege.web.shared.entity.OWLEntityData; | ||
|
||
import java.util.List; | ||
|
||
import static edu.stanford.bmir.protege.web.shared.icd.GetClassAncestorsWithLinearizationAction.CHANNEL; | ||
|
||
|
||
@AutoValue | ||
@GwtCompatible(serializable = true) | ||
@JsonTypeName(CHANNEL) | ||
public abstract class GetClassAncestorsWithLinearizationResult implements Result { | ||
|
||
@JsonProperty("ancestorsWithLinearization") | ||
public abstract List<OWLEntityData> getAncestorsWithLinearization(); | ||
|
||
@JsonCreator | ||
public static GetClassAncestorsWithLinearizationResult create(@JsonProperty("ancestorsWithLinearization") List<OWLEntityData> ancestorsWithLinearization ) { | ||
return new AutoValue_GetClassAncestorsWithLinearizationResult(ancestorsWithLinearization); | ||
} | ||
} |