fedora.server.storage.service
Class ServiceMapper

java.lang.Object
  extended byfedora.server.storage.service.ServiceMapper

public class ServiceMapper
extends java.lang.Object

Title: ServiceMapper.java

Description: Controller class for parsing the various kinds of inline metadata datastreams found in behavior objects. The intent of this class is to initiate parsing of these datastreams so that information about a behavior service can be instantiated in Fedora.

-----------------------------------------------------------------------------

License and Copyright: The contents of this file are subject to the Mozilla Public License Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.mozilla.org/MPL/.

Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License.

The entire file consists of original code. Copyright © 2002-2005 by The Rector and Visitors of the University of Virginia and Cornell University. All rights reserved.

-----------------------------------------------------------------------------

Version:
$Id: ServiceMapper.java,v 1.10 2005/01/11 20:06:08 cwilper Exp $
Author:
payette@cs.cornell.edu

Constructor Summary
ServiceMapper(java.lang.String behaviorObjectPID)
           
 
Method Summary
 BMechDSBindSpec getDSInputSpec(org.xml.sax.InputSource dsInputSpecSource)
           
 MethodDefOperationBind[] getMethodDefBindings(org.xml.sax.InputSource wsdlSource, org.xml.sax.InputSource methodMapSource)
          getMethodDefBindings: creates an array of operation bindings in the form of an array of Fedora MethodDefOperationBind objects.
 MethodDef[] getMethodDefs(org.xml.sax.InputSource methodMapSource)
          getMethodDefs: creates an array of abstract method definitions in the form of an array of Fedora MethodDef objects.
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

ServiceMapper

public ServiceMapper(java.lang.String behaviorObjectPID)
Method Detail

main

public static void main(java.lang.String[] args)

getMethodDefs

public MethodDef[] getMethodDefs(org.xml.sax.InputSource methodMapSource)
                          throws ObjectIntegrityException,
                                 RepositoryConfigurationException,
                                 GeneralException
getMethodDefs: creates an array of abstract method definitions in the form of an array of Fedora MethodDef objects. The creation of a MethodDef object requires information from a Fedora Method Map.

Parameters:
methodMapSource - : Fedora Method Map definition for methods
Returns:
MethodDef[] : an array of abstract method definitions
Throws:
ObjectIntegrityException
RepositoryConfigurationException
GeneralException

getMethodDefBindings

public MethodDefOperationBind[] getMethodDefBindings(org.xml.sax.InputSource wsdlSource,
                                                     org.xml.sax.InputSource methodMapSource)
                                              throws ObjectIntegrityException,
                                                     RepositoryConfigurationException,
                                                     GeneralException
getMethodDefBindings: creates an array of operation bindings in the form of an array of Fedora MethodDefOperationBind objects. The creation of a MethodDefOperationBind object requires information from a WSDL service definition and a related Fedora Method Map. The Fedora Method Map is merged with the WSDL to provide a Fedora-specific view of the WSDL.

Parameters:
wsdlSource - : WSDL service definition for methods
methodMapSource - : Fedora Method Map definition for methods
Returns:
MethodDefOperationBind[] : an array of method bindings
Throws:
ObjectIntegrityException
RepositoryConfigurationException
GeneralException

getDSInputSpec

public BMechDSBindSpec getDSInputSpec(org.xml.sax.InputSource dsInputSpecSource)
                               throws ObjectIntegrityException,
                                      RepositoryConfigurationException,
                                      GeneralException
Throws:
ObjectIntegrityException
RepositoryConfigurationException
GeneralException