|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectopendap.dap.XMLparser.DDSXMLParser
public class DDSXMLParser
DDSXMLParser
is used to parse a DDX (the XML formatted persistent
representation of a DDS) into a DDS object in memory. This parser uses the
Xerces XML parser and JDOM packages to perform it's duties.
This class/method is associated with pre-release version of the DDX API. It is experimental and is subject to (significant) change.
Constructor Summary | |
---|---|
DDSXMLParser(java.lang.String nameSpace)
Constructs a new DDSXMLParser . |
Method Summary | |
---|---|
org.jdom.Document |
getLastDomDoc()
Returns the Document object created by the most
recent invocation of the parser. |
static java.lang.String |
normalizeToXML(java.lang.String s)
This method is used to normalize strings prior to their inclusion in XML documents. |
void |
parse(org.jdom.Document ddx,
DDS targetDDS,
BaseTypeFactory fac,
boolean validation)
Parse the DDX waiting in the InputStream and instantiate all of
the member BaseType variables and their associated Attributes
into a DDS using the passed BaseTypeFactory |
void |
parse(java.io.InputStream is,
DDS targetDDS,
BaseTypeFactory fac,
boolean validation)
Parse the DDX waiting in the InputStream and instantiate all of
the member BaseType variables and their associated Attributes
into a DDS using the passed BaseTypeFactory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DDSXMLParser(java.lang.String nameSpace)
DDSXMLParser
.
The OPeNDAP namespace is defined during the construction
of an instance of this class.
Method Detail |
---|
public org.jdom.Document getLastDomDoc()
Document
object created by the most
recent invocation of the parser. This might be usefull to some XML
hacker somewhere. :)
Document
object created by the most
recent invocation of the parser.public void parse(org.jdom.Document ddx, DDS targetDDS, BaseTypeFactory fac, boolean validation) throws DAP2Exception
InputStream
and instantiate all of
the member BaseType
variables and their associated Attributes
into a DDS
using the passed BaseTypeFactory
ddx
- A JDOM Document
containing the DDX to parse.targetDDS
- The DDS
in which to place all of the BaseType
variables and their associated Attributes
.fac
- The BaseTypeFactory
to use when creating new
BaseType
variables.validation
- Is a boolean indicating whether or not the parser should
validate the XML document using the Schema (typically referenced in the
document itself). In general server side applications should always vaidate,
while clients shouldn't bother (since they are ostensibly receiving the
document from a server that has already done so.)
DAP2Exception
DDS
,
BaseTypeFactory
public void parse(java.io.InputStream is, DDS targetDDS, BaseTypeFactory fac, boolean validation) throws DAP2Exception
InputStream
and instantiate all of
the member BaseType
variables and their associated Attributes
into a DDS
using the passed BaseTypeFactory
is
- The InputStream
containing the DDX to parse.targetDDS
- The DDS
in which to place all of the BaseType
variables and their associated Attributes
.fac
- The BaseTypeFactory
to use when creating new
BaseType
variables.validation
- Is a boolean indicating whether or not the parser should
validate the XML document using the Schema (typically referenced in the
document itself). In general server side applications should always vaidate,
while clients shouldn't bother (since they are ostensibly receiving the
document from a server that has already done so.)
DAP2Exception
DDS
,
BaseTypeFactory
public static java.lang.String normalizeToXML(java.lang.String s)
s
- The String to be normalized.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |