|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.vfny.geoserver.zserver.GeoSummary
Helper class that represents a summary response. It can return itself as text, html or xml. To use it simply set the values of the fields with the accessor methods. A convenience constructor is also provided, which takes a lucene document and the attribute map used to generate it and fills in the fields that it can.
Constructor Summary | |
GeoSummary()
No argument constructor. |
|
GeoSummary(org.apache.lucene.document.Document doc,
java.util.Properties attrMap)
Convenience constructor. |
Method Summary | |
java.lang.String |
addHtmlField(java.lang.String fieldName,
java.lang.String fieldVal)
Creates a html field for the return summary. |
java.lang.String |
addTextField(java.lang.String fieldName,
java.lang.String fieldVal)
Creates a text field for the return summary. |
java.lang.String |
getHtmlSummary()
Creates a string representation of a geo summary in html format. |
java.lang.String |
getTextSummary()
Creates a string representation of a geo summary in a text format. |
org.w3c.dom.Document |
getXmlSummary()
Creates an xml summary. |
void |
setAttributeLabel(java.lang.String attrLabel)
Sets the attribute label of the summary. |
void |
setBeginningDate(java.lang.String begDate)
Sets the beginning date of the summary. |
void |
setBounds(java.lang.String westbc,
java.lang.String eastbc,
java.lang.String northbc,
java.lang.String southbc)
Sets the bounding coordinates of the summary. |
void |
setBrowseGraphic(java.lang.String fileName,
java.lang.String fileDesc,
java.lang.String fileType)
Sets the three fields needed for a browse graphic. |
void |
setDSGPolygon(java.lang.String dsgpoly)
Sets the Data Set G-polygon of the summary. |
void |
setEdition(java.lang.String edition)
Sets the edition field of the summary. |
void |
setEndingDate(java.lang.String endDate)
Sets the end date of the summary. |
void |
setEntityTypeLabel(java.lang.String entTypeLabel)
Sets the entity type label of the summary. |
void |
setExtent(java.lang.String extent)
Sets the extent field of the summary. |
void |
setGeoform(java.lang.String geoform)
Sets the geoform field of the summary. |
void |
setIndspref(java.lang.String indspref)
Sets the indspref field of the summary. |
void |
setOnlineLinkage(java.lang.String onlink)
Sets the online linkage field of the summary. |
void |
setPublicationDate(java.lang.String pubDate)
Sets the publication date of the summary. |
void |
setTitle(java.lang.String title)
Sets the title of the summary. |
void |
setUpdate(java.lang.String update)
Sets the update field of the summary. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GeoSummary(org.apache.lucene.document.Document doc, java.util.Properties attrMap)
doc
- The lucene document used to fill the summary fields.attrMap
- The mapping of use attribute numbers to their lucene
field namespublic GeoSummary()
Method Detail |
public void setBrowseGraphic(java.lang.String fileName, java.lang.String fileDesc, java.lang.String fileType)
fileName
- the name of the browse graphic file.fileDesc
- the file's descriptionfileType
- the type of the browse file.public void setTitle(java.lang.String title)
title
- the title to be set.public void setOnlineLinkage(java.lang.String onlink)
onlink
- the string representation of the online linkage field.public void setBounds(java.lang.String westbc, java.lang.String eastbc, java.lang.String northbc, java.lang.String southbc)
westbc
- the west bounding coordinate.eastbc
- the east bounding coordinate.northbc
- the north bounding coordinate.southbc
- the south bounding coordinate.public void setExtent(java.lang.String extent)
extent
- the area covered by the bounding coords.public void setPublicationDate(java.lang.String pubDate)
pubDate
- the publication date to be set.public void setBeginningDate(java.lang.String begDate)
begDate
- the beginning date to be set.public void setEndingDate(java.lang.String endDate)
endDate
- the ending date to be set.public void setEntityTypeLabel(java.lang.String entTypeLabel)
entTypeLabel
- the type label of the entity.public void setAttributeLabel(java.lang.String attrLabel)
attrLabel
- the attribute label to be set.public void setDSGPolygon(java.lang.String dsgpoly)
dsgpoly
- the string representation of the g-polygon.public void setEdition(java.lang.String edition)
edition
- the string representation of the g-polygon.public void setGeoform(java.lang.String geoform)
geoform
- the string representation of the g-polygon.public void setUpdate(java.lang.String update)
update
- the string representation of the g-polygon.public void setIndspref(java.lang.String indspref)
indspref
- the string representation of the g-polygon.public java.lang.String addTextField(java.lang.String fieldName, java.lang.String fieldVal)
fieldName
- the name of the field.fieldVal
- what the field equals.
public java.lang.String addHtmlField(java.lang.String fieldName, java.lang.String fieldVal)
fieldName
- the name of the field.fieldVal
- what the field equals.
public java.lang.String getHtmlSummary()
public java.lang.String getTextSummary()
public org.w3c.dom.Document getXmlSummary()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |