public class ReadmailConfig extends Object implements Serializable
Type | Property and Description |
---|---|
Enumeration<JavamailProperty> |
enumerateJavamail
Method enumerateJavamailProperty.
|
Iterator<JavamailProperty> |
iterateJavamail
Method iterateJavamailProperty.
|
Constructor and Description |
---|
ReadmailConfig() |
Modifier and Type | Method and Description |
---|---|
void |
addJavamailProperty(int index,
JavamailProperty vJavamailProperty) |
void |
addJavamailProperty(JavamailProperty vJavamailProperty) |
void |
deleteAttemptInterval() |
void |
deleteDebug() |
void |
deleteDeleteAllMail() |
Enumeration<JavamailProperty> |
enumerateJavamailProperty()
Method enumerateJavamailProperty.
|
boolean |
equals(Object obj)
Overrides the java.lang.Object.equals method.
|
long |
getAttemptInterval()
Returns the value of field 'attemptInterval'.
|
boolean |
getDebug()
Returns the value of field 'debug'.
|
boolean |
getDeleteAllMail()
Returns the value of field 'deleteAllMail'.
|
JavamailProperty[] |
getJavamailProperty()
Method getJavamailProperty.Returns the contents of the
collection in an Array.
|
JavamailProperty |
getJavamailProperty(int index)
Method getJavamailProperty.
|
List<JavamailProperty> |
getJavamailPropertyCollection()
Method getJavamailPropertyCollection.Returns a reference to
'_javamailPropertyList'.
|
int |
getJavamailPropertyCount()
Method getJavamailPropertyCount.
|
String |
getMailFolder()
Returns the value of field 'mailFolder'.
|
String |
getName()
Returns the value of field 'name'.
|
ReadmailHost |
getReadmailHost()
Returns the value of field 'readmailHost'.
|
UserAuth |
getUserAuth()
Returns the value of field 'userAuth'.
|
boolean |
hasAttemptInterval()
Method hasAttemptInterval.
|
boolean |
hasDebug()
Method hasDebug.
|
boolean |
hasDeleteAllMail()
Method hasDeleteAllMail.
|
int |
hashCode()
Overrides the java.lang.Object.hashCode method.
|
boolean |
isDebug()
Returns the value of field 'debug'.
|
boolean |
isDeleteAllMail()
Returns the value of field 'deleteAllMail'.
|
boolean |
isValid()
Method isValid.
|
Iterator<JavamailProperty> |
iterateJavamailProperty()
Method iterateJavamailProperty.
|
void |
marshal(ContentHandler handler) |
void |
marshal(Writer out) |
void |
removeAllJavamailProperty() |
boolean |
removeJavamailProperty(JavamailProperty vJavamailProperty)
Method removeJavamailProperty.
|
JavamailProperty |
removeJavamailPropertyAt(int index)
Method removeJavamailPropertyAt.
|
void |
setAttemptInterval(long attemptInterval)
Sets the value of field 'attemptInterval'.
|
void |
setDebug(boolean debug)
Sets the value of field 'debug'.
|
void |
setDeleteAllMail(boolean deleteAllMail)
Sets the value of field 'deleteAllMail'.
|
void |
setJavamailProperty(int index,
JavamailProperty vJavamailProperty) |
void |
setJavamailProperty(JavamailProperty[] vJavamailPropertyArray) |
void |
setJavamailProperty(List<JavamailProperty> vJavamailPropertyList)
Sets the value of '_javamailPropertyList' by copying the
given Vector.
|
void |
setJavamailPropertyCollection(List<JavamailProperty> javamailPropertyList)
Deprecated.
|
void |
setMailFolder(String mailFolder)
Sets the value of field 'mailFolder'.
|
void |
setName(String name)
Sets the value of field 'name'.
|
void |
setReadmailHost(ReadmailHost readmailHost)
Sets the value of field 'readmailHost'.
|
void |
setUserAuth(UserAuth userAuth)
Sets the value of field 'userAuth'.
|
static ReadmailConfig |
unmarshal(Reader reader)
Method unmarshal.
|
void |
validate() |
public Enumeration<JavamailProperty> enumerateJavamailProperty
public Iterator<JavamailProperty> iterateJavamailProperty
public void addJavamailProperty(JavamailProperty vJavamailProperty) throws IndexOutOfBoundsException
vJavamailProperty
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addJavamailProperty(int index, JavamailProperty vJavamailProperty) throws IndexOutOfBoundsException
index
- vJavamailProperty
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void deleteAttemptInterval()
public void deleteDebug()
public void deleteDeleteAllMail()
public Enumeration<JavamailProperty> enumerateJavamailProperty()
public boolean equals(Object obj)
public long getAttemptInterval()
public boolean getDebug()
public boolean getDeleteAllMail()
public JavamailProperty getJavamailProperty(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic JavamailProperty[] getJavamailProperty()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public List<JavamailProperty> getJavamailPropertyCollection()
public int getJavamailPropertyCount()
public String getMailFolder()
public String getName()
public ReadmailHost getReadmailHost()
public UserAuth getUserAuth()
public boolean hasAttemptInterval()
public boolean hasDebug()
public boolean hasDeleteAllMail()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
public boolean isDebug()
public boolean isDeleteAllMail()
public boolean isValid()
public Iterator<JavamailProperty> iterateJavamailProperty()
public void marshal(Writer out) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
out
- org.exolab.castor.xml.MarshalException
- if object is
null or if any SAXException is thrown during marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemapublic void marshal(ContentHandler handler) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
handler
- IOException
- if an IOException occurs during
marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemaorg.exolab.castor.xml.MarshalException
- if object is
null or if any SAXException is thrown during marshalingpublic void removeAllJavamailProperty()
public boolean removeJavamailProperty(JavamailProperty vJavamailProperty)
vJavamailProperty
- public JavamailProperty removeJavamailPropertyAt(int index)
index
- public void setAttemptInterval(long attemptInterval)
attemptInterval
- the value of field 'attemptInterval'.public void setDebug(boolean debug)
debug
- the value of field 'debug'.public void setDeleteAllMail(boolean deleteAllMail)
deleteAllMail
- the value of field 'deleteAllMail'.public void setJavamailProperty(int index, JavamailProperty vJavamailProperty) throws IndexOutOfBoundsException
index
- vJavamailProperty
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setJavamailProperty(JavamailProperty[] vJavamailPropertyArray)
vJavamailPropertyArray
- public void setJavamailProperty(List<JavamailProperty> vJavamailPropertyList)
vJavamailPropertyList
- the Vector to copy.public void setJavamailPropertyCollection(List<JavamailProperty> javamailPropertyList)
javamailPropertyList
- the Vector to set.public void setMailFolder(String mailFolder)
mailFolder
- the value of field 'mailFolder'.public void setName(String name)
name
- the value of field 'name'.public void setReadmailHost(ReadmailHost readmailHost)
readmailHost
- the value of field 'readmailHost'.public void setUserAuth(UserAuth userAuth)
userAuth
- the value of field 'userAuth'.public static ReadmailConfig unmarshal(Reader reader) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
reader
- org.exolab.castor.xml.MarshalException
- if object is
null or if any SAXException is thrown during marshalingorg.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemapublic void validate() throws org.exolab.castor.xml.ValidationException
org.exolab.castor.xml.ValidationException
- if this
object is an invalid instance according to the schemaCopyright © 2015. All rights reserved.