fedora.server.storage.service
Class DSInputSpecParser

java.lang.Object
  extended byorg.xml.sax.helpers.DefaultHandler
      extended byfedora.server.storage.service.DSInputSpecParser
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

public class DSInputSpecParser
extends org.xml.sax.helpers.DefaultHandler

Title: DSInputSpecParser.java

Description: A class for parsing the special XML format in Fedora for a Datastream Input Specification (DSInputSpec). A DSInputSpec exists within a Behavior Mechanism Object (bmech), and is used to define the "data contract" between the service represented by the bmech and a data object.

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

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: DSInputSpecParser.java,v 1.9 2005/01/11 20:06:08 cwilper Exp $
Author:
payette@cs.cornell.edu

Constructor Summary
DSInputSpecParser(java.lang.String parentPID)
          Constructor to enable another class to initiate the parsing
DSInputSpecParser(java.lang.String parentPID, java.io.InputStream in)
          Constructor allows this class to initiate the parsing
 
Method Summary
 void characters(char[] ch, int start, int length)
           
 void endDocument()
           
 void endElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName)
           
 BMechDSBindSpec getServiceDSInputSpec()
           
 void skippedEntity(java.lang.String name)
           
 void startDocument()
           
 void startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attrs)
           
 void startPrefixMapping(java.lang.String prefix, java.lang.String uri)
           
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DSInputSpecParser

public DSInputSpecParser(java.lang.String parentPID)
Constructor to enable another class to initiate the parsing


DSInputSpecParser

public DSInputSpecParser(java.lang.String parentPID,
                         java.io.InputStream in)
                  throws RepositoryConfigurationException,
                         ObjectIntegrityException
Constructor allows this class to initiate the parsing

Method Detail

getServiceDSInputSpec

public BMechDSBindSpec getServiceDSInputSpec()

startDocument

public void startDocument()
                   throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

endDocument

public void endDocument()
                 throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

startPrefixMapping

public void startPrefixMapping(java.lang.String prefix,
                               java.lang.String uri)
                        throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

skippedEntity

public void skippedEntity(java.lang.String name)
                   throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

characters

public void characters(char[] ch,
                       int start,
                       int length)
                throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

startElement

public void startElement(java.lang.String namespaceURI,
                         java.lang.String localName,
                         java.lang.String qName,
                         org.xml.sax.Attributes attrs)
                  throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

endElement

public void endElement(java.lang.String namespaceURI,
                       java.lang.String localName,
                       java.lang.String qName)
                throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException