org.deegree_impl.clients.wcasclient.model
Class MetadataFactory

java.lang.Object
  extended byorg.deegree_impl.clients.wcasclient.model.MetadataFactory

public class MetadataFactory
extends java.lang.Object

Version:
$Revision: 1.8 $ $Date: 2004/02/19 10:08:56 $
Author:
Andreas Poth

Constructor Summary
MetadataFactory()
           
 
Method Summary
static BaseMetadata createISO19115Brief(org.w3c.dom.Element element, java.lang.String namespace)
          creates a BaseMD_Metadata object from it DOM representation.
static DetailedMetadata createISO19115Full(org.w3c.dom.Element element, java.lang.String namespace)
          creates a DetailedMD_Metadata object from it DOM representation.
private static Contact[] getContact(java.lang.String namespace, ElementList el)
          returns the list of contacts for a Metadataset
private static java.lang.String getCRS(java.lang.String namespace, org.w3c.dom.Element element)
          returns the reference system identifier
private static java.lang.String[] getDescriptiveKeywords(java.lang.String namespace, org.w3c.dom.Element element)
          returns the optional keyword values
private static java.lang.String getEquivalentScale(java.lang.String namespace, org.w3c.dom.Element element)
          returns the optional equivalentScale value
private static java.lang.String getLineageSrcDescription(java.lang.String namespace, org.w3c.dom.Element element)
          returns the optional lineageSourceDescription value
private static java.lang.String getLineageStatement(java.lang.String namespace, org.w3c.dom.Element element)
          returns the optional lineageStatement value
private static java.lang.String getMaintenanceAndUpdateFrequency(java.lang.String namespace, org.w3c.dom.Element element)
          returns the optional maintenanceAndUpdateFrequency value
private static OnlineTransferOption[] getOnlineTransferOptions(java.lang.String namespace, ElementList el)
           
private static java.lang.String getProcessStep(java.lang.String namespace, org.w3c.dom.Element element)
          returns the optional processStep value
private static java.lang.String getResourceConstraints(java.lang.String namespace, org.w3c.dom.Element element)
          returns the optional resourceConstraints value
private static java.util.Calendar[] getTimeExtent(java.lang.String namespace, org.w3c.dom.Element element)
          returns the begin and end
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetadataFactory

public MetadataFactory()
Method Detail

createISO19115Brief

public static BaseMetadata createISO19115Brief(org.w3c.dom.Element element,
                                               java.lang.String namespace)
                                        throws CatalogClientException
creates a BaseMD_Metadata object from it DOM representation.

Parameters:
element - DOM representation of a brief catalog response
Returns:
BaseMD_Metadata
Throws:
CatalogClientException

createISO19115Full

public static DetailedMetadata createISO19115Full(org.w3c.dom.Element element,
                                                  java.lang.String namespace)
                                           throws CatalogClientException
creates a DetailedMD_Metadata object from it DOM representation.

Parameters:
element - DOM representation of a full catalog response
Returns:
DetailedMD_Metadata
Throws:
CatalogClientException

getContact

private static Contact[] getContact(java.lang.String namespace,
                                    ElementList el)
                             throws CatalogClientException
returns the list of contacts for a Metadataset

Throws:
CatalogClientException

getTimeExtent

private static java.util.Calendar[] getTimeExtent(java.lang.String namespace,
                                                  org.w3c.dom.Element element)
                                           throws CatalogClientException
returns the begin and end

Throws:
CatalogClientException

getCRS

private static java.lang.String getCRS(java.lang.String namespace,
                                       org.w3c.dom.Element element)
                                throws CatalogClientException
returns the reference system identifier

Throws:
CatalogClientException

getLineageSrcDescription

private static java.lang.String getLineageSrcDescription(java.lang.String namespace,
                                                         org.w3c.dom.Element element)
                                                  throws CatalogClientException
returns the optional lineageSourceDescription value

Throws:
CatalogClientException

getLineageStatement

private static java.lang.String getLineageStatement(java.lang.String namespace,
                                                    org.w3c.dom.Element element)
                                             throws CatalogClientException
returns the optional lineageStatement value

Throws:
CatalogClientException

getProcessStep

private static java.lang.String getProcessStep(java.lang.String namespace,
                                               org.w3c.dom.Element element)
                                        throws CatalogClientException
returns the optional processStep value

Throws:
CatalogClientException

getMaintenanceAndUpdateFrequency

private static java.lang.String getMaintenanceAndUpdateFrequency(java.lang.String namespace,
                                                                 org.w3c.dom.Element element)
                                                          throws CatalogClientException
returns the optional maintenanceAndUpdateFrequency value

Throws:
CatalogClientException

getResourceConstraints

private static java.lang.String getResourceConstraints(java.lang.String namespace,
                                                       org.w3c.dom.Element element)
                                                throws CatalogClientException
returns the optional resourceConstraints value

Throws:
CatalogClientException

getEquivalentScale

private static java.lang.String getEquivalentScale(java.lang.String namespace,
                                                   org.w3c.dom.Element element)
                                            throws CatalogClientException
returns the optional equivalentScale value

Throws:
CatalogClientException

getDescriptiveKeywords

private static java.lang.String[] getDescriptiveKeywords(java.lang.String namespace,
                                                         org.w3c.dom.Element element)
                                                  throws CatalogClientException
returns the optional keyword values

Throws:
CatalogClientException

getOnlineTransferOptions

private static OnlineTransferOption[] getOnlineTransferOptions(java.lang.String namespace,
                                                               ElementList el)
                                                        throws java.lang.Exception
Throws:
java.lang.Exception

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception