public class ServiceType
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
ServiceType(java.lang.String pType)
Constructs a service type object from the service type specifier.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAbstractTypeName()
If the type is an abstract type, returns the fully formatted abstract
type name including the "service:" and naming authority but without the
concrete type name or intervening colon.
|
java.lang.String |
getConcreteTypeName()
Returns the concrete type name in an abstract type, or the empty string
if the service type is not abstract.
|
java.lang.String |
getNamingAuthority()
Return the naming authority name, or the empty string if the naming
authority is the default.
|
java.lang.String |
getPrincipleTypeName()
Returns the abstract type name for an abstract type, the protocol name in
a protocol type, or the URL scheme for a generic URL.
|
int |
hashCode() |
boolean |
isAbstractType()
Returns true if the type name is for an abstract type.
|
boolean |
isNADefault()
Returns true if the naming authority is the default, i.e.
|
boolean |
isServiceURL()
Returns true if the type name contains the "service:" prefix.
|
java.lang.String |
toString() |
public ServiceType(java.lang.String pType)
pType
- The service type name as a String. If the service type is from
a service: URL, the "service:" prefix must be intact.public boolean isServiceURL()
true
if the type name contains the "service:" prefixpublic boolean isAbstractType()
true
if the type name is for an abstract typepublic boolean isNADefault()
true
if the naming authority is the default, i.e. is
the empty stringpublic java.lang.String getConcreteTypeName()
true
if the service type is not abstractpublic 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.Object
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Copyright © 2005, 2011 IBM Corporation. All Rights Reserved.