|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectch.ethz.iks.slp.ServiceType
public final class ServiceType
Implementation of the SLP ServiceType class defined in RFC 2614.
| Constructor Summary | |
|---|---|
ServiceType(java.lang.String serviceType)
creates a new ServiceType instance. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
check if two ServiceTypes are equal. |
java.lang.String |
getAbstractTypeName()
get the name of the abstract type of this ServiceType instance. |
java.lang.String |
getConcreteTypeName()
get the concrete type part of this ServiceType instance. |
java.lang.String |
getNamingAuthority()
get the naming authority. |
java.lang.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(java.lang.Object obj)
check if a ServiceType matches a ServiceURL or another ServiceType. |
java.lang.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(java.lang.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 java.lang.String getConcreteTypeName()
public java.lang.String getPrincipleTypeName()
public java.lang.String getAbstractTypeName()
public java.lang.String getNamingAuthority()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - another ServiceType.
public boolean matches(java.lang.Object obj)
obj - the object to be compared to.
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||