Class R_OSGiWSID
java.lang.Object
org.eclipse.ecf.core.identity.BaseID
org.eclipse.ecf.provider.r_osgi.identity.R_OSGiID
org.eclipse.ecf.provider.r_osgi.identity.R_OSGiWSID
- All Implemented Interfaces:
Serializable
,Comparable
,Principal
,org.eclipse.core.runtime.IAdaptable
,ID
- Since:
- 3.5
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionch.ethz.iks.r_osgi.URI
getURI()
get the internal URI.protected int
compare in the context of the namespace.protected boolean
check for equality in the context of the namespace.protected String
get the name.protected int
get the hash code.Get this ID instance in String form.toString()
get a string representation.Methods inherited from class org.eclipse.ecf.core.identity.BaseID
compareTo, equals, getAdapter, getName, getNamespace, hashCode, namespaceToExternalForm
-
Field Details
-
HTTPS_PORT
public static final int HTTPS_PORT- See Also:
-
HTTP_PORT
public static final int HTTP_PORT- See Also:
-
-
Constructor Details
-
R_OSGiWSID
-
-
Method Details
-
namespaceCompareTo
compare in the context of the namespace.- Overrides:
namespaceCompareTo
in classR_OSGiID
- Parameters:
id
- anotherBaseID
to compare to.- Returns:
- -1 if smaller, 1 if larger, and 0 for equality.
- See Also:
-
namespaceEquals
check for equality in the context of the namespace.- Overrides:
namespaceEquals
in classR_OSGiID
- Parameters:
id
- anotherBaseID
to check with.- Returns:
true
iff the two IDs are equal within the given namespace.- See Also:
-
getURI
public ch.ethz.iks.r_osgi.URI getURI()get the internal URI. -
namespaceGetName
get the name.- Overrides:
namespaceGetName
in classR_OSGiID
- Returns:
- the name as a String.
-
namespaceHashCode
protected int namespaceHashCode()get the hash code.- Overrides:
namespaceHashCode
in classR_OSGiID
- Returns:
- the hash code.
-
toString
get a string representation. -
toExternalForm
Description copied from interface:ID
Get this ID instance in String form. Will not return null.- Specified by:
toExternalForm
in interfaceID
- Overrides:
toExternalForm
in classR_OSGiID
- Returns:
- String that is external representation of this ID
- Since:
- 3.0
- See Also:
-