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

java.lang.Object
  extended byedu.harvard.hul.ois.mets.helper.MetsElement
      extended byedu.harvard.hul.ois.mets.helper.MetsVElement
All Implemented Interfaces:
MetsSerializable, MetsValidatable
Direct Known Subclasses:
BinData, MetsIDElement, Name, Note, Stream, TransformFile, XmlData

public abstract class MetsVElement
extends MetsElement
implements MetsValidatable

Abstract validatable element class.


Field Summary
protected  boolean _valid
          Validation flag.
 
Fields inherited from class edu.harvard.hul.ois.mets.helper.MetsElement
_attrs, _content, _localName, _namespace, _qName, _schema
 
Constructor Summary
MetsVElement(java.lang.String qName)
          Instantiate an MetsVElement object.
 
Method Summary
 boolean isValid()
          Get the validity flag.
 void validate(MetsValidator v)
          Validate this element and its content model using the given validator.
 void validateIDREFs(MetsValidator v)
          Validate this element for ID/IDREF and its content model for consistency using the given validator.
 void validateThis(MetsValidator v)
          Validate this element using the given validator.
 void validateThisIDREFs(MetsValidator v)
          Validate this element for ID/IDREF consistency using the given validator.
 
Methods inherited from class edu.harvard.hul.ois.mets.helper.MetsElement
getContent, getLocalName, getNamespace, getQName, getSchemas, init, read, setSchema, setSchema, write, writeSchemas
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_valid

protected boolean _valid
Validation flag.

Constructor Detail

MetsVElement

public MetsVElement(java.lang.String qName)
Instantiate an MetsVElement object.

Parameters:
qName - Element local name
Method Detail

isValid

public boolean isValid()
Get the validity flag.

Specified by:
isValid in interface MetsValidatable
Returns:
Validity flag

validate

public void validate(MetsValidator v)
              throws MetsException
Validate this element and its content model using the given validator.

Specified by:
validate in interface MetsValidatable
Parameters:
v - Validator
Throws:
MetsException - Validation exception

validateIDREFs

public void validateIDREFs(MetsValidator v)
                    throws MetsException
Validate this element for ID/IDREF and its content model for consistency using the given validator.

Parameters:
v - Validator
Throws:
MetsException - Validation exception

validateThis

public void validateThis(MetsValidator v)
                  throws MetsException
Validate this element using the given validator.

Specified by:
validateThis in interface MetsValidatable
Parameters:
v - Validator
Throws:
MetsException - Validation exception

validateThisIDREFs

public void validateThisIDREFs(MetsValidator v)
                        throws MetsException
Validate this element for ID/IDREF consistency using the given validator.

Parameters:
v - Validator
Throws:
MetsException - Validation exception