- Direct Known Subclasses:
BeanQualifiedName,BeanSocketQualifiedName,ModuleQualifiedName
Base qualified name class.
A qualified name is of the form <part>(:<part>)+
where <part> is a valid Java name of the form
<identifier>(.<identifier>)+.
- Author:
- Jeremy Kuhn
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedQualifiedName(String value) Creates a qualified name with the specified raw value. -
Method Summary
Modifier and TypeMethodDescriptionbooleanabstract StringReturns a simple representation of this qualified name.getValue()Returns the qualified name raw value.inthashCode()Returns a normalized representation of the qualified name.toString()protected voidvalidateQualifiedNamePart(String qnamePart) Validates that the specified qualified name part is valid.
-
Field Details
-
SEPARATOR
The qualified name part separator.
- See Also:
-
-
Constructor Details
-
QualifiedName
Creates a qualified name with the specified raw value.
- Parameters:
value- the raw value
-
-
Method Details
-
validateQualifiedNamePart
Validates that the specified qualified name part is valid.
A Java name is a valid qualified name part.
- Parameters:
qnamePart- the qualified name part to validate- Throws:
QualifiedNameFormatException- if the specified qualified name part is invalid
-
getSimpleValue
Returns a simple representation of this qualified name.
Note that this representation is no longer "qualified".
- Returns:
- a simple representation
-
getValue
Returns the qualified name raw value.
- Returns:
- the raw value
-
normalize
Returns a normalized representation of the qualified name.
This methods basically converts the simple value to a camel case Java identifier by removing possible dots. As for the simple value the normalized representation is not "qualified".
- Returns:
- a normalized representation
-
hashCode
public int hashCode() -
equals
-
toString
-