com.calfater.mailcarbon.binding
Class Server

java.lang.Object
  extended by com.calfater.mailcarbon.binding.Server
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
Dst, Src

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

Class Server.

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

Constructor Summary
Server()
           
 
Method Summary
 void deletePort()
           
 File getFile()
          Returns the value of field 'file'.
 java.lang.String getHost()
          Returns the value of field 'host'.
 java.lang.String getPassword()
          Returns the value of field 'password'.
 long getPort()
          Returns the value of field 'port'.
 java.lang.String getProtocol()
          Returns the value of field 'protocol'.
 java.lang.String getUsername()
          Returns the value of field 'username'.
 boolean hasPort()
          Method hasPort.
 boolean isValid()
          Method isValid.
 void marshal(org.xml.sax.ContentHandler handler)
           
 void marshal(java.io.Writer out)
           
 void setFile(File file)
          Sets the value of field 'file'.
 void setHost(java.lang.String host)
          Sets the value of field 'host'.
 void setPassword(java.lang.String password)
          Sets the value of field 'password'.
 void setPort(long port)
          Sets the value of field 'port'.
 void setProtocol(java.lang.String protocol)
          Sets the value of field 'protocol'.
 void setUsername(java.lang.String username)
          Sets the value of field 'username'.
static Server unmarshal(java.io.Reader reader)
          Method unmarshal.
 void validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Server

public Server()
Method Detail

deletePort

public void deletePort()

getFile

public File getFile()
Returns the value of field 'file'.

Returns:
the value of field 'File'.

getHost

public java.lang.String getHost()
Returns the value of field 'host'.

Returns:
the value of field 'Host'.

getPassword

public java.lang.String getPassword()
Returns the value of field 'password'.

Returns:
the value of field 'Password'.

getPort

public long getPort()
Returns the value of field 'port'.

Returns:
the value of field 'Port'.

getProtocol

public java.lang.String getProtocol()
Returns the value of field 'protocol'.

Returns:
the value of field 'Protocol'.

getUsername

public java.lang.String getUsername()
Returns the value of field 'username'.

Returns:
the value of field 'Username'.

hasPort

public boolean hasPort()
Method hasPort.

Returns:
true if at least one Port has been added

isValid

public boolean isValid()
Method isValid.

Returns:
true if this object is valid according to the schema

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 - if object is null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException - if this object is an invalid instance according to the schema

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 - if an IOException occurs during marshaling
org.exolab.castor.xml.ValidationException - if this object is an invalid instance according to the schema
org.exolab.castor.xml.MarshalException - if object is null or if any SAXException is thrown during marshaling

setFile

public void setFile(File file)
Sets the value of field 'file'.

Parameters:
file - the value of field 'file'.

setHost

public void setHost(java.lang.String host)
Sets the value of field 'host'.

Parameters:
host - the value of field 'host'.

setPassword

public void setPassword(java.lang.String password)
Sets the value of field 'password'.

Parameters:
password - the value of field 'password'.

setPort

public void setPort(long port)
Sets the value of field 'port'.

Parameters:
port - the value of field 'port'.

setProtocol

public void setProtocol(java.lang.String protocol)
Sets the value of field 'protocol'.

Parameters:
protocol - the value of field 'protocol'.

setUsername

public void setUsername(java.lang.String username)
Sets the value of field 'username'.

Parameters:
username - the value of field 'username'.

unmarshal

public static Server unmarshal(java.io.Reader reader)
                        throws org.exolab.castor.xml.MarshalException,
                               org.exolab.castor.xml.ValidationException
Method unmarshal.

Parameters:
reader -
Returns:
the unmarshaled com.calfater.mailcarbon.binding.Serve
Throws:
org.exolab.castor.xml.MarshalException - if object is null or if any SAXException is thrown during marshaling
org.exolab.castor.xml.ValidationException - if this object is an invalid instance according to the schema

validate

public void validate()
              throws org.exolab.castor.xml.ValidationException
Throws:
org.exolab.castor.xml.ValidationException - if this object is an invalid instance according to the schema


Copyright © 2010. All Rights Reserved.