git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JAL-4239 Using own id generation to avoid Random.nextLong() not implemented in jalviewjs
[jalview.git]
/
src
/
jalview
/
io
/
DataSourceType.java
diff --git
a/src/jalview/io/DataSourceType.java
b/src/jalview/io/DataSourceType.java
index
5d0c462
..
c983dfe
100644
(file)
--- a/
src/jalview/io/DataSourceType.java
+++ b/
src/jalview/io/DataSourceType.java
@@
-22,5
+22,15
@@
package jalview.io;
public enum DataSourceType
{
public enum DataSourceType
{
- FILE, URL, PASTE, CLASSLOADER;
+ FILE, URL, PASTE, CLASSLOADER, RELATIVE_URL;
+
+ public boolean isDynamic()
+ {
+ return this != FILE;
+ }
+
+ public boolean isUrl()
+ {
+ return this == URL || this == RELATIVE_URL;
+ }
}
}