public class RemoteResource
extends java.lang.Object
implements android.os.Parcelable
Modifier and Type | Class and Description |
---|---|
static class |
RemoteResource.Source
Based on Video ConnectionEntry to track if this resource came from internal or external SD
card
|
static class |
RemoteResource.Type
KML has some special treatment, e.g.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COT_TYPE |
static android.os.Parcelable.Creator<RemoteResource> |
CREATOR |
Constructor and Description |
---|
RemoteResource() |
Modifier and Type | Method and Description |
---|---|
void |
addChild(RemoteResource child) |
void |
clearChildren() |
int |
describeContents() |
boolean |
equals(java.lang.Object o) |
boolean |
equals(RemoteResource c) |
RemoteResource |
findChildByName(java.lang.String name) |
RemoteResource |
findChildByPath(java.lang.String path) |
RemoteResource |
findChildByURL(java.lang.String url) |
static RemoteResource |
fromCoT(CotEvent from) |
java.util.List<RemoteResource> |
getChildren() |
long |
getLastRefreshed() |
java.lang.String |
getLocalPath() |
java.lang.String |
getMd5() |
java.lang.String |
getName() |
RemoteResource |
getParent() |
long |
getRefreshSeconds() |
RemoteResource.Source |
getSource() |
java.lang.String |
getType() |
java.lang.String |
getUrl() |
boolean |
hasChildren() |
int |
hashCode() |
boolean |
isDeleteOnExit() |
boolean |
isKML() |
static boolean |
isKML(java.lang.String t) |
boolean |
isValid() |
void |
removeChild(RemoteResource child) |
void |
setDeleteOnExit(boolean deleteOnExit) |
void |
setLastRefreshed(long lastRefreshed) |
void |
setLocalPath(java.io.File file) |
void |
setLocalPath(java.lang.String localPath) |
void |
setMd5(java.lang.String md5) |
void |
setName(java.lang.String name) |
void |
setParent(RemoteResource parent) |
void |
setRefreshSeconds(java.lang.Float refreshSeconds) |
void |
setRefreshSeconds(long refreshSeconds) |
void |
setSource(RemoteResource.Source source) |
void |
setType(RemoteResource.Type type) |
void |
setType(java.lang.String type) |
void |
setTypeFromURL(java.lang.String url) |
void |
setUrl(java.lang.String url) |
CotEvent |
toCot(java.lang.String callsign,
CotPoint point)
converts this AssetMarker and all the information associated with it into a CotEvent
|
java.lang.String |
toString() |
void |
writeToParcel(android.os.Parcel parcel,
int flags) |
public static final java.lang.String COT_TYPE
public static final android.os.Parcelable.Creator<RemoteResource> CREATOR
public void clearChildren()
public void addChild(RemoteResource child)
public void removeChild(RemoteResource child)
public java.util.List<RemoteResource> getChildren()
public RemoteResource findChildByName(java.lang.String name)
public RemoteResource findChildByPath(java.lang.String path)
public RemoteResource findChildByURL(java.lang.String url)
public boolean hasChildren()
public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String getType()
public boolean isKML()
public static boolean isKML(java.lang.String t)
public void setType(java.lang.String type)
public void setType(RemoteResource.Type type)
public void setTypeFromURL(java.lang.String url)
public java.lang.String getUrl()
public void setUrl(java.lang.String url)
public java.lang.String getLocalPath()
public void setLocalPath(java.lang.String localPath)
public void setLocalPath(java.io.File file)
public java.lang.String getMd5()
public void setMd5(java.lang.String md5)
public boolean isDeleteOnExit()
public void setDeleteOnExit(boolean deleteOnExit)
public long getRefreshSeconds()
public void setRefreshSeconds(long refreshSeconds)
public void setRefreshSeconds(java.lang.Float refreshSeconds)
public long getLastRefreshed()
public void setLastRefreshed(long lastRefreshed)
public RemoteResource.Source getSource()
public void setSource(RemoteResource.Source source)
public void setParent(RemoteResource parent)
public RemoteResource getParent()
public boolean isValid()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public boolean equals(RemoteResource c)
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public CotEvent toCot(java.lang.String callsign, CotPoint point)
public static RemoteResource fromCoT(CotEvent from)
public int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel parcel, int flags)
writeToParcel
in interface android.os.Parcelable