org.fcrepo.client.objecteditor.types
Class DatastreamInputSpec

java.lang.Object
  extended by org.fcrepo.client.objecteditor.types.DatastreamInputSpec

public class DatastreamInputSpec
extends Object

Defines the datastreams that a service deployment requires in order to fulfill its service definition ("contract"). A deployment object specifies this.


Constructor Summary
DatastreamInputSpec(String label, List bindingRules)
          Initialize a DatastreamInputSpec object with all values.
 
Method Summary
 List bindingRules()
          Get the spec's list of DatastreamBindingRules.
 String getLabel()
          Get a short description of the input specification.
static DatastreamInputSpec parse(InputStream xml)
          Parse a stream of XML and return the datastream input spec defined therein.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatastreamInputSpec

public DatastreamInputSpec(String label,
                           List bindingRules)
Initialize a DatastreamInputSpec object with all values.

Method Detail

parse

public static DatastreamInputSpec parse(InputStream xml)
                                 throws IOException
Parse a stream of XML and return the datastream input spec defined therein. The parsing is very relaxed. The xml may, but needn't be namespace-qualified, and will only be validated according to the rules implied below in parentheses.
 <DSInputSpec label="SPEC_LABEL">
     <DSInput DSMax="MAX_DATASTREAMS" 
              DSMin="MIN_DATASTREAMS" 
       DSOrdinality="IS_ORDERED" 
    wsdlMsgPartName="BINDING_KEY">
         <DSInputLabel>BINDING_LABEL</DSInputLabel>
         <DSMIME>MIME_TYPE_SPACE_SEPARATED_LIST</DSMIME>
         <DSInputInstruction>INSTRUCTIONS</DSInputInstruction>
     </DSInput>
 </DSInputSpec>
 

Throws:
IOException

getLabel

public String getLabel()
Get a short description of the input specification. This may be null.


bindingRules

public List bindingRules()
Get the spec's list of DatastreamBindingRules.



Copyright © 2012 DuraSpace. All Rights Reserved.