org.deegree_impl.gml
Class GMLDocument_Impl

java.lang.Object
  extended byorg.deegree_impl.gml.GMLDocument_Impl
All Implemented Interfaces:
GMLDocument

public class GMLDocument_Impl
extends java.lang.Object
implements GMLDocument

----------------------------------------------------------

Version:
07.02.2001

Author:
Andreas Poth

Field Summary
private  org.w3c.dom.Document document
           
 
Constructor Summary
GMLDocument_Impl()
          Creates a new GMLDocument_Impl object.
GMLDocument_Impl(org.w3c.dom.Document document)
          Creates a new GMLDocument_Impl object.
GMLDocument_Impl(java.io.Reader reader)
          Creates a new GMLDocument_Impl object.
 
Method Summary
 void addNameSpace(GMLNameSpace nameSpace)
           
 org.w3c.dom.Document getDocument()
          returns the dom document representing the GML document
 GMLNameSpace[] getNameSpaces()
          returns the name spaces used within the document
 GMLFeatureCollection getRoot()
          returns the root element of the document as GMLFeatureCollection.
 java.net.URL getSchemaLocation()
          returns the location of the schema the document based on
 boolean isValid()
          returns true if the document is valid against the referenced schemas
 void setDocument(org.w3c.dom.Document document)
           
 void setRoot(GMLFeatureCollection root)
           
 void setSchemaLocation(java.net.URL schema)
          sets the location of schema the document based on
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

document

private org.w3c.dom.Document document
Constructor Detail

GMLDocument_Impl

public GMLDocument_Impl()
Creates a new GMLDocument_Impl object.


GMLDocument_Impl

public GMLDocument_Impl(java.io.Reader reader)
                 throws java.io.IOException,
                        org.xml.sax.SAXException
Creates a new GMLDocument_Impl object.

Parameters:
reader -
Throws:
java.io.IOException
org.xml.sax.SAXException

GMLDocument_Impl

public GMLDocument_Impl(org.w3c.dom.Document document)
Creates a new GMLDocument_Impl object.

Parameters:
document -
Method Detail

getDocument

public org.w3c.dom.Document getDocument()
returns the dom document representing the GML document

Specified by:
getDocument in interface GMLDocument

setDocument

public void setDocument(org.w3c.dom.Document document)
Specified by:
setDocument in interface GMLDocument
See Also:
getDocument()

getSchemaLocation

public java.net.URL getSchemaLocation()
                               throws java.net.MalformedURLException
returns the location of the schema the document based on

Specified by:
getSchemaLocation in interface GMLDocument
Throws:
java.net.MalformedURLException

setSchemaLocation

public void setSchemaLocation(java.net.URL schema)
sets the location of schema the document based on

Specified by:
setSchemaLocation in interface GMLDocument

getNameSpaces

public GMLNameSpace[] getNameSpaces()
returns the name spaces used within the document

Specified by:
getNameSpaces in interface GMLDocument

addNameSpace

public void addNameSpace(GMLNameSpace nameSpace)
Specified by:
addNameSpace in interface GMLDocument
See Also:
getNameSpaces()

getRoot

public GMLFeatureCollection getRoot()
returns the root element of the document as GMLFeatureCollection.

Specified by:
getRoot in interface GMLDocument

setRoot

public void setRoot(GMLFeatureCollection root)
Specified by:
setRoot in interface GMLDocument
See Also:
getRoot()

isValid

public boolean isValid()
returns true if the document is valid against the referenced schemas

Specified by:
isValid in interface GMLDocument

toString

public java.lang.String toString()
Returns: