|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.micromata.opengis.kml.v_2_2_0.atom.Link
public class Link
(required). see .
specifies the location of any of the following:
If the file specified in
KML files fetched by network links Image files used in any Overlay (the
Specifies the URL of the website containing this KML or KMZ file. Be sure to include the namespace for this element in any KML file that uses it: xmlns:atom="http://www.w3.org/2005/Atom" (see the sample that follows).
Specifies the file to load and optional refresh parameters. See .
The element replaces the
The file is conditionally loaded and refreshed, depending on the refresh parameters
supplied here. Two different sets of refresh parameters can be specified: one set
is based on time (
Tip: To display the top-level Folder or Document within a Network Link in the List View, assign an ID to the Folder or Document. Without this ID, only the child object names are displayed in the List View.
When a file is fetched, the URL that is sent to the server is composed of three pieces of information:
the href (Hypertext Reference) that specifies the file to load. an arbitrary format
string that is created from (a) parameters that you specify in the
<Link id="ID">
<!-- specific to Link -->
<href>...</href> <!-- string -->
<refreshMode>onChange</refreshMode>
<!-- refreshModeEnum: onChange, onInterval, or onExpire -->
<refreshInterval>4</refreshInterval> <!-- float -->
<viewRefreshMode>never</viewRefreshMode>
<!-- viewRefreshModeEnum: never, onStop, onRequest, onRegion -->
<viewRefreshTime>4</viewRefreshTime> <!-- float -->
<viewBoundScale>1</viewBoundScale> <!-- float -->
<viewFormat>BBOX=[bboxWest],[bboxSouth],[bboxEast],[bboxNorth]</viewFormat>
<!-- string -->
<httpQuery>...</httpQuery> <!-- string -->
</Link>
Extends:
| Field Summary | |
|---|---|
protected java.lang.String |
href
|
protected java.lang.String |
hreflang
|
protected java.lang.String |
length
|
protected java.lang.String |
rel
|
protected java.lang.String |
title
|
protected java.lang.String |
type
|
| Constructor Summary | |
|---|---|
Link(java.lang.String href)
Value constructor with only mandatory fields |
|
| Method Summary | |
|---|---|
Link |
clone()
|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getHref()
|
java.lang.String |
getHreflang()
|
java.lang.String |
getLength()
|
java.lang.String |
getRel()
|
java.lang.String |
getTitle()
|
java.lang.String |
getType()
|
int |
hashCode()
|
void |
setHref(java.lang.String value)
|
void |
setHreflang(java.lang.String value)
|
void |
setLength(java.lang.String value)
|
void |
setRel(java.lang.String value)
|
void |
setTitle(java.lang.String value)
|
void |
setType(java.lang.String value)
|
Link |
withHreflang(java.lang.String hreflang)
fluent setter |
Link |
withLength(java.lang.String length)
fluent setter |
Link |
withRel(java.lang.String rel)
fluent setter |
Link |
withTitle(java.lang.String title)
fluent setter |
Link |
withType(java.lang.String type)
fluent setter |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String href
A URL (either an HTTP address or a local file specification). When the parent of
is a NetworkLink,
An HTTP address or a local file specification used to load an icon.
Specifies the URI of the image used in the List View for the Feature.
protected java.lang.String rel
protected java.lang.String type
protected java.lang.String hreflang
protected java.lang.String title
protected java.lang.String length
| Constructor Detail |
|---|
public Link(java.lang.String href)
href - required parameter| Method Detail |
|---|
public java.lang.String getHref()
Stringhrefpublic void setHref(java.lang.String value)
value - allowed object is
Stringhrefpublic java.lang.String getRel()
Stringrelpublic void setRel(java.lang.String value)
value - allowed object is
Stringrelpublic java.lang.String getType()
Stringtypepublic void setType(java.lang.String value)
value - allowed object is
Stringtypepublic java.lang.String getHreflang()
Stringhreflangpublic void setHreflang(java.lang.String value)
value - allowed object is
Stringhreflangpublic java.lang.String getTitle()
Stringtitlepublic void setTitle(java.lang.String value)
value - allowed object is
Stringtitlepublic java.lang.String getLength()
Stringlengthpublic void setLength(java.lang.String value)
value - allowed object is
Stringlengthpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic Link withRel(java.lang.String rel)
rel - required parametersetRel(String)public Link withType(java.lang.String type)
type - required parametersetType(String)public Link withHreflang(java.lang.String hreflang)
hreflang - required parametersetHreflang(String)public Link withTitle(java.lang.String title)
title - required parametersetTitle(String)public Link withLength(java.lang.String length)
length - required parametersetLength(String)public Link clone()
clone in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||