org.opennms.netmgt.config.tl1d
Class Tl1Element

java.lang.Object
  extended by org.opennms.netmgt.config.tl1d.Tl1Element
All Implemented Interfaces:
Serializable

public class Tl1Element
extends Object
implements Serializable

Class Tl1Element.

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

Constructor Summary
Tl1Element()
           
 
Method Summary
 void deletePort()
           
 void deleteReconnectDelay()
           
 String getHost()
          Returns the value of field 'host'.
 String getPassword()
          Returns the value of field 'password'.
 int getPort()
          Returns the value of field 'port'.
 long getReconnectDelay()
          Returns the value of field 'reconnectDelay'.
 String getTl1ClientApi()
          Returns the value of field 'tl1ClientApi'.
 String getTl1MessageParser()
          Returns the value of field 'tl1MessageParser'.
 String getUserid()
          Returns the value of field 'userid'.
 boolean hasPort()
          Method hasPort.
 boolean hasReconnectDelay()
          Method hasReconnectDelay.
 boolean isValid()
          Method isValid.
 void marshal(ContentHandler handler)
           
 void marshal(Writer out)
           
 void setHost(String host)
          Sets the value of field 'host'.
 void setPassword(String password)
          Sets the value of field 'password'.
 void setPort(int port)
          Sets the value of field 'port'.
 void setReconnectDelay(long reconnectDelay)
          Sets the value of field 'reconnectDelay'.
 void setTl1ClientApi(String tl1ClientApi)
          Sets the value of field 'tl1ClientApi'.
 void setTl1MessageParser(String tl1MessageParser)
          Sets the value of field 'tl1MessageParser'.
 void setUserid(String userid)
          Sets the value of field 'userid'.
static Tl1Element 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

Tl1Element

public Tl1Element()
Method Detail

deletePort

public void deletePort()

deleteReconnectDelay

public void deleteReconnectDelay()

getHost

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

Returns:
the value of field 'Host'.

getPassword

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

Returns:
the value of field 'Password'.

getPort

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

Returns:
the value of field 'Port'.

getReconnectDelay

public long getReconnectDelay()
Returns the value of field 'reconnectDelay'.

Returns:
the value of field 'ReconnectDelay'.

getTl1ClientApi

public String getTl1ClientApi()
Returns the value of field 'tl1ClientApi'.

Returns:
the value of field 'Tl1ClientApi'.

getTl1MessageParser

public String getTl1MessageParser()
Returns the value of field 'tl1MessageParser'.

Returns:
the value of field 'Tl1MessageParser'.

getUserid

public String getUserid()
Returns the value of field 'userid'.

Returns:
the value of field 'Userid'.

hasPort

public boolean hasPort()
Method hasPort.

Returns:
true if at least one Port has been added

hasReconnectDelay

public boolean hasReconnectDelay()
Method hasReconnectDelay.

Returns:
true if at least one ReconnectDelay 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

setHost

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

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

setPassword

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

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

setPort

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

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

setReconnectDelay

public void setReconnectDelay(long reconnectDelay)
Sets the value of field 'reconnectDelay'.

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

setTl1ClientApi

public void setTl1ClientApi(String tl1ClientApi)
Sets the value of field 'tl1ClientApi'.

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

setTl1MessageParser

public void setTl1MessageParser(String tl1MessageParser)
Sets the value of field 'tl1MessageParser'.

Parameters:
tl1MessageParser - the value of field 'tl1MessageParser'

setUserid

public void setUserid(String userid)
Sets the value of field 'userid'.

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

unmarshal

public static Tl1Element 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.tl1d.Tl1Element
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.