commgrids.nuggets.wiley.schema
Class Keywords

java.lang.Object
  extended bycommgrids.nuggets.wiley.schema.Keywords
All Implemented Interfaces:
java.io.Serializable

public class Keywords
extends java.lang.Object
implements java.io.Serializable

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
Keywords()
           
 
Method Summary
 void addKeyword(int index, java.lang.String vKeyword)
           
 void addKeyword(java.lang.String vKeyword)
           
 java.util.Enumeration enumerateKeyword()
           
 java.lang.String[] getKeyword()
           
 java.lang.String getKeyword(int index)
           
 int getKeywordCount()
           
 boolean isValid()
           
 void marshal(org.xml.sax.ContentHandler handler)
           
 void marshal(java.io.Writer out)
           
 void removeAllKeyword()
           
 java.lang.String removeKeyword(int index)
           
 void setKeyword(int index, java.lang.String vKeyword)
           
 void setKeyword(java.lang.String[] keywordArray)
           
static Keywords unmarshal(java.io.Reader reader)
           
 void validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Keywords

public Keywords()
Method Detail

addKeyword

public void addKeyword(java.lang.String vKeyword)
                throws java.lang.IndexOutOfBoundsException
Parameters:
vKeyword -
Throws:
java.lang.IndexOutOfBoundsException

addKeyword

public void addKeyword(int index,
                       java.lang.String vKeyword)
                throws java.lang.IndexOutOfBoundsException
Parameters:
index -
vKeyword -
Throws:
java.lang.IndexOutOfBoundsException

enumerateKeyword

public java.util.Enumeration enumerateKeyword()

getKeyword

public java.lang.String getKeyword(int index)
                            throws java.lang.IndexOutOfBoundsException
Parameters:
index -
Throws:
java.lang.IndexOutOfBoundsException

getKeyword

public java.lang.String[] getKeyword()

getKeywordCount

public int getKeywordCount()

isValid

public boolean isValid()

marshal

public void marshal(java.io.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(org.xml.sax.ContentHandler handler)
             throws java.io.IOException,
                    org.exolab.castor.xml.MarshalException,
                    org.exolab.castor.xml.ValidationException
Parameters:
handler -
Throws:
java.io.IOException
org.exolab.castor.xml.MarshalException
org.exolab.castor.xml.ValidationException

removeAllKeyword

public void removeAllKeyword()

removeKeyword

public java.lang.String removeKeyword(int index)
Parameters:
index -

setKeyword

public void setKeyword(int index,
                       java.lang.String vKeyword)
                throws java.lang.IndexOutOfBoundsException
Parameters:
index -
vKeyword -
Throws:
java.lang.IndexOutOfBoundsException

setKeyword

public void setKeyword(java.lang.String[] keywordArray)
Parameters:
keywordArray -

unmarshal

public static Keywords unmarshal(java.io.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