fedora.server.storage.types
Class BMechDSBindRule

java.lang.Object
  extended by fedora.server.storage.types.BMechDSBindRule

public class BMechDSBindRule
extends java.lang.Object

A datastream binding rule.

Version:
$Id: BMechDSBindRule.java 3966 2005-04-21 13:33:01Z rlw $
Author:
payette@cs.cornell.edu

Field Summary
 java.lang.String bindingInstruction
           
 java.lang.String bindingKeyName
           
 java.lang.String bindingLabel
           
 java.lang.String[] bindingMIMETypes
           
 int maxNumBindings
           
 int minNumBindings
           
 boolean ordinality
           
 
Constructor Summary
BMechDSBindRule()
           
 
Method Summary
 java.lang.String describeAllowedMimeTypes()
          In human readable string, describe which mime types are allowed.
 java.lang.String validate(java.util.List augBindings)
          Validate the given DSBindingAugmented objects against the min/max and mime type constraints of this rule.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bindingKeyName

public java.lang.String bindingKeyName

minNumBindings

public int minNumBindings

maxNumBindings

public int maxNumBindings

ordinality

public boolean ordinality

bindingLabel

public java.lang.String bindingLabel

bindingInstruction

public java.lang.String bindingInstruction

bindingMIMETypes

public java.lang.String[] bindingMIMETypes
Constructor Detail

BMechDSBindRule

public BMechDSBindRule()
Method Detail

describeAllowedMimeTypes

public java.lang.String describeAllowedMimeTypes()
In human readable string, describe which mime types are allowed.


validate

public java.lang.String validate(java.util.List augBindings)
Validate the given DSBindingAugmented objects against the min/max and mime type constraints of this rule. If the rule is satisfied, return null. Otherwise, return a string explaining the problem.