|
SDARTS | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--edu.columbia.cs.sdarts.dbselection.util.Subcol
This class represents a subcollection (also called collection).
This class can be instantiated from an XML doc
Element subcol
or it can be created from all it's memebers, including
,
serverURL,
subcolNamesubcolDesc
This class is used by DBSelectionServer
to write subcol info to client, also used by web client to parse this info
| Field Summary | |
double |
score
|
java.lang.String |
serverURL
|
java.lang.String |
subcolDesc
|
java.lang.String |
subcolName
|
| Constructor Summary | |
Subcol(org.jdom.Element sce)
constructor, takes a element, whose name is subcol, parse it and get back all the members, with all namespace ignored. |
|
Subcol(java.lang.String url,
java.lang.String name,
java.lang.String desc,
double s)
construct a Subcol given a server url url,
a subcol Name name, a subcol description desc,
and a ranking score s. |
|
| Method Summary | |
org.jdom.Element |
toElement()
returns an Element representation of this subcol with default name "subcol" |
org.jdom.Element |
toElement(java.lang.String name)
given a name for the Element, returns an Element representation of this subcol |
java.lang.String |
toXML()
returns a xml string representation of this subcol, with the default element name "subcol" |
java.lang.String |
toXML(java.lang.String name)
returns a xml string representation of this subcol, with the element name given as name. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
public java.lang.String serverURL
public java.lang.String subcolName
public java.lang.String subcolDesc
public double score
| Constructor Detail |
public Subcol(org.jdom.Element sce)
This is used to parse info from sdarts server.
sce - the element with name "subcol" to be parsed
public Subcol(java.lang.String url,
java.lang.String name,
java.lang.String desc,
double s)
url,
a subcol Name name, a subcol description desc,
and a ranking score s.
this method is used to write out to xml string
url - the server url for this collectionname - the collection namedesc - the description of this collections - the ranking score of this collection| Method Detail |
public org.jdom.Element toElement(java.lang.String name)
name - specify a name for the element, defaults "subcol"public org.jdom.Element toElement()
public java.lang.String toXML(java.lang.String name)
name.name - the name of the element which enclose all the memberspublic java.lang.String toXML()
|
SDARTS | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||