Class YangInstanceIdentifier.AugmentationIdentifier
- java.lang.Object
-
- org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier.AugmentationIdentifier
-
- All Implemented Interfaces:
Serializable
,Comparable<YangInstanceIdentifier.PathArgument>
,Immutable
,MutationBehaviour<Immutable>
,YangInstanceIdentifier.PathArgument
- Enclosing class:
- YangInstanceIdentifier
public static final class YangInstanceIdentifier.AugmentationIdentifier extends Object implements YangInstanceIdentifier.PathArgument
Composite path argument identifying aAugmentationNode
node in particular subtree.Augmentation is uniquely identified by set of all possible child nodes. This is possible to identify instance of augmentation, since RFC6020 states that
augment
that augment statement must not add multiple nodes from same namespace / module to the target node.- See Also:
- RFC6020, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AugmentationIdentifier(ImmutableSet<QName> childNames)
Construct new augmentation identifier using supplied set of possible child nodes.AugmentationIdentifier(Set<QName> childNames)
Construct new augmentation identifier using supplied set of possible child nodes.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(YangInstanceIdentifier.PathArgument o)
static @NonNull YangInstanceIdentifier.AugmentationIdentifier
create(ImmutableSet<QName> childNames)
Return an AugmentationIdentifier for a particular set of QNames.static @NonNull YangInstanceIdentifier.AugmentationIdentifier
create(Set<QName> childNames)
Return an AugmentationIdentifier for a particular set of QNames.boolean
equals(Object obj)
QName
getNodeType()
Returns unique QName of data node as defined in YANG Schema, if available.@NonNull Set<QName>
getPossibleChildNames()
Returns set of all possible child nodes.int
hashCode()
String
toRelativeString(YangInstanceIdentifier.PathArgument previous)
Return the string representation of this object for use in context provided by a previous object.String
toString()
-
-
-
Constructor Detail
-
AugmentationIdentifier
public AugmentationIdentifier(ImmutableSet<QName> childNames)
Construct new augmentation identifier using supplied set of possible child nodes.- Parameters:
childNames
- Set of possible child nodes.
-
-
Method Detail
-
getNodeType
public QName 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
-
create
public static @NonNull YangInstanceIdentifier.AugmentationIdentifier create(ImmutableSet<QName> childNames)
Return an AugmentationIdentifier for a particular set of QNames. Unlike the constructor, this factory method uses a global instance cache, resulting in object reuse for equal inputs.- Parameters:
childNames
- Set of possible child nodes- Returns:
- An
YangInstanceIdentifier.AugmentationIdentifier
-
create
public static @NonNull YangInstanceIdentifier.AugmentationIdentifier create(Set<QName> childNames)
Return an AugmentationIdentifier for a particular set of QNames. Unlike the constructor, this factory method uses a global instance cache, resulting in object reuse for equal inputs.- Parameters:
childNames
- Set of possible child nodes- Returns:
- An
YangInstanceIdentifier.AugmentationIdentifier
-
getPossibleChildNames
public @NonNull Set<QName> getPossibleChildNames()
Returns set of all possible child nodes.- Returns:
- set of all possible child nodes.
-
toRelativeString
public String toRelativeString(YangInstanceIdentifier.PathArgument previous)
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
-
compareTo
public int compareTo(YangInstanceIdentifier.PathArgument o)
- Specified by:
compareTo
in interfaceComparable<YangInstanceIdentifier.PathArgument>
-
-