Record Class YangLibModule
java.lang.Object
java.lang.Record
org.opendaylight.yangtools.yang.parser.api.YangLibModule
- Record Components:
identifier-SourceIdentifierof this module, e.g. the combination ofnameandrevisionnamespace-XMLNamespaceof this modulesubmodules- Submodules of this modulefeatures- The set of supported features in this moduledeviationModuleNames- Names of modules containingdeviatestatements targetting this modulesource- ASourceRepresentationof 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 SourceRepresentation 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 SourceRepresentation source) Creates an instance of aYangLibModulerecord class. -
Method Summary
Modifier and TypeMethodDescription@NonNull ImmutableSet<UnresolvedQName.Unqualified>Returns the value of thedeviationModuleNamesrecord component.final booleanIndicates whether some other object is "equal to" this one.@NonNull ImmutableSet<UnresolvedQName.Unqualified>features()Returns the value of thefeaturesrecord component.final inthashCode()Returns a hash code value for this object.@NonNull SourceIdentifierReturns the value of theidentifierrecord component.@NonNull XMLNamespaceReturns the value of thenamespacerecord component.@NonNull SourceRepresentationsource()Returns the value of thesourcerecord component.Returns the value of thesubmodulesrecord component.final StringtoString()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 SourceRepresentation source) Creates an instance of aYangLibModulerecord class.- Parameters:
identifier- the value for theidentifierrecord componentnamespace- the value for thenamespacerecord componentsubmodules- the value for thesubmodulesrecord componentfeatures- the value for thefeaturesrecord componentdeviationModuleNames- the value for thedeviationModuleNamesrecord componentsource- the value for thesourcerecord 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 theidentifierrecord component.- Returns:
- the value of the
identifierrecord component
-
namespace
Returns the value of thenamespacerecord component.- Returns:
- the value of the
namespacerecord component
-
submodules
Returns the value of thesubmodulesrecord component.- Returns:
- the value of the
submodulesrecord component
-
features
Returns the value of thefeaturesrecord component.- Returns:
- the value of the
featuresrecord component
-
deviationModuleNames
Returns the value of thedeviationModuleNamesrecord component.- Returns:
- the value of the
deviationModuleNamesrecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-