SEPARATOR). A qualified name is in the scope of its own namespace and all children namespaces of its own namespace (i.e. the namespaces "deeper down" the hierarchy). For example, the namespace org.apache.torque is in the scope of org.apache but not in the scope of org.apache.torque.generator. As a special case, if the namespace is the empty String, the name is valid in all namespaces. The namespace and the name are also separated by a dot (SEPARATOR). Instances of this class are immutable. To prevent mutable subclasses, this class is final.
null
if the default name space is being used. The empty string is not a valid local name. This class can be used without OSGi running.
This class is not intended to be subclassed by clients.
QualifiedName: Name . SimpleName
See FieldAccess
for guidelines on handling other expressions that resemble qualified names.
A qualified name that is a qualifier and a name. It can be seen as a simplified version of an XML QName that retains only the prefix (qualifier) and the local name (name) and leaves out the namespace.
Qualified names have a string representation that is equals to the concatenation of the qualifier and name separated by a colon (:) character. When the
@author Julien Viet @version $Revision$A QualifiedName is created by combining the name of a method and the name of the type that declares the method. This class also contains many static utility methods to manage QualifiedName instances.
NOTE: Unless you do very generic libraries, entity stores and other extensions that is deeply coupled into the Qi4j runtime, it is very unlikely you will need to use this class directly.
It is also important to notice that the QualifiedName needs to be long-term stable, as the names are written to persistent storage. So any changes in the formatting must be made in a backward-compatible manner .
The QualifiedName has two intrinsic parts, one being the {@code type} and the other the {@code name}. The {@code type} comes from the class where the QualifiedName originates from and internally kept as a {@link TypeName}instance. The name is the name from the method name. When the QualifiedName instance is converted to an external string representation, via the offical and formal {@link #toString()} method, the {@code type} is normalized, i.e.any dollar characters ($) in the name are replaced by dashes (-), to make them URI friendly.
QualifiedName instances are immutable, implements {@link #hashCode()} and {@link #equals(Object)} as a valueobject and can safely be used as keys in {@link java.util.Map}.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|