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.DDS
ServerDDS 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:
-
Nested Class Summary
Nested classes/interfaces inherited from class opendap.dap.DAPNode
opendap.dap.DAPNode.CloneMap -
Field Summary
Fields inherited from class opendap.dap.DStructure
varsFields inherited from class opendap.dap.DAPNode
_nameClear, _nameEncoded, log -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedCreates an emptyServer DDSwith the given dataset name.Creates an emptyServerDDSwith the given dataset name andBaseTypeFactory.Creates an emptyDDSwith the given dataset name andBaseTypeFactory.ServerDDS(opendap.dap.BaseTypeFactory factory) Creates an emptyServerDDSwith the givenBaseTypeFactory. -
Method Summary
Modifier and TypeMethodDescriptionGet the dataset filename.final voidPrint the constrainedDDSon the givenOutputStream.voidPrint the constrainedDDSon the givenPrintWriter.final voidPrint the constrainedDDSon the givenOutputStream.voidPrint the constrainedDDSon the givenPrintWriter.voidSet 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, tokenizeAliasFieldMethods inherited from class opendap.dap.DStructure
deserialize, elementCount, externalize, getTypeName, getVar, getVarCount, getVariableSet, printDecl, printValMethods inherited from class opendap.dap.DConstructor
addVariable, someChildHasAttributesMethods 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, setClearNameMethods inherited from class opendap.dap.DAPNode
clone, cloneDAG, getClearName, getEncodedName, getParent, isProject, setEncodedName, setParent, setProject, setProject, setProjected
-
Constructor Details
-
ServerDDS
protected ServerDDS() -
ServerDDS
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
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
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 Details
-
setDatasetFilename
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:
-
getDatasetFilename
Get the dataset filename.- Returns:
- The filename of the dataset.
- See Also:
-
printConstrained
Print the constrainedDDSon the givenPrintWriter.- Parameters:
os- thePrintWriterto use for output.
-
printConstrained
Print the constrainedDDSon the givenOutputStream.- Parameters:
os- theOutputStreamto use for output.- See Also:
-
DDS.print(PrintWriter)
-
printConstrainedXML
Print the constrainedDDSon the givenOutputStream.- Parameters:
os- theOutputStreamto use for output.- See Also:
-
DDS.print(PrintWriter)
-
printConstrainedXML
Print the constrainedDDSon the givenPrintWriter.- Parameters:
pw- thePrintWriterto use for output.
-