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- ASchemaSourceRepresentationof the module
public record YangLibModule(@NonNull org.opendaylight.yangtools.yang.model.repo.api.SourceIdentifier identifier, @NonNull XMLNamespace namespace, @NonNull com.google.common.collect.ImmutableMap<UnresolvedQName.Unqualified,YangLibSubmodule> submodules, @NonNull com.google.common.collect.ImmutableSet<UnresolvedQName.Unqualified> features, @NonNull com.google.common.collect.ImmutableSet<UnresolvedQName.Unqualified> deviationModuleNames, @NonNull org.opendaylight.yangtools.yang.model.repo.api.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 org.opendaylight.yangtools.yang.model.repo.api.SourceIdentifier identifier, @NonNull XMLNamespace namespace, @NonNull com.google.common.collect.ImmutableMap<UnresolvedQName.Unqualified, YangLibSubmodule> submodules, @NonNull com.google.common.collect.ImmutableSet<UnresolvedQName.Unqualified> features, @NonNull com.google.common.collect.ImmutableSet<UnresolvedQName.Unqualified> deviationModuleNames, @NonNull org.opendaylight.yangtools.yang.model.repo.api.SchemaSourceRepresentation source) Creates an instance of aYangLibModulerecord class. -
Method Summary
Modifier and TypeMethodDescription@NonNull com.google.common.collect.ImmutableSet<UnresolvedQName.Unqualified>Returns the value of thedeviationModuleNamesrecord component.final booleanIndicates whether some other object is "equal to" this one.@NonNull com.google.common.collect.ImmutableSet<UnresolvedQName.Unqualified>features()Returns the value of thefeaturesrecord component.final inthashCode()Returns a hash code value for this object.@NonNull org.opendaylight.yangtools.yang.model.repo.api.SourceIdentifierReturns the value of theidentifierrecord component.@NonNull XMLNamespaceReturns the value of thenamespacerecord component.@NonNull org.opendaylight.yangtools.yang.model.repo.api.SchemaSourceRepresentationsource()Returns the value of thesourcerecord component.@NonNull com.google.common.collect.ImmutableMap<UnresolvedQName.Unqualified,YangLibSubmodule> Returns the value of thesubmodulesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
YangLibModule
public YangLibModule(@NonNull org.opendaylight.yangtools.yang.model.repo.api.SourceIdentifier identifier, @NonNull XMLNamespace namespace, @NonNull com.google.common.collect.ImmutableMap<UnresolvedQName.Unqualified, YangLibSubmodule> submodules, @NonNull com.google.common.collect.ImmutableSet<UnresolvedQName.Unqualified> features, @NonNull com.google.common.collect.ImmutableSet<UnresolvedQName.Unqualified> deviationModuleNames, @NonNull org.opendaylight.yangtools.yang.model.repo.api.SchemaSourceRepresentation 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
public @NonNull org.opendaylight.yangtools.yang.model.repo.api.SourceIdentifier 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
public @NonNull com.google.common.collect.ImmutableMap<UnresolvedQName.Unqualified,YangLibSubmodule> 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
public @NonNull com.google.common.collect.ImmutableSet<UnresolvedQName.Unqualified> deviationModuleNames()Returns the value of thedeviationModuleNamesrecord component.- Returns:
- the value of the
deviationModuleNamesrecord component
-
source
public @NonNull org.opendaylight.yangtools.yang.model.repo.api.SchemaSourceRepresentation source()Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-