cgl.ogc.wms.gml_Impl
Class GMLDocument_Impl

java.lang.Object
  extended bycgl.ogc.wms.gml_Impl.GMLDocument_Impl
All Implemented Interfaces:
GMLDocument

public class GMLDocument_Impl
extends java.lang.Object
implements GMLDocument

Title:

Description:

Copyright: Copyright (c) 2005

Company: Indiana University - Computer Science Dept.

Version:
1.0
Author:
Ahmet Sayar

Constructor Summary
GMLDocument_Impl()
          Creates a new GMLDocument_Impl object.
GMLDocument_Impl(org.w3c.dom.Document document)
           
GMLDocument_Impl(java.io.Reader reader)
           
 
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 * @return boolean
 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
 

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
Parameters:
reader - Reader
Throws:
java.io.IOException
org.xml.sax.SAXException

GMLDocument_Impl

public GMLDocument_Impl(org.w3c.dom.Document document)
Parameters:
document - Document
Method Detail

getDocument

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

Specified by:
getDocument in interface GMLDocument
Returns:
Document

setDocument

public void setDocument(org.w3c.dom.Document document)
Specified by:
setDocument in interface GMLDocument
Parameters:
document - Document
See Also:
org.deegree_impl.gml.GMLDocument_Impl#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
Returns:
URL
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
Parameters:
schema - URL

getNameSpaces

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

Specified by:
getNameSpaces in interface GMLDocument
Returns:
GMLNameSpace[]

addNameSpace

public void addNameSpace(GMLNameSpace nameSpace)
Specified by:
addNameSpace in interface GMLDocument
Parameters:
nameSpace - GMLNameSpace
See Also:
org.deegree_impl.gml.GMLDocument_Impl#getNameSpaces()

getRoot

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

Specified by:
getRoot in interface GMLDocument
Returns:
GMLFeatureCollection

setRoot

public void setRoot(GMLFeatureCollection root)
Specified by:
setRoot in interface GMLDocument
Parameters:
root - GMLFeatureCollection
See Also:
org.deegree_impl.gml.GMLDocument_Impl#getRoot()

isValid

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

Specified by:
isValid in interface GMLDocument
Returns:
boolean

toString

public java.lang.String toString()
Returns:
String