Class UnresolvedQName.Qualified
java.lang.Object
org.opendaylight.yangtools.yang.common.AbstractQName
org.opendaylight.yangtools.yang.common.UnresolvedQName
org.opendaylight.yangtools.yang.common.UnresolvedQName.Qualified
- All Implemented Interfaces:
Serializable,Comparable<UnresolvedQName.Qualified>,Identifier,Immutable,WritableObject
- Enclosing class:
- UnresolvedQName
public static final class UnresolvedQName.Qualified
extends UnresolvedQName
implements Comparable<UnresolvedQName.Qualified>
An unresolved, qualified
QName. It is guaranteed to hold a valid AbstractQName.getLocalName() bound to a
namespace identified through a prefix string, but remains unresolved. A resolved QName can be obtained
through bindTo(YangNamespaceContext).- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opendaylight.yangtools.yang.common.UnresolvedQName
UnresolvedQName.Qualified, UnresolvedQName.Unqualified -
Method Summary
Modifier and TypeMethodDescriptionbindTo(YangNamespaceContext namespaceContext) intboolean@NonNull StringReturn the prefix of this unresolved QName.inthashCode()intern()Return an interned reference to an equivalent object.static UnresolvedQName.QualifiedCreate a new qualified unresolved QName.static UnresolvedQName.QualifiedRead an QualifiedQName from a DataInput.toString()withPrefix(String newPrefix) Return aUnresolvedQName.Qualifiedobject bound to specifiedprefix.voidwriteTo(DataOutput out) Methods inherited from class org.opendaylight.yangtools.yang.common.UnresolvedQName
tryLocalNameMethods inherited from class org.opendaylight.yangtools.yang.common.AbstractQName
bindTo, getLocalName, unbind
-
Method Details
-
of
Create a new qualified unresolved QName.- Parameters:
prefix- The prefix on this qualified QNamelocalName- The local name of this qualified QName- Returns:
- An UnqualifiedQName instance
- Throws:
NullPointerException- if any argument isnullIllegalArgumentException- iflocalNameis not a valid YANG identifier
-
readFrom
Read an QualifiedQName from a DataInput. The format is expected to match the output format ofwriteTo(DataOutput).- Parameters:
in- DataInput to read- Returns:
- An QualifiedQName instance
- Throws:
IOException- if I/O error occurs
-
getPrefix
Description copied from class:UnresolvedQNameReturn the prefix of this unresolved QName.- Specified by:
getPrefixin classUnresolvedQName- Returns:
- This QName's prefix
-
bindTo
-
intern
Description copied from class:AbstractQNameReturn an interned reference to an equivalent object.- Specified by:
internin classUnresolvedQName- Returns:
- Interned reference, or this object if it was interned.
-
withPrefix
Description copied from class:UnresolvedQNameReturn aUnresolvedQName.Qualifiedobject bound to specifiedprefix.- Specified by:
withPrefixin classUnresolvedQName- Returns:
- a
UnresolvedQName.Qualifiedobject bound to specifiedprefix
-
compareTo
- Specified by:
compareToin interfaceComparable<UnresolvedQName.Qualified>
-
writeTo
- Specified by:
writeToin interfaceWritableObject- Throws:
IOException
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceIdentifier- Specified by:
hashCodein classAbstractQName
-
equals
- Specified by:
equalsin interfaceIdentifier- Specified by:
equalsin classAbstractQName
-
toString
- Specified by:
toStringin interfaceIdentifier- Specified by:
toStringin classAbstractQName
-