edu.harvard.hul.ois.mets.helper
Class MetsValidator

java.lang.Object
  extended byedu.harvard.hul.ois.mets.helper.MetsValidator

public class MetsValidator
extends java.lang.Object

Validator


Constructor Summary
MetsValidator()
          CLASS CONSTRUCTOR.
 
Method Summary
 java.util.Map getIDs()
          Return map of IDs.
 void validate(MetsVElement element)
          Validate an element and its content model.
 void validateIDREFs(MetsVElement element)
          Validate an element and its content model for ID/IDREF consistency.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetsValidator

public MetsValidator()
CLASS CONSTRUCTOR.

Method Detail

getIDs

public java.util.Map getIDs()
Return map of IDs.

Returns:
Map

validate

public void validate(MetsVElement element)
              throws MetsException
Validate an element and its content model.

Parameters:
element - Element
Throws:
MetsException - Validation exception

validateIDREFs

public void validateIDREFs(MetsVElement element)
                    throws MetsException
Validate an element and its content model for ID/IDREF consistency.

Parameters:
element - Element
Throws:
MetsException - Validation exception