Record Class YangLibModule
java.lang.Object
java.lang.Record
org.opendaylight.yangtools.yang.parser.api.YangLibModule
- Record Components:
identifier
-SourceIdentifier
of this module, e.g. the combination ofname
andrevision
namespace
-XMLNamespace
of this modulesubmodules
- Submodules of this modulefeatures
- The set of supported features in this moduledeviationModuleNames
- Names of modules containingdeviate
statements targetting this modulesource
- ASchemaSourceRepresentation
of the module
public record YangLibModule(@NonNull SourceIdentifier identifier, @NonNull XMLNamespace namespace, @NonNull ImmutableMap<UnresolvedQName.Unqualified,YangLibSubmodule> submodules, @NonNull ImmutableSet<UnresolvedQName.Unqualified> features, @NonNull ImmutableSet<UnresolvedQName.Unqualified> deviationModuleNames, @NonNull SchemaSourceRepresentation source)
extends Record
A single RFC8525
module
or import-only-module
list entry. Note that the YANG definition has two dissimilar instances, but that really is an artifact of how indexes
work in YANG.-
Constructor Summary
ConstructorsConstructorDescriptionYangLibModule
(@NonNull SourceIdentifier identifier, @NonNull XMLNamespace namespace, @NonNull ImmutableMap<UnresolvedQName.Unqualified, YangLibSubmodule> submodules, @NonNull ImmutableSet<UnresolvedQName.Unqualified> features, @NonNull ImmutableSet<UnresolvedQName.Unqualified> deviationModuleNames, @NonNull SchemaSourceRepresentation source) Creates an instance of aYangLibModule
record class. -
Method Summary
Modifier and TypeMethodDescription@NonNull ImmutableSet<UnresolvedQName.Unqualified>
Returns the value of thedeviationModuleNames
record component.final boolean
Indicates whether some other object is "equal to" this one.@NonNull ImmutableSet<UnresolvedQName.Unqualified>
features()
Returns the value of thefeatures
record component.final int
hashCode()
Returns a hash code value for this object.@NonNull SourceIdentifier
Returns the value of theidentifier
record component.@NonNull XMLNamespace
Returns the value of thenamespace
record component.@NonNull SchemaSourceRepresentation
source()
Returns the value of thesource
record component.Returns the value of thesubmodules
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
YangLibModule
public YangLibModule(@NonNull SourceIdentifier identifier, @NonNull XMLNamespace namespace, @NonNull ImmutableMap<UnresolvedQName.Unqualified, YangLibSubmodule> submodules, @NonNull ImmutableSet<UnresolvedQName.Unqualified> features, @NonNull ImmutableSet<UnresolvedQName.Unqualified> deviationModuleNames, @NonNull SchemaSourceRepresentation source) Creates an instance of aYangLibModule
record class.- Parameters:
identifier
- the value for theidentifier
record componentnamespace
- the value for thenamespace
record componentsubmodules
- the value for thesubmodules
record componentfeatures
- the value for thefeatures
record componentdeviationModuleNames
- the value for thedeviationModuleNames
record componentsource
- the value for thesource
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
identifier
Returns the value of theidentifier
record component.- Returns:
- the value of the
identifier
record component
-
namespace
Returns the value of thenamespace
record component.- Returns:
- the value of the
namespace
record component
-
submodules
Returns the value of thesubmodules
record component.- Returns:
- the value of the
submodules
record component
-
features
Returns the value of thefeatures
record component.- Returns:
- the value of the
features
record component
-
deviationModuleNames
Returns the value of thedeviationModuleNames
record component.- Returns:
- the value of the
deviationModuleNames
record component
-
source
Returns the value of thesource
record component.- Returns:
- the value of the
source
record component
-