|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ch.ethz.iks.slp.ServiceType
public final class ServiceType
Implementation of the SLP ServiceType class defined in RFC 2614.
Constructor Summary | |
---|---|
ServiceType(String serviceType)
creates a new ServiceType instance. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
check if two ServiceTypes are equal. |
String |
getAbstractTypeName()
get the name of the abstract type of this ServiceType instance. |
String |
getConcreteTypeName()
get the concrete type part of this ServiceType instance. |
String |
getNamingAuthority()
get the naming authority. |
String |
getPrincipleTypeName()
get the principle type part of this ServiceType instance. |
int |
hashCode()
get the hashCode of this ServiceType instance. |
boolean |
isAbstractType()
is the ServiceType instance an abstract type ? |
boolean |
isNADefault()
is the naming authority default (IANA) ? |
boolean |
isServiceURL()
is the ServiceType instance a ServiceURL ? |
boolean |
matches(Object obj)
check if a ServiceType matches a ServiceURL or another ServiceType. |
String |
toString()
get a String representation of this ServiceType instance. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ServiceType(String serviceType)
serviceType
- the string representation of a ServiceType, e.g.
service:osgi:remote
Method Detail |
---|
public boolean isServiceURL()
public boolean isAbstractType()
public boolean isNADefault()
public String getConcreteTypeName()
public String getPrincipleTypeName()
public String getAbstractTypeName()
public String getNamingAuthority()
public boolean equals(Object obj)
equals
in class Object
obj
- another ServiceType.
public boolean matches(Object obj)
obj
- the object to be compared to.
public String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |