org.opennms.netmgt.config.xmpConfig
Class XmpConfig

java.lang.Object
  extended by org.opennms.netmgt.config.xmpConfig.XmpConfig
All Implemented Interfaces:
Serializable

public class XmpConfig
extends Object
implements Serializable

Top-level element for the xmp-config.xml configuration file.

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

Constructor Summary
XmpConfig()
           
 
Method Summary
 void deletePort()
           
 void deleteRetry()
           
 void deleteTimeout()
           
 String getAuthenUser()
          Returns the value of field 'authenUser'.
 int getPort()
          Returns the value of field 'port'.
 int getRetry()
          Returns the value of field 'retry'.
 int getTimeout()
          Returns the value of field 'timeout'.
 boolean hasPort()
          Method hasPort.
 boolean hasRetry()
          Method hasRetry.
 boolean hasTimeout()
          Method hasTimeout.
 boolean isValid()
          Method isValid.
 void marshal(ContentHandler handler)
           
 void marshal(Writer out)
           
 void setAuthenUser(String authenUser)
          Sets the value of field 'authenUser'.
 void setPort(int port)
          Sets the value of field 'port'.
 void setRetry(int retry)
          Sets the value of field 'retry'.
 void setTimeout(int timeout)
          Sets the value of field 'timeout'.
static XmpConfig unmarshal(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

XmpConfig

public XmpConfig()
Method Detail

deletePort

public void deletePort()

deleteRetry

public void deleteRetry()

deleteTimeout

public void deleteTimeout()

getAuthenUser

public String getAuthenUser()
Returns the value of field 'authenUser'. The field 'authenUser' has the following description: Default XMP user/profile

Returns:
the value of field 'AuthenUser'.

getPort

public int getPort()
Returns the value of field 'port'. The field 'port' has the following description: If set, overrides TCP port 5270 as the port where XMP documents (queries) are sent.

Returns:
the value of field 'Port'.

getRetry

public int getRetry()
Returns the value of field 'retry'. The field 'retry' has the following description: Default number of retries

Returns:
the value of field 'Retry'.

getTimeout

public int getTimeout()
Returns the value of field 'timeout'. The field 'timeout' has the following description: Default timeout (in milliseconds)

Returns:
the value of field 'Timeout'.

hasPort

public boolean hasPort()
Method hasPort.

Returns:
true if at least one Port has been added

hasRetry

public boolean hasRetry()
Method hasRetry.

Returns:
true if at least one Retry has been added

hasTimeout

public boolean hasTimeout()
Method hasTimeout.

Returns:
true if at least one Timeout has been added

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

setAuthenUser

public void setAuthenUser(String authenUser)
Sets the value of field 'authenUser'. The field 'authenUser' has the following description: Default XMP user/profile

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

setPort

public void setPort(int port)
Sets the value of field 'port'. The field 'port' has the following description: If set, overrides TCP port 5270 as the port where XMP documents (queries) are sent.

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

setRetry

public void setRetry(int retry)
Sets the value of field 'retry'. The field 'retry' has the following description: Default number of retries

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

setTimeout

public void setTimeout(int timeout)
Sets the value of field 'timeout'. The field 'timeout' has the following description: Default timeout (in milliseconds)

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

unmarshal

public static XmpConfig 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.xmpConfig.XmpConfig
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 © 2009. All Rights Reserved.