fedora.server.storage.service
Class ServiceMapper
java.lang.Object
fedora.server.storage.service.ServiceMapper
public class ServiceMapper
- extends java.lang.Object
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.
- Version:
- $Id: ServiceMapper.java 5218 2006-11-20 05:10:11Z cwilper $
- 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 |
ServiceMapper
public ServiceMapper(java.lang.String behaviorObjectPID)
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 methodsmethodMapSource - : 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