code: public void setDSMDClass(int DSMDClass) {
          if (m_dsType == DS_TYPE.INLINE_XML)
              ((DatastreamXMLMetadata)m_ds).DSMDClass = DSMDClass;
          else if (m_dsType == DS_TYPE.MANAGED)
              ((DatastreamManagedContent)m_ds).DSMDClass = DSMDClass;
          else
              // coding error if trying to use other datastream type
              throw new RuntimeException("XML datastreams must be of type Managed or Inline");
  
      }
docs: Set the DSMDClass of the datastream wrapped by this class
  @param DSMDClass