Class AbstractQName
- java.lang.Object
-
- org.opendaylight.yangtools.yang.common.AbstractQName
-
- All Implemented Interfaces:
Serializable
,Identifier
,Immutable
,MutationBehaviour<Immutable>
,WritableObject
- Direct Known Subclasses:
QName
,UnresolvedQName
@NonNullByDefault public abstract class AbstractQName extends Object implements Identifier, WritableObject
Abstract superclass for sharing QName references, which can either be resolvedQName
s or unresolvedUnresolvedQName.Unqualified
andUnresolvedQName.Qualified
s.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description QName
bindTo(QNameModule namespace)
Returns a QName with the specified namespace and the same local name as this one.abstract boolean
equals(@Nullable Object obj)
String
getLocalName()
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()
-
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 Detail
-
getLocalName
public final String 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
public abstract AbstractQName 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
public abstract boolean equals(@Nullable Object obj)
- Specified by:
equals
in interfaceIdentifier
- Overrides:
equals
in classObject
-
toString
public abstract String toString()
- Specified by:
toString
in interfaceIdentifier
- Overrides:
toString
in classObject
-
bindTo
public QName bindTo(QNameModule namespace)
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
-
-