Class YangInstanceIdentifier.PathArgument
java.lang.Object
org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.PathArgument
- All Implemented Interfaces:
Serializable
,Comparable<YangInstanceIdentifier.PathArgument>
,Identifier
,Immutable
- Direct Known Subclasses:
YangInstanceIdentifier.NodeIdentifier
,YangInstanceIdentifier.NodeIdentifierWithPredicates
,YangInstanceIdentifier.NodeWithValue
- Enclosing class:
- YangInstanceIdentifier
public abstract static sealed class YangInstanceIdentifier.PathArgument
extends Object
implements Identifier, Comparable<YangInstanceIdentifier.PathArgument>
permits YangInstanceIdentifier.NodeIdentifier, YangInstanceIdentifier.NodeWithValue<T>, YangInstanceIdentifier.NodeIdentifierWithPredicates
Path argument / component of InstanceIdentifier.
Path argument uniquely identifies node in data tree on particular
level.
This interface itself is used as common parent for actual path arguments types and should not be implemented by user code.
Path arguments SHOULD contain only minimum of information required to uniquely identify node on particular subtree level.
For actual path arguments types see:
YangInstanceIdentifier.NodeIdentifier
- Identifier of container or leafYangInstanceIdentifier.NodeIdentifierWithPredicates
- Identifier of list entries, which have key definedYangInstanceIdentifier.NodeWithValue
- Identifier of leaf-list entry
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
final @NonNull QName
Returns unique QName of data node as defined in YANG Schema, if available.final int
hashCode()
protected int
@NonNull String
Return the string representation of this object for use in context provided by a previous object.toString()
-
Constructor Details
-
PathArgument
-
-
Method Details
-
getNodeType
Returns unique QName of data node as defined in YANG Schema, if available.- Returns:
- Node type
-
toRelativeString
Return the string representation of this object for use in context provided by a previous object. This method can be implemented in terms oftoString()
, but implementations are encourage to reuse any context already emitted by the previous object.- Parameters:
previous
- Previous path argument- Returns:
- String representation
-
compareTo
- Specified by:
compareTo
in interfaceComparable<YangInstanceIdentifier.PathArgument>
-
hashCodeImpl
protected int hashCodeImpl() -
hashCode
public final 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
-