public class URLEntryModel extends ModelObject
This class may be instantiated or subclassed by clients. However, in most cases clients should instead instantiate or subclass the provided concrete implementation of this model.
Note: This class/interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
URLEntry
Constructor and Description |
---|
URLEntryModel()
Creates a uninitialized annotated URL model object.
|
Modifier and Type | Method and Description |
---|---|
String |
getAnnotation()
Returns the url annotation.
|
String |
getAnnotationNonLocalized()
returns the non-localized url annotation.
|
int |
getType()
Returns the specified type.
|
URL |
getURL()
Returns the resolved URL.
|
String |
getURLString()
Returns the unresolved url string.
|
void |
resolve(URL base,
URL bundleURL)
Resolve the model object.
|
void |
setAnnotation(String annotation)
Sets the annotation.
|
void |
setType(int i)
Method setType.
|
void |
setURLString(String urlString)
Sets the url string
Throws a runtime exception if this object is marked read-only.
|
arrayTypeFor, arrayTypeFor, assertIsWriteable, getPropertyName, getResourceBundle, isReadOnly, markListReferenceReadOnly, markReadOnly, markReferenceReadOnly, resolveListReference, resolveNLString, resolveReference, resolveURL
getAdapter
public URLEntryModel()
public String getAnnotation()
null
.public String getAnnotationNonLocalized()
null
.public String getURLString()
null
public URL getURL()
null
public void setAnnotation(String annotation)
annotation
- annotationpublic void setURLString(String urlString)
urlString
- url stringpublic void resolve(URL base, URL bundleURL) throws MalformedURLException
resolve
in class ModelObject
base
- URLbundleURL
- resource bundle urlMalformedURLException
public int getType()
public void setType(int i)
i
- Guidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.