Esri Geoportal Server
1.0

com.esri.gpt.catalog.publication
Class SingleXmlProcessor

java.lang.Object
  extended by com.esri.gpt.catalog.publication.ResourceProcessor
      extended by com.esri.gpt.catalog.publication.SingleXmlProcessor

public class SingleXmlProcessor
extends ResourceProcessor

A processor compatible with a resource defined by a single XML.


Constructor Summary
SingleXmlProcessor(ProcessingContext context, File file)
          Constructs with an associated processing context and file.
SingleXmlProcessor(ProcessingContext context, String systemId, String resourceXml)
          Constructs with an associated processing context.
 
Method Summary
 Query createQuery(IterationContext context, Criteria criteria)
          Creates iteration query.
 Native getNativeResource(IterationContext context)
          Gets native resource.
 void process()
          Invokes processing against the resource.
 
Methods inherited from class com.esri.gpt.catalog.publication.ResourceProcessor
collectExistingSourceURIs, deleteUnreferencedSourceURIs, getContext, getPublicationMethod, publishMetadata, publishMetadata, setPublicationMethod
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleXmlProcessor

public SingleXmlProcessor(ProcessingContext context,
                          File file)
Constructs with an associated processing context and file.

Parameters:
context - the processing context
file - the file containing metadata for the resource to process

SingleXmlProcessor

public SingleXmlProcessor(ProcessingContext context,
                          String systemId,
                          String resourceXml)
Constructs with an associated processing context.

Parameters:
context - the procesing context
systemId - the system id of the resource (file path or URL)
resourceXml - the resource XML to process
Method Detail

process

public void process()
             throws Exception
Invokes processing against the resource.

Specified by:
process in class ResourceProcessor
Throws:
Exception - if an exception occurs

createQuery

public Query createQuery(IterationContext context,
                         Criteria criteria)
Description copied from class: ResourceProcessor
Creates iteration query. Query is being used during synchronization.

Specified by:
createQuery in class ResourceProcessor
Parameters:
context - iteration context
criteria - query criteria or null if no criteria
Returns:
query

getNativeResource

public Native getNativeResource(IterationContext context)
Description copied from class: ResourceProcessor
Gets native resource. Native resource is a publishable resource created just for repository definition. Each native resource is Publishable and each repository has to be able to provide one.

Specified by:
getNativeResource in class ResourceProcessor
Parameters:
context - iteration context
Returns:
native resource.

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.