net.bioclipse.xws.client.disco
Class Info

java.lang.Object
  extended by net.bioclipse.xws.client.disco.Info

public class Info
extends java.lang.Object


Nested Class Summary
static class Info.AdHocType
           
 
Constructor Summary
Info(Info info)
          Initializes a newly created Info object.
Info(java.lang.String description, Info.AdHocType type)
          Initializes a newly created Info object.
Info(XmppException xmpp_exception)
          Initializes a newly created Info object.
 
Method Summary
 java.lang.String getDescription()
          Returns the description of the XMPP item.
 XmppException getDiscoError()
          Returns the discovery error or null.
 DiscoStatus getDiscoStatus()
          Returns the discovery status.
 boolean isCompatibleFunction()
          Returns true if the XMPP item is a XMPP Service function compatible with XEP-0244: IO Data.
 boolean isFunction()
          Returns true if the XMPP item is a XMPP Service function.
 boolean isService()
          Returns true if the XMPP item is a XMPP Service.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Info

public Info(java.lang.String description,
            Info.AdHocType type)
Initializes a newly created Info object.

Parameters:
description - The description of the XMPP item.
type - The Ad-Hoc Command type of XMPP item.

Info

public Info(XmppException xmpp_exception)
Initializes a newly created Info object.

Parameters:
xmpp_exception - The discovery error.

Info

public Info(Info info)
Initializes a newly created Info object. Copy constructor.

Parameters:
info - The Info object to copy.
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getDescription

public java.lang.String getDescription()
Returns the description of the XMPP item.

Returns:
The description of the XMPP item.

isService

public boolean isService()
Returns true if the XMPP item is a XMPP Service.

Returns:
true if the XMPP item is a XMPP Service. false otherwise.

isFunction

public boolean isFunction()
Returns true if the XMPP item is a XMPP Service function.

Returns:
true if the XMPP item is a XMPP Service function. false otherwise.

isCompatibleFunction

public boolean isCompatibleFunction()
Returns true if the XMPP item is a XMPP Service function compatible with XEP-0244: IO Data.

Returns:
true if the XMPP item is a XMPP Service function. false otherwise.

getDiscoStatus

public DiscoStatus getDiscoStatus()
Returns the discovery status.

Returns:
The discovery status.

getDiscoError

public XmppException getDiscoError()
Returns the discovery error or null.

Returns:
The discovery error or null.