edu.indiana.dlib.metsnav.mets.v1_4
Class XmlData

java.lang.Object
  extended by edu.indiana.dlib.metsnav.mets.v1_4.XmlData
All Implemented Interfaces:
Serializable

public class XmlData
extends Object
implements Serializable

xmlData: A wrapper element used to contain an XML encoded file.

See Also:
Serialized Form

Constructor Summary
XmlData()
           
 
Method Summary
 void addAnyObject(int index, Object vAnyObject)
          Method addAnyObject
 void addAnyObject(Object vAnyObject)
          Method addAnyObject
 void clearAnyObject()
          Method clearAnyObject
 Enumeration enumerateAnyObject()
          Method enumerateAnyObject
 Object[] getAnyObject()
          Method getAnyObject
 Object getAnyObject(int index)
          Method getAnyObject
 int getAnyObjectCount()
          Method getAnyObjectCount
 boolean isValid()
          Method isValid
 void marshal(ContentHandler handler)
          Method marshal
 void marshal(Writer out)
          Method marshal
 boolean removeAnyObject(Object vAnyObject)
          Method removeAnyObject
 void setAnyObject(int index, Object vAnyObject)
          Method setAnyObject
 void setAnyObject(Object[] anyObjectArray)
          Method setAnyObject
static Object unmarshal(Reader reader)
          Method unmarshal
 void validate()
          Method validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlData

public XmlData()
Method Detail

addAnyObject

public void addAnyObject(Object vAnyObject)
                  throws IndexOutOfBoundsException
Method addAnyObject

Parameters:
vAnyObject -
Throws:
IndexOutOfBoundsException

addAnyObject

public void addAnyObject(int index,
                         Object vAnyObject)
                  throws IndexOutOfBoundsException
Method addAnyObject

Parameters:
index -
vAnyObject -
Throws:
IndexOutOfBoundsException

clearAnyObject

public void clearAnyObject()
Method clearAnyObject


enumerateAnyObject

public Enumeration enumerateAnyObject()
Method enumerateAnyObject

Returns:
Enumeration

getAnyObject

public Object getAnyObject(int index)
                    throws IndexOutOfBoundsException
Method getAnyObject

Parameters:
index -
Returns:
Object
Throws:
IndexOutOfBoundsException

getAnyObject

public Object[] getAnyObject()
Method getAnyObject

Returns:
Object

getAnyObjectCount

public int getAnyObjectCount()
Method getAnyObjectCount

Returns:
int

isValid

public boolean isValid()
Method isValid

Returns:
boolean

marshal

public void marshal(Writer out)
             throws MarshalException,
                    ValidationException
Method marshal

Parameters:
out -
Throws:
MarshalException
ValidationException

marshal

public void marshal(ContentHandler handler)
             throws IOException,
                    MarshalException,
                    ValidationException
Method marshal

Parameters:
handler -
Throws:
IOException
MarshalException
ValidationException

removeAnyObject

public boolean removeAnyObject(Object vAnyObject)
Method removeAnyObject

Parameters:
vAnyObject -
Returns:
boolean

setAnyObject

public void setAnyObject(int index,
                         Object vAnyObject)
                  throws IndexOutOfBoundsException
Method setAnyObject

Parameters:
index -
vAnyObject -
Throws:
IndexOutOfBoundsException

setAnyObject

public void setAnyObject(Object[] anyObjectArray)
Method setAnyObject

Parameters:
anyObjectArray -

unmarshal

public static Object unmarshal(Reader reader)
                        throws MarshalException,
                               ValidationException
Method unmarshal

Parameters:
reader -
Returns:
Object
Throws:
MarshalException
ValidationException

validate

public void validate()
              throws ValidationException
Method validate

Throws:
ValidationException


Copyright © 2005 Trustees of Indiana University. All Rights Reserved.