Package org.wildfly.discovery
Class ServiceDesignation
java.lang.Object
org.wildfly.discovery.ServiceDesignation
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ServiceType,ServiceURL
A service designation.
- Author:
- David M. Lloyd
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionabstract booleanDetermine if this service designation is equal to another.abstract booleanequals(ServiceDesignation other) Determine if this service designation is equal to another.abstract StringGet the abstract type, if any.abstract StringGet the abstract type authority of this service type.abstract StringGet the concrete type name of this service type, if any.abstract StringGet the concrete type authority name of this service type, if any.abstract inthashCode()Get the hash code of this designation.abstract booleanimplies(ServiceDesignation other) Determine whether the given service designation is implied by this service designation.abstract StringtoString()Get the simple string representation of this designation.
-
Method Details
-
getAbstractType
Get the abstract type, if any.- Returns:
- the abstract type, or
nullif no abstract type is set (subclasses may restrict this)
-
getAbstractTypeAuthority
Get the abstract type authority of this service type. Abstract types with no authority will returnnullfor this value.- Returns:
- the abstract type authority of this service type (may be
null)
-
getUriScheme
Get the concrete type name of this service type, if any.- Returns:
- the concrete service type, or
nullif no abstract type is set (subclasses may restrict this)
-
getUriSchemeAuthority
Get the concrete type authority name of this service type, if any.- Returns:
- the concrete type authority name (may be
null)
-
implies
Determine whether the given service designation is implied by this service designation.- Parameters:
other- the other service designation- Returns:
trueof the other service designation is implied by this one,falseotherwise
-
equals
Determine if this service designation is equal to another. -
equals
Determine if this service designation is equal to another.- Parameters:
other- the other service designation- Returns:
trueif the service types are equal,falseotherwise
-
hashCode
public abstract int hashCode()Get the hash code of this designation. -
toString
Get the simple string representation of this designation.
-