|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.vo.ResolverInfo
public class ResolverInfo
Information about an astronomical object obrtained from some name resolution service. The current implementation is in terms of CDS's Sesame name resolver web service.
Field Summary | |
---|---|
static String |
SESAME_URL
Base URL for HTTP-GET-based Sesame service. |
Method Summary | |
---|---|
double |
getDecDegrees()
Returns object declination in degrees. |
double |
getRaDegrees()
Returns object right ascension in degrees. |
static void |
main(String[] args)
|
static ResolverInfo |
resolve(String name)
Attempts to resolve an object by name using a name resover service, and either returns an object containing information about it or throws an exception. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String SESAME_URL
Method Detail |
---|
public double getRaDegrees()
public double getDecDegrees()
public static ResolverInfo resolve(String name) throws ResolverException
name
- object name
ResolverException
- if resolution failed for some reasonpublic static void main(String[] args) throws ResolverException
ResolverException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |