org.fcrepo.client.utility.validate.types
Class DsCompositeModelDoc

java.lang.Object
  extended by org.fcrepo.client.utility.validate.types.DsCompositeModelDoc

public class DsCompositeModelDoc
extends Object

Parses the DS-COMPOSITE-MODEL XML document, and presents the contents in a way that is compatible with ContentModelInfo.

Author:
Jim Blake

Nested Class Summary
static class DsCompositeModelDoc.DsTypeModel
          An implementation of ContentModelInfo.DsTypeModel that includes a constructor that parses a <dsTypeModel> tag.
static class DsCompositeModelDoc.Form
          An implementation of ContentModelInfo.DsTypeModel that includes a constructor that parses a <form> tag.
 
Constructor Summary
DsCompositeModelDoc(String pid, byte[] bytes)
          Parse the datastream XML.
 
Method Summary
 Set<ContentModelInfo.DsTypeModel> getTypeModels()
          Get the type models of the content model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DsCompositeModelDoc

public DsCompositeModelDoc(String pid,
                           byte[] bytes)
                    throws InvalidContentModelException
Parse the datastream XML.

Parameters:
pid - used in error messages.
bytes - from the datastream of the content model.
Throws:
InvalidContentModelException
Method Detail

getTypeModels

public Set<ContentModelInfo.DsTypeModel> getTypeModels()
Get the type models of the content model.



Copyright © 2012 DuraSpace. All Rights Reserved.