org.sblim.slp.internal.msg
Class DADescriptor

java.lang.Object
  extended by org.sblim.slp.internal.msg.DADescriptor
All Implemented Interfaces:
Comparable<DADescriptor>

public class DADescriptor
extends Object
implements Comparable<DADescriptor>

 This class contains the DA related information from a DAAdvert message.
 URL
 Scope list
 Attribute list
 


Constructor Summary
DADescriptor(String pURL, TreeSet<String> pScopeSet, List<ServiceLocationAttribute> pAttributes)
          Ctor.
 
Method Summary
 int compareTo(DADescriptor o)
           
 boolean equals(Object pObj)
           
 String getURL()
          getURL
 int hashCode()
           
 boolean hasScope(String pScope)
          hasScope
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DADescriptor

public DADescriptor(String pURL,
                    TreeSet<String> pScopeSet,
                    List<ServiceLocationAttribute> pAttributes)
Ctor.

Parameters:
pURL -
pScopeSet - - set of scope Strings
pAttributes - - set of ServiceLocationAttributes
Method Detail

getURL

public String getURL()
getURL

Returns:
String

hasScope

public boolean hasScope(String pScope)
hasScope

Parameters:
pScope -
Returns:
boolean

compareTo

public int compareTo(DADescriptor o)
Specified by:
compareTo in interface Comparable<DADescriptor>

equals

public boolean equals(Object pObj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2005, 2013 IBM Corporation. All Rights Reserved.