deegree 2.1 (2007/11/08 09:57 build-328-official)

org.deegree.ogcwebservices.csw.discovery
Class GetRecordsDocument

java.lang.Object
  extended by org.deegree.framework.xml.XMLFragment
      extended by org.deegree.ogcbase.OGCDocument
          extended by org.deegree.ogcwebservices.csw.AbstractCSWRequestDocument
              extended by org.deegree.ogcwebservices.csw.discovery.GetRecordsDocument
All Implemented Interfaces:
Serializable

public class GetRecordsDocument
extends AbstractCSWRequestDocument

Represents an XML GetRecords document of an OGC CSW 2.0 compliant service.

Version:
$Revision: 7555 $, $Date: 2007-06-13 12:19:46 +0200 (Mi, 13 Jun 2007) $
Author:
Torsten Friebe , Markus Schneider , last edited by: $Author: rbezema $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.deegree.ogcbase.OGCDocument
GMLNS
 
Fields inherited from class org.deegree.framework.xml.XMLFragment
DEFAULT_URL, nsContext, XLNNS
 
Constructor Summary
GetRecordsDocument()
           
 
Method Summary
(package private)  void createEmptyDocument()
           
 void findVariablesInTypeName(String typeName, Node queryNode, List<QualifiedName> typeNames, Map<String,QualifiedName> variables, boolean bindTypeNameToNS)
          Helper method to find any declared variables in given Query/@typeNames
 GetRecords parse(String id)
          Extracts a GetRecords representation of this object.
 QualifiedName parseQNameFromString(String typeName, Node queryNode, boolean bindTypeNameToNS)
           
 
Methods inherited from class org.deegree.ogcwebservices.csw.AbstractCSWRequestDocument
parseDRMParams
 
Methods inherited from class org.deegree.ogcbase.OGCDocument
parseCodeList, parseCodeListArray, parseInterval, parseKeywords, parseKeywords, parseLonLatEnvelope, parseOnLineResource, parsePropertyPath, parseTimePeriod, parseTimePeriods, parseTimePositions, parseTimeSequence, parseTypedLiteral, parseValues
 
Methods inherited from class org.deegree.framework.xml.XMLFragment
getAsPrettyString, getAsString, getAttachedSchemas, getQualifiedName, getRootElement, getSystemId, hasSchema, load, load, load, parseQualifiedName, parseSimpleLink, prettyPrint, prettyPrint, resolve, setRootElement, setSystemId, setSystemId, toString, write, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GetRecordsDocument

public GetRecordsDocument()
Method Detail

parse

public GetRecords parse(String id)
                 throws OGCWebServiceException
Extracts a GetRecords representation of this object.

Parameters:
id - unique ID of the request
Returns:
GetRecords representation of this object
Throws:
MissingParameterValueException
InvalidParameterValueException
OperationNotSupportedException - if an CqlText constrained is requested
OGCWebServiceException - if something else went wrong

findVariablesInTypeName

public void findVariablesInTypeName(String typeName,
                                    Node queryNode,
                                    List<QualifiedName> typeNames,
                                    Map<String,QualifiedName> variables,
                                    boolean bindTypeNameToNS)
                             throws OGCWebServiceException,
                                    URISyntaxException
Helper method to find any declared variables in given Query/@typeNames

Parameters:
typeName - the type name to test
queryNode - the querynode (used to find a given prefix)
typeNames - a list to save the typeName (as QualifiedNames) in
variables - a Map containing the vars/QualifiedName mappings
bindTypeNameToNS - if the namespaces should be bounded to the typeNames
Throws:
URISyntaxException - if the prefix is not bound to a namespace
OGCWebServiceException - if a variable name is unambiguous

parseQNameFromString

public QualifiedName parseQNameFromString(String typeName,
                                          Node queryNode,
                                          boolean bindTypeNameToNS)
                                   throws URISyntaxException
Parameters:
typeName - to be transformed to a QName
queryNode - needed to get the namespace
bindTypeNameToNS - if true the namespace will be bound to the qualified name
Returns:
a QualifiedName representing the typeName
Throws:
URISyntaxException

createEmptyDocument

void createEmptyDocument()
                   throws IOException,
                          SAXException
Throws:
IOException
SAXException

deegree 2.1 (2007/11/08 09:57 build-328-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://deegree.sourceforge.net