public class SourceEntry extends Object
Modifier and Type | Field and Description |
---|---|
boolean |
active
active is a boolean flag that can be used to turn the style on or off
at runtime.
|
boolean |
isZip
Indicates, that
url is a zip file and the resource is
inside the zip file. |
String |
name
Name is used as a namespace for color preferences and (currently) only
one file with a name can be loaded at a time.
|
String |
title
A title that can be used as menu entry.
|
String |
url
A URL can be anything that MirroredInputStream understands, i.e.
|
String |
zipEntryPath
If
isZip is true, denotes the path inside the zip file. |
Constructor and Description |
---|
SourceEntry(SourceEntry e) |
SourceEntry(String url,
boolean isZip,
String zipEntryPath,
String name,
String title,
boolean active) |
SourceEntry(String url,
String name,
String title,
Boolean active) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getDisplayString()
String to show in menus and error messages.
|
String |
getFileNamePart()
extract file part from url, e.g.:
http://www.test.com/file.xml?
|
String |
getLocalSourceDir() |
String |
getPrefName()
the name / identifier that should be used to save custom color values
and similar stuff to the preference file
|
String |
getZipEntryDirName()
Returns the parent directory of the resource inside the zip file.
|
int |
hashCode() |
boolean |
isLocal() |
String |
toString() |
public String url
public boolean isZip
url
is a zip file and the resource is
inside the zip file.public String zipEntryPath
isZip
is true, denotes the path inside the zip file.public String name
public boolean active
public SourceEntry(String url, boolean isZip, String zipEntryPath, String name, String title, boolean active)
public SourceEntry(String url, String name, String title, Boolean active)
public SourceEntry(SourceEntry e)
public String getDisplayString()
public String getFileNamePart()
public String getPrefName()
public boolean isLocal()
public String getLocalSourceDir()
public String getZipEntryDirName()