Class YangInstanceIdentifier.NodeIdentifier
java.lang.Object
org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.NodeIdentifier
- All Implemented Interfaces:
Serializable
,Comparable<YangInstanceIdentifier.PathArgument>
,Immutable
,YangInstanceIdentifier.PathArgument
- Enclosing class:
- YangInstanceIdentifier
Simple path argument identifying a
ContainerNode
or
LeafNode
leaf in particular subtree.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
static @NonNull YangInstanceIdentifier.NodeIdentifier
Return a NodeIdentifier for a particular QName.boolean
final QName
Returns unique QName of data node as defined in YANG Schema, if available.final int
hashCode()
protected int
Return the string representation of this object for use in context provided by a previous object.toString()
-
Constructor Details
-
NodeIdentifier
-
-
Method Details
-
create
Return a NodeIdentifier for a particular QName. Unlike the constructor, this factory method uses a global instance cache, resulting in object reuse for equal inputs.- Parameters:
node
- Node's QName- Returns:
- A
YangInstanceIdentifier.NodeIdentifier
-
getNodeType
Description copied from interface:YangInstanceIdentifier.PathArgument
Returns unique QName of data node as defined in YANG Schema, if available.- Specified by:
getNodeType
in interfaceYangInstanceIdentifier.PathArgument
- Returns:
- Node type
-
compareTo
- Specified by:
compareTo
in interfaceComparable<YangInstanceIdentifier.PathArgument>
-
hashCodeImpl
protected int hashCodeImpl() -
hashCode
public final int hashCode() -
equals
-
toString
-
toRelativeString
Description copied from interface:YangInstanceIdentifier.PathArgument
Return the string representation of this object for use in context provided by a previous object. This method can be implemented in terms ofYangInstanceIdentifier.toString()
, but implementations are encourage to reuse any context already emitted by the previous object.- Specified by:
toRelativeString
in interfaceYangInstanceIdentifier.PathArgument
- Parameters:
previous
- Previous path argument- Returns:
- String representation
-