synergynetframework.appsystem.services.net.landiscovery
Class ServiceDescriptor

java.lang.Object
  extended by synergynetframework.appsystem.services.net.landiscovery.ServiceDescriptor
All Implemented Interfaces:
java.lang.Comparable<ServiceDescriptor>

public class ServiceDescriptor
extends java.lang.Object
implements java.lang.Comparable<ServiceDescriptor>

The Class ServiceDescriptor.


Constructor Summary
ServiceDescriptor()
          Instantiates a new service descriptor.
 
Method Summary
 int compareTo(ServiceDescriptor o)
           
 boolean equals(java.lang.Object obj)
           
 java.net.InetAddress getServiceAddress()
          Gets the service address.
static ServiceDescriptor getServiceDescriptorFromStringRepresentation(java.lang.String s)
          Gets the service descriptor from string representation.
 java.lang.String getServiceName()
          Gets the service name.
 int getServicePort()
          Gets the service port.
 java.lang.String getServiceType()
          Gets the service type.
 java.lang.String getStringRepresentation()
          Gets the string representation.
 java.lang.String getUserData()
          Gets the user data.
 int hashCode()
           
 void setServiceAddress(java.net.InetAddress serviceAddress)
          Sets the service address.
 void setServiceName(java.lang.String serviceName)
          Sets the service name.
 void setServicePort(int servicePort)
          Sets the service port.
 void setServiceType(java.lang.String serviceType)
          Sets the service type.
 void setUserData(java.lang.String userData)
          Sets the user data.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceDescriptor

public ServiceDescriptor()
Instantiates a new service descriptor.

Method Detail

getServiceDescriptorFromStringRepresentation

public static ServiceDescriptor getServiceDescriptorFromStringRepresentation(java.lang.String s)
Gets the service descriptor from string representation.

Parameters:
s - the s
Returns:
the service descriptor from string representation

compareTo

public int compareTo(ServiceDescriptor o)
Specified by:
compareTo in interface java.lang.Comparable<ServiceDescriptor>

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

getServiceAddress

public java.net.InetAddress getServiceAddress()
Gets the service address.

Returns:
the service address

getServiceName

public java.lang.String getServiceName()
Gets the service name.

Returns:
the service name

getServicePort

public int getServicePort()
Gets the service port.

Returns:
the service port

getServiceType

public java.lang.String getServiceType()
Gets the service type.

Returns:
the service type

getStringRepresentation

public java.lang.String getStringRepresentation()
Gets the string representation.

Returns:
the string representation

getUserData

public java.lang.String getUserData()
Gets the user data.

Returns:
the user data

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

setServiceAddress

public void setServiceAddress(java.net.InetAddress serviceAddress)
Sets the service address.

Parameters:
serviceAddress - the new service address

setServiceName

public void setServiceName(java.lang.String serviceName)
Sets the service name.

Parameters:
serviceName - the new service name

setServicePort

public void setServicePort(int servicePort)
Sets the service port.

Parameters:
servicePort - the new service port

setServiceType

public void setServiceType(java.lang.String serviceType)
Sets the service type.

Parameters:
serviceType - the new service type

setUserData

public void setUserData(java.lang.String userData)
Sets the user data.

Parameters:
userData - the new user data