public class ServiceDescriptorFactory
extends java.lang.Object
| Constructor and Description | 
|---|
| ServiceDescriptorFactory() | 
| Modifier and Type | Method and Description | 
|---|---|
| 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. | 
public ServiceDescriptor[] readAllServiceDescriptors(VOElement el)
el - container elementpublic ServiceDescriptor[] readTableServiceDescriptors(TableElement tableEl)
This is not elegant. We are looking for SDs in the following positions:
   SomeElement
     RESOURCE
       TABLE
     RESOURCE-with-ServiceDescriptor
 
 or
 
   RESOURCE
     TABLE
     RESOURCE-with-ServiceDescriptor
 
 but 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 elementtableElpublic ServiceDescriptor createServiceDescriptor(VOElement resourceEl)
resourceEl - DOM elementpublic ServiceParam createServiceParam(ParamElement paramEl)
paramEl - PARAM element