-
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.
added header text for ScaleAllowMultiValue
- Loading branch information
Showing
9 changed files
with
167 additions
and
65 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
33 changes: 33 additions & 0 deletions
33
...otege/web/client/postcoordination/scaleValuesCard/PostCoordinationAxisToGenericScale.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,33 @@ | ||
package edu.stanford.bmir.protege.web.client.postcoordination.scaleValuesCard; | ||
|
||
public class PostCoordinationAxisToGenericScale { | ||
private final String postcoordinationAxis; | ||
private final String genericPostcoordinationScaleTopClass; | ||
private final ScaleAllowMultiValue allowMultiValue; | ||
|
||
public PostCoordinationAxisToGenericScale(String postcoordinationAxis, | ||
String genericPostcoordinationScaleTopClass, | ||
ScaleAllowMultiValue allowMultiValue) { | ||
this.postcoordinationAxis = postcoordinationAxis; | ||
this.genericPostcoordinationScaleTopClass = genericPostcoordinationScaleTopClass; | ||
this.allowMultiValue = allowMultiValue; | ||
} | ||
|
||
public PostCoordinationAxisToGenericScale create(String postcoordinationAxis, | ||
String genericPostcoordinationScaleTopClass, | ||
ScaleAllowMultiValue allowMultiValue) { | ||
return new PostCoordinationAxisToGenericScale(postcoordinationAxis, genericPostcoordinationScaleTopClass, allowMultiValue); | ||
} | ||
|
||
public String getPostcoordinationAxis() { | ||
return postcoordinationAxis; | ||
} | ||
|
||
public String getGenericPostcoordinationScaleTopClass() { | ||
return genericPostcoordinationScaleTopClass; | ||
} | ||
|
||
public ScaleAllowMultiValue getAllowMultiValue() { | ||
return allowMultiValue; | ||
} | ||
} |
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
26 changes: 26 additions & 0 deletions
26
...anford/bmir/protege/web/client/postcoordination/scaleValuesCard/ScaleAllowMultiValue.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.client.postcoordination.scaleValuesCard; | ||
|
||
public enum ScaleAllowMultiValue { | ||
NotAllowed("This does not allow multiple values"), | ||
AllowAlways("This always allows multiple values"), | ||
AllowedExceptFromSameBlock("This allows multiple values except from the same block"); | ||
|
||
private final String description; | ||
|
||
ScaleAllowMultiValue(String description) { | ||
this.description = description; | ||
} | ||
|
||
public String getBrowserTest() { | ||
return description; | ||
} | ||
|
||
public static ScaleAllowMultiValue fromString(String value) { | ||
for (ScaleAllowMultiValue scaleAllowMultiValue : ScaleAllowMultiValue.values()) { | ||
if (scaleAllowMultiValue.name().equalsIgnoreCase(value)) { | ||
return scaleAllowMultiValue; | ||
} | ||
} | ||
throw new IllegalArgumentException("Unknown value: " + value); | ||
} | ||
} |
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