cgl.ogc.wms.gml
Interface GMLDocument

All Known Implementing Classes:
GMLDocument_Impl

public interface GMLDocument

Title:

Description:

Copyright: Copyright (c) 2005

Company: Indiana University - Computer Science Dept.

Version:
1.0
Author:
Ahmet Sayar

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
 

Method Detail

getDocument

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

Returns:
Document

setDocument

public void setDocument(org.w3c.dom.Document document)
Parameters:
document - Document
See Also:
getDocument()

getSchemaLocation

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

Returns:
URL
Throws:
java.net.MalformedURLException

setSchemaLocation

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

Parameters:
schema - URL

getNameSpaces

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

Returns:
GMLNameSpace[]

addNameSpace

public void addNameSpace(GMLNameSpace nameSpace)
Parameters:
nameSpace - GMLNameSpace
See Also:
getNameSpaces()

getRoot

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

Returns:
GMLFeatureCollection

setRoot

public void setRoot(GMLFeatureCollection root)
Parameters:
root - GMLFeatureCollection
See Also:
getRoot()

isValid

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

Returns:
boolean