Class AbstractQName
java.lang.Object
org.opendaylight.yangtools.yang.common.AbstractQName
- All Implemented Interfaces:
Serializable
,Identifier
,Immutable
,WritableObject
- Direct Known Subclasses:
QName
,UnresolvedQName
@NonNullByDefault
public abstract sealed class AbstractQName
extends Object
implements Identifier, WritableObject
permits QName, UnresolvedQName
Abstract superclass for sharing QName references, which can either be resolved
QName
s or unresolved
UnresolvedQName.Unqualified
and UnresolvedQName.Qualified
s.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbindTo
(QNameModule namespace) Returns a QName with the specified namespace and the same local name as this one.abstract boolean
final String
Returns YANG schema identifier which were defined for this node in the YANG module.abstract int
hashCode()
abstract AbstractQName
intern()
Return an interned reference to an equivalent object.abstract String
toString()
unbind()
Returns anUnresolvedQName.Unqualified
identifier formed by capturinggetLocalName()
.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.opendaylight.yangtools.concepts.WritableObject
writeTo
-
Method Details
-
getLocalName
Returns YANG schema identifier which were defined for this node in the YANG module.- Returns:
- YANG schema identifier which were defined for this node in the YANG module
-
intern
Return an interned reference to an equivalent object.- Returns:
- Interned reference, or this object if it was interned.
-
hashCode
public abstract int hashCode()- Specified by:
hashCode
in interfaceIdentifier
- Overrides:
hashCode
in classObject
-
equals
- Specified by:
equals
in interfaceIdentifier
- Overrides:
equals
in classObject
-
toString
- Specified by:
toString
in interfaceIdentifier
- Overrides:
toString
in classObject
-
bindTo
Returns a QName with the specified namespace and the same local name as this one.- Parameters:
namespace
- New namespace to use- Returns:
- a QName with specified QNameModule and same local name as this one
- Throws:
NullPointerException
- if namespace is null
-
unbind
Returns anUnresolvedQName.Unqualified
identifier formed by capturinggetLocalName()
.- Returns:
- An unqualified
UnresolvedQName
-