|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdods.clients.importwizard.DodsURL
public class DodsURL
A DodsURL
stores information about a Dods URL. More
specifially, it stores the base url, the constraint expression, the
type of URL, and what class is need to get further information from
the URL. It should be used over String
to represent
Dods URLs whenever possible.
Field Summary | |
---|---|
static int |
CATALOG_URL
|
static int |
DATA_URL
|
protected static String |
DEFAULT_CATALOG_PROCESSOR
|
protected static String |
DEFAULT_DATA_PROCESSOR
|
protected static String |
DEFAULT_DIRECTORY_PROCESSOR
|
static int |
DIRECTORY_URL
|
Constructor Summary | |
---|---|
DodsURL()
Create an empty DodsURL . |
|
DodsURL(DodsURL dodsURL)
Create a DodsURL by copying an existing DodsURL |
|
DodsURL(String dodsURL,
int type)
Create a DodsURL with a specific base URL of type
type . |
|
DodsURL(String dodsURL,
int type,
String processorName)
Create a DodsURL with a specific base URL of type
type . |
|
DodsURL(String dodsURL,
String dodsCE)
Create a DodsURL with a specific base URL and constraint
expression. |
Method Summary | |
---|---|
String |
getBaseURL()
Returns the base URL of the DodsURL. |
String |
getConstraintExpression()
Returns the CE of the DodsURL. |
String |
getFullURL()
Concatenates the baseURL and the constraint expression to get the full Dods URL. |
String |
getProcessorName()
Returns the name of the class needed to further process the URL. |
String |
getTitle()
Returns the title, if any, of the URL. |
int |
getType()
Returns the type of the URL. |
boolean |
hasBeenProcessed()
Returns true if the URL has been processed yet, false otherwise. |
void |
setConstraintExpression(String dodsCE)
Set the constraint expression for the URL. |
void |
setProcessed(boolean isDoneProcessing)
Set whether or not the URL has been processed. |
void |
setProcessorName(String className)
Set the name of the class needed to process the URL. |
void |
setTitle(String urlTitle)
Set the title of the URL. |
void |
setType(int type)
Set the type of the URL. |
void |
setURL(String dodsURL)
Set the base URL |
String |
toString()
Create a string representation of the URL. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static int DATA_URL
public static int DIRECTORY_URL
public static int CATALOG_URL
protected static String DEFAULT_DATA_PROCESSOR
protected static String DEFAULT_DIRECTORY_PROCESSOR
protected static String DEFAULT_CATALOG_PROCESSOR
Constructor Detail |
---|
public DodsURL()
DodsURL
.
public DodsURL(DodsURL dodsURL)
DodsURL
by copying an existing DodsURL
dodsURL
- The url to copy.public DodsURL(String dodsURL, String dodsCE)
DodsURL
with a specific base URL and constraint
expression. This url is assumed to be a DATA_URL, and it uses the
default DATA_URL processor.
dodsURL
- The base url.dodsCE
- The constraint expression.public DodsURL(String dodsURL, int type)
DodsURL
with a specific base URL of type
type
. The constraint expression is set to an empty string
and the urlProcessor is set to the default for the give type.
dodsURL
- The base url.type
- The type of URL.public DodsURL(String dodsURL, int type, String processorName)
DodsURL
with a specific base URL of type
type
. The constraint expression is set to an empty string
and the urlProcessor is set to processorName
.
dodsURL
- The base url.type
- The type of URL.processorName
- The name of the class needed to further process
the URL.Method Detail |
---|
public String getBaseURL()
public String getConstraintExpression()
public String getFullURL()
public String getProcessorName()
public String getTitle()
public int getType()
public boolean hasBeenProcessed()
public String toString()
toString
in class Object
public void setConstraintExpression(String dodsCE)
dodsCE
- The constraint expression.public void setProcessorName(String className)
className
- the name of the class needed to process the URL.public void setProcessed(boolean isDoneProcessing)
DodsURLList
class (as well as others) to let the
user know which urls have had a constraint expression applied
isDoneProcessing
- Whether or not the URL has been processed.public void setTitle(String urlTitle)
urlTitle
- The title of the URL.public void setType(int type)
type.
- Parameters:
type
- The type of URL.
public void setURL(String dodsURL)
dodsURL
- the base URL.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |