|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.votable.datalink.ServiceDescriptorFactory
public class ServiceDescriptorFactory
Contains methods to parse service descriptor elements in a VOTable document.
Constructor Summary | |
---|---|
ServiceDescriptorFactory()
|
Method Summary | |
---|---|
ServiceDescriptor |
createServiceDescriptor(VOElement resourceEl)
Parses a DOM element as a ServiceDescriptor. |
ServiceParam |
createServiceParam(ParamElement paramEl)
Parses a VOTable DOM element as a ServiceParam. |
ServiceDescriptor[] |
readAllServiceDescriptors(VOElement el)
Reads ServiceDescriptor descendants of a given element. |
ServiceDescriptor[] |
readTableServiceDescriptors(TableElement tableEl)
Locates all the service descriptors that correspond to a given TABLE element. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServiceDescriptorFactory()
Method Detail |
---|
public ServiceDescriptor[] readAllServiceDescriptors(VOElement el)
el
- container element
public ServiceDescriptor[] readTableServiceDescriptors(TableElement tableEl)
This is not elegant. We are looking for SDs in the following positions:
SomeElement RESOURCE TABLE RESOURCE-with-ServiceDescriptoror
RESOURCE TABLE RESOURCE-with-ServiceDescriptorbut we don't know which. First, find the widest scope within which an SD for this tableEl might be found. That is the parent of this TABLE's RESOURCE parent. Then, look for all the SDs in this scope, but discount any which have TABLE siblings apart from the supplied tableEl.
tableEl
- target TABLE element
tableEl
public ServiceDescriptor createServiceDescriptor(VOElement resourceEl)
resourceEl
- DOM element
public ServiceParam createServiceParam(ParamElement paramEl)
paramEl
- PARAM element
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |