|
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.SubcolInfo
This class represents a group of collections, with server url, collection name, collection description, and ranking score.
This class is used by DBSelectionServer
to write subcol infos to client. Also used by web client to parse subcol info
returned from dbselection server
| Field Summary | |
java.util.Vector |
subcols
|
| Constructor Summary | |
SubcolInfo()
default construtor do nothing |
|
SubcolInfo(org.jdom.Element scie)
constructor, takes a element, whose name is subcolInfo, parse it and create an SubcolInfo, with all namespace ignored. |
|
SubcolInfo(java.io.InputStream is)
construct a SubcolInfo from an InputStream
is. |
|
SubcolInfo(java.lang.String sci)
construct a SubcolInfo from a string |
|
| Method Summary | |
void |
addSubcol(Subcol sc)
add one Subcol sc
into this info list |
static void |
main(java.lang.String[] args)
This method is for testing purpose it takes a filename, and parse it into SubcolInfo, and spit the xml back. |
void |
sort(boolean descending)
bubble sort subcols on their ranking score |
org.jdom.Element |
toElement()
returns an element representation of this SubcolInfo with default element name "subcolInfo" |
org.jdom.Element |
toElement(java.lang.String name)
returns an element representation of this SubcolInfo with element name name |
java.lang.String |
toXML()
returns a string representation of this SubcolInfo, with default root element name "subcolInfo" |
java.lang.String |
toXML(java.lang.String name)
returns a string representation of this SubcolInfo, with it's root element name name |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
public java.util.Vector subcols
| Constructor Detail |
public SubcolInfo()
public SubcolInfo(java.io.InputStream is)
throws org.jdom.JDOMException
InputStream
is.is - the input stream to read from
public SubcolInfo(java.lang.String sci)
throws org.jdom.JDOMException
sci - the string to create SubcolInfo frompublic SubcolInfo(org.jdom.Element scie)
scie - the element to create SubcolInfo from| Method Detail |
public static void main(java.lang.String[] args)
throws org.jdom.JDOMException
args - the command line arguments, only need filenamepublic void addSubcol(Subcol sc)
Subcol sc
into this info listsc - the Subcol to addpublic void sort(boolean descending)
descending - sorting order is descending?public org.jdom.Element toElement(java.lang.String name)
namename - the name of the result elementpublic org.jdom.Element toElement()
public java.lang.String toXML(java.lang.String name)
namename - the root element namepublic java.lang.String toXML()
|
SDARTS | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||