fedora.client.objecteditor.types
Class DatastreamInputSpec

java.lang.Object
  extended by fedora.client.objecteditor.types.DatastreamInputSpec

public class DatastreamInputSpec
extends java.lang.Object

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


Constructor Summary
DatastreamInputSpec(java.lang.String label, java.util.List bindingRules)
          Initialize a DatastreamInputSpec object with all values.
 
Method Summary
 java.util.List bindingRules()
          Get the spec's list of DatastreamBindingRules.
 java.lang.String getLabel()
          Get a short description of the input specification.
static DatastreamInputSpec parse(java.io.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(java.lang.String label,
                           java.util.List bindingRules)
Initialize a DatastreamInputSpec object with all values.

Method Detail

parse

public static DatastreamInputSpec parse(java.io.InputStream xml)
                                 throws java.io.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:
java.io.IOException

getLabel

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


bindingRules

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