org.opennms.netmgt.config.rws
Class BaseUrl

java.lang.Object
  extended by org.opennms.netmgt.config.rws.BaseUrl
All Implemented Interfaces:
Serializable

public class BaseUrl
extends Object
implements Serializable

Base Url(s) for Rancid Server.

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

Constructor Summary
BaseUrl()
           
 
Method Summary
 void deleteTimeout()
           
 boolean equals(Object obj)
          Overrides the java.lang.Object.equals method.
 String getDirectory()
          Returns the value of field 'directory'.
 String getPassword()
          Returns the value of field 'password'.
 String getServer_url()
          Returns the value of field 'server_url'.
 int getTimeout()
          Returns the value of field 'timeout'.
 String getUsername()
          Returns the value of field 'username'.
 int hashCode()
          Overrides the java.lang.Object.hashCode method.
 boolean hasTimeout()
          Method hasTimeout.
 boolean isValid()
          Method isValid.
 void marshal(ContentHandler handler)
           
 void marshal(Writer out)
           
 void setDirectory(String directory)
          Sets the value of field 'directory'.
 void setPassword(String password)
          Sets the value of field 'password'.
 void setServer_url(String server_url)
          Sets the value of field 'server_url'.
 void setTimeout(int timeout)
          Sets the value of field 'timeout'.
 void setUsername(String username)
          Sets the value of field 'username'.
static BaseUrl unmarshal(Reader reader)
          Method unmarshal.
 void validate()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseUrl

public BaseUrl()
Method Detail

deleteTimeout

public void deleteTimeout()

equals

public boolean equals(Object obj)
Overrides the java.lang.Object.equals method.

Overrides:
equals in class Object
Parameters:
obj -
Returns:
true if the objects are equal.

getDirectory

public String getDirectory()
Returns the value of field 'directory'.

Returns:
the value of field 'Directory'.

getPassword

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

Returns:
the value of field 'Password'.

getServer_url

public String getServer_url()
Returns the value of field 'server_url'.

Returns:
the value of field 'Server_url'.

getTimeout

public int getTimeout()
Returns the value of field 'timeout'.

Returns:
the value of field 'Timeout'.

getUsername

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

Returns:
the value of field 'Username'.

hasTimeout

public boolean hasTimeout()
Method hasTimeout.

Returns:
true if at least one Timeout has been added

hashCode

public int hashCode()
Overrides the java.lang.Object.hashCode method.

The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3

Overrides:
hashCode in class Object
Returns:
a hash code value for the object.

isValid

public boolean isValid()
Method isValid.

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

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

setDirectory

public void setDirectory(String directory)
Sets the value of field 'directory'.

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

setPassword

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

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

setServer_url

public void setServer_url(String server_url)
Sets the value of field 'server_url'.

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

setTimeout

public void setTimeout(int timeout)
Sets the value of field 'timeout'.

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

setUsername

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

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

unmarshal

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

Parameters:
reader -
Returns:
the unmarshaled org.opennms.netmgt.config.rws.BaseUrl
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 © 2011. All Rights Reserved.