public class UrlObject extends ModelObject
Modifier and Type | Field and Description |
---|---|
static java.lang.String | PROP_URL
Constant for the URL property name.
|
static java.lang.String | PROP_URL_ATTIBUTES
Constant for the URL attribute's property name.
|
Constructor and Description |
---|
UrlObject()
Constructs a URL with no address.
|
UrlObject(java.lang.String url)
Constructs a URL with the specified attributes.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String | calibrateUrl(java.lang.String url)
This method calibrates the URL depending on the expected URL syntax.
|
java.lang.String | getUrl()
This method is a convenience method for retrieving the current setting of the "url" property.
|
java.util.Map | getUrlAttributes()
This method is a convenience method for retrieving the current setting of the "urlAttributes" property.
|
void | setUrl(java.lang.String url)
This method is a convenience method for setting the "url" property.
|
void | setUrlAttributes(java.util.Map urlAttributes)
This method is a convenience method for setting the "urlAttributes" property.
|
public static final java.lang.String PROP_URL
The value is "url".
The data stored under the "url" property is a String that indicates the address of a Web page.
public static final java.lang.String PROP_URL_ATTIBUTES
The value is "urlAttributes".
The data stored under the "urlAttributes" property is a Map of attributes.
public UrlObject(java.lang.String url)
public UrlObject()
public java.lang.String getUrl()
public void setUrl(java.lang.String url)
public java.util.Map getUrlAttributes()
Use Map.keySet method to introspect the keys and values inside the URL attributes map.
public void setUrlAttributes(java.util.Map urlAttributes)
public java.lang.String calibrateUrl(java.lang.String url)
The default implementation does not calibrare the URL and returns it as it is.
Subclass may override this method to add specific logic.