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

java.lang.Object
  extended byedu.harvard.hul.ois.mets.helper.MetsElement
      extended byedu.harvard.hul.ois.mets.helper.Any
All Implemented Interfaces:
MetsSerializable

public class Any
extends MetsElement


Field Summary
 
Fields inherited from class edu.harvard.hul.ois.mets.helper.MetsElement
_attrs, _content, _localName, _namespace, _qName, _schema
 
Constructor Summary
Any()
          Instantiate a name-less Any object.
Any(java.lang.String qName)
          Instantiate a named Any object.
Any(java.lang.String qName, Attributes attrs)
          Instantiate a named Any object with attributes.
Any(java.lang.String qName, Attributes attrs, java.lang.String content)
          Instantiate a named Any object with attributes and text content.
Any(java.lang.String qName, java.lang.String content)
          Instantiate a named Any object with text content.
 
Method Summary
 void read(MetsReader r)
          De-serialize the content of the instance document into this element using the given reader
static Any reader(MetsReader r)
          Instantiate a Any object de-serialized from the input stream.
 void write(MetsWriter w)
          Serialize this element and its content model using the given writer.
 
Methods inherited from class edu.harvard.hul.ois.mets.helper.MetsElement
getContent, getLocalName, getNamespace, getQName, getSchemas, init, setSchema, setSchema, writeSchemas
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Any

public Any()
Instantiate a name-less Any object.


Any

public Any(java.lang.String qName)
Instantiate a named Any object.

Parameters:
qName - Element QName

Any

public Any(java.lang.String qName,
           java.lang.String content)
Instantiate a named Any object with text content.

Parameters:
qName - Element QName
content - Text content

Any

public Any(java.lang.String qName,
           Attributes attrs)
Instantiate a named Any object with attributes.

Parameters:
qName - Element QName
attrs - Attributes

Any

public Any(java.lang.String qName,
           Attributes attrs,
           java.lang.String content)
Instantiate a named Any object with attributes and text content.

Parameters:
qName - Element QName
attrs - Attributes
content - Text content
Method Detail

reader

public static Any reader(MetsReader r)
                  throws MetsException
Instantiate a Any object de-serialized from the input stream.

Parameters:
r - Reader
Returns:
Any object
Throws:
MetsException - De-serializing exception

read

public void read(MetsReader r)
          throws MetsException
De-serialize the content of the instance document into this element using the given reader

Specified by:
read in interface MetsSerializable
Specified by:
read in class MetsElement
Parameters:
r - Reader
Throws:
MetsException - I/O exception

write

public void write(MetsWriter w)
           throws MetsException
Serialize this element and its content model using the given writer.

Specified by:
write in interface MetsSerializable
Specified by:
write in class MetsElement
Parameters:
w - Writer
Throws:
MetsException - I/O exception