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
QNames or unresolved
UnresolvedQName.Unqualified and UnresolvedQName.Qualifieds.- 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 booleanfinal StringReturns YANG schema identifier which were defined for this node in the YANG module.abstract inthashCode()abstract AbstractQNameintern()Return an interned reference to an equivalent object.abstract StringtoString()unbind()Returns anUnresolvedQName.Unqualifiedidentifier formed by capturinggetLocalName().Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
hashCodein interfaceIdentifier- Overrides:
hashCodein classObject
-
equals
- Specified by:
equalsin interfaceIdentifier- Overrides:
equalsin classObject
-
toString
- Specified by:
toStringin interfaceIdentifier- Overrides:
toStringin 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.Unqualifiedidentifier formed by capturinggetLocalName().- Returns:
- An unqualified
UnresolvedQName
-