Package opendap.servers
Class ServerDDS
- java.lang.Object
-
- opendap.dap.DAPNode
-
- opendap.dap.BaseType
-
- opendap.dap.DConstructor
-
- opendap.dap.DStructure
-
- opendap.dap.DDS
-
- opendap.servers.ServerDDS
-
- All Implemented Interfaces:
Serializable,Cloneable,opendap.dap.ClientIO
public class ServerDDS extends opendap.dap.DDSServerDDS is a specialization of DDS for the server-side of OPeNDAP. This class includes methods used to distinguish synthesized variables (variables added to the DDS by a constraint expression function), methods for CE function management and methods used to return a `constrained DDS' as part of a OPeNDAP data document. All of the variables contained by a ServerDDS must implement the Projection interface.- See Also:
DDS,CEEvaluator, Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedServerDDS()protectedServerDDS(String n)Creates an emptyServer DDSwith the given dataset name.ServerDDS(String n, opendap.dap.BaseTypeFactory factory)Creates an emptyServerDDSwith the given dataset name andBaseTypeFactory.ServerDDS(String n, opendap.dap.BaseTypeFactory factory, String schema)Creates an emptyDDSwith the given dataset name andBaseTypeFactory.ServerDDS(opendap.dap.BaseTypeFactory factory)Creates an emptyServerDDSwith the givenBaseTypeFactory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDatasetFilename()Get the dataset filename.voidprintConstrained(OutputStream os)Print the constrainedDDSon the givenOutputStream.voidprintConstrained(PrintWriter os)Print the constrainedDDSon the givenPrintWriter.voidprintConstrainedXML(OutputStream os)Print the constrainedDDSon the givenOutputStream.voidprintConstrainedXML(PrintWriter pw)Print the constrainedDDSon the givenPrintWriter.voidsetDatasetFilename(String n)Set the filename of the dataset.-
Methods inherited from class opendap.dap.DDS
addVariable, checkForAttributeNameConflict, checkSemantics, cloneDAG, delVariable, getBlobContentID, getDAS, getDDSText, getDDXText, getFactory, getVariable, getVariables, ingestDAS, normalize, numVariables, parse, parse, parseXML, parseXML, print, print, printDAS, printDAS, printXML, printXML, resolveAliases, search, setBlobContentID, setFactory, setURL, tokenizeAliasField
-
Methods inherited from class opendap.dap.DStructure
deserialize, elementCount, externalize, getTypeName, getVar, getVarCount, getVariableSet, printDecl, printVal
-
Methods inherited from class opendap.dap.BaseType
addAttributeAlias, addAttributeContainer, appendAttribute, appendAttribute, appendAttributeContainer, checkSemantics, delAttribute, delAttribute, elementCount, getAttribute, getAttribute, getAttributeNames, getAttributeTable, getLongName, hasAttributes, newPrimitiveVector, printAttributes, printAttributes, printAttributes, printAttributes, printConstraint, printDecl, printDecl, printDecl, printDecl, printDecl, printDecl, printDecl, printVal, printVal, printVal, printXML, printXML, printXML, setClearName
-
-
-
-
Constructor Detail
-
ServerDDS
protected ServerDDS()
-
ServerDDS
protected ServerDDS(String n)
Creates an emptyServer DDSwith the given dataset name.- Parameters:
n- the dataset name
-
ServerDDS
public ServerDDS(opendap.dap.BaseTypeFactory factory)
Creates an emptyServerDDSwith the givenBaseTypeFactory. This will be used for OPeNDAP servers which need to construct subclasses of the variousBaseTypeobjects to hold additional server-side information.- Parameters:
factory- the serverBaseTypeFactoryobject.
-
ServerDDS
public ServerDDS(String n, opendap.dap.BaseTypeFactory factory)
Creates an emptyServerDDSwith the given dataset name andBaseTypeFactory. This will be used for OPeNDAP servers which need to construct subclasses of the variousBaseTypeobjects to hold additional server-side information.- Parameters:
n- the dataset namefactory- the serverBaseTypeFactoryobject.
-
ServerDDS
public ServerDDS(String n, opendap.dap.BaseTypeFactory factory, String schema)
Creates an emptyDDSwith the given dataset name andBaseTypeFactory. This will be used for OPeNDAP servers which need to construct subclasses of the variousBaseTypeobjects to hold additional server-side information.- Parameters:
n- the dataset namefactory- the serverBaseTypeFactoryobject.schema- the URL where the parser can find an instance of the OPeNDAP namespace schema.
-
-
Method Detail
-
setDatasetFilename
public void setDatasetFilename(String n)
Set the filename of the dataset. This must be passed to theread()method of the FileIO interface. The filename of the dataset may be a real filename or may be any other string that can be used to identify for thereadmethod how to access the data-store of which a particular variable is a member.- Parameters:
n- The name of the dataset.- See Also:
ServerMethods.read()
-
getDatasetFilename
public String getDatasetFilename()
Get the dataset filename.- Returns:
- The filename of the dataset.
- See Also:
setDatasetFilename(String)
-
printConstrained
public void printConstrained(PrintWriter os)
Print the constrainedDDSon the givenPrintWriter.- Parameters:
os- thePrintWriterto use for output.
-
printConstrained
public final void printConstrained(OutputStream os)
Print the constrainedDDSon the givenOutputStream.- Parameters:
os- theOutputStreamto use for output.- See Also:
DDS.print(PrintWriter)
-
printConstrainedXML
public final void printConstrainedXML(OutputStream os)
Print the constrainedDDSon the givenOutputStream.- Parameters:
os- theOutputStreamto use for output.- See Also:
DDS.print(PrintWriter)
-
printConstrainedXML
public void printConstrainedXML(PrintWriter pw)
Print the constrainedDDSon the givenPrintWriter.- Parameters:
pw- thePrintWriterto use for output.
-
-