org.globus.cog.abstraction.xml
Class AttributeList

java.lang.Object
  extended byorg.globus.cog.abstraction.xml.AttributeList
All Implemented Interfaces:
Serializable

public class AttributeList
extends Object
implements Serializable

List of attributes defined as "name" "value" pairs

Version:
$Revision: 1.1 $ $Date: 2005/04/22 09:53:24 $
See Also:
Serialized Form

Constructor Summary
AttributeList()
           
 
Method Summary
 void addAttribute(Attribute vAttribute)
           
 Enumeration enumerateAttribute()
           
 Attribute[] getAttribute()
           
 Attribute getAttribute(int index)
           
 int getAttributeCount()
           
 boolean isValid()
           
 void marshal(DocumentHandler handler)
           
 void marshal(Writer out)
           
 void removeAllAttribute()
           
 Attribute removeAttribute(int index)
           
 void setAttribute(Attribute[] attributeArray)
           
 void setAttribute(int index, Attribute vAttribute)
           
static AttributeList unmarshal(Reader reader)
           
 void validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeList

public AttributeList()
Method Detail

addAttribute

public void addAttribute(Attribute vAttribute)
                  throws IndexOutOfBoundsException
Parameters:
vAttribute -
Throws:
IndexOutOfBoundsException

enumerateAttribute

public Enumeration enumerateAttribute()

getAttribute

public Attribute getAttribute(int index)
                       throws IndexOutOfBoundsException
Parameters:
index -
Throws:
IndexOutOfBoundsException

getAttribute

public Attribute[] getAttribute()

getAttributeCount

public int getAttributeCount()

isValid

public boolean isValid()

marshal

public void marshal(Writer out)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Parameters:
out -
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

marshal

public void marshal(DocumentHandler handler)
             throws org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Parameters:
handler -
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

removeAllAttribute

public void removeAllAttribute()

removeAttribute

public Attribute removeAttribute(int index)
Parameters:
index -

setAttribute

public void setAttribute(int index,
                         Attribute vAttribute)
                  throws IndexOutOfBoundsException
Parameters:
index -
vAttribute -
Throws:
IndexOutOfBoundsException

setAttribute

public void setAttribute(Attribute[] attributeArray)
Parameters:
attributeArray -

unmarshal

public static AttributeList unmarshal(Reader reader)
                               throws org.exolab.castor.xml.MarshalException,
                                      org.exolab.castor.xml.ValidationException
Parameters:
reader -
Throws:
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

validate

public void validate()
              throws org.exolab.castor.xml.ValidationException
Throws:
org.exolab.castor.xml.ValidationException