|
|||||||||
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 parameterMethod Detail |
---|
public java.lang.String getHref()
String
href
public void setHref(java.lang.String value)
value
- allowed object is
String
href
public java.lang.String getRel()
String
rel
public void setRel(java.lang.String value)
value
- allowed object is
String
rel
public java.lang.String getType()
String
type
public void setType(java.lang.String value)
value
- allowed object is
String
type
public java.lang.String getHreflang()
String
hreflang
public void setHreflang(java.lang.String value)
value
- allowed object is
String
hreflang
public java.lang.String getTitle()
String
title
public void setTitle(java.lang.String value)
value
- allowed object is
String
title
public java.lang.String getLength()
String
length
public void setLength(java.lang.String value)
value
- allowed object is
String
length
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public 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 |