Record Class SourceInfo.Module
java.lang.Object
java.lang.Record
org.opendaylight.yangtools.yang.model.spi.source.SourceInfo.Module
- All Implemented Interfaces:
SourceInfo
- Enclosing interface:
- SourceInfo
public static record SourceInfo.Module(SourceIdentifier sourceId, YangVersion yangVersion, XMLNamespace namespace, UnresolvedQName.Unqualified prefix, ImmutableSet<Revision> revisions, ImmutableSet<SourceDependency.Import> imports, ImmutableSet<SourceDependency.Include> includes)
extends Record
implements SourceInfo
A
SourceInfo about a ModuleStatement-backed source.-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.opendaylight.yangtools.yang.model.spi.source.SourceInfo
SourceInfo.Module, SourceInfo.Submodule -
Constructor Summary
ConstructorsConstructorDescriptionModule(SourceIdentifier sourceId, YangVersion yangVersion, XMLNamespace namespace, UnresolvedQName.Unqualified prefix, ImmutableSet<Revision> revisions, ImmutableSet<SourceDependency.Import> imports, ImmutableSet<SourceDependency.Include> includes) Creates an instance of aModulerecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic SourceInfo.Module.Builderbuilder()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.imports()Returns the value of theimportsrecord component.includes()Returns the value of theincludesrecord component.Returns the value of thenamespacerecord component.prefix()Returns the value of theprefixrecord component.Returns the value of therevisionsrecord component.sourceId()Returns the value of thesourceIdrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theyangVersionrecord component.
-
Constructor Details
-
Module
public Module(SourceIdentifier sourceId, YangVersion yangVersion, XMLNamespace namespace, UnresolvedQName.Unqualified prefix, ImmutableSet<Revision> revisions, ImmutableSet<SourceDependency.Import> imports, ImmutableSet<SourceDependency.Include> includes) Creates an instance of aModulerecord class.- Parameters:
sourceId- the value for thesourceIdrecord componentyangVersion- the value for theyangVersionrecord componentnamespace- the value for thenamespacerecord componentprefix- the value for theprefixrecord componentrevisions- the value for therevisionsrecord componentimports- the value for theimportsrecord componentincludes- the value for theincludesrecord component
-
-
Method Details
-
builder
-
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). -
sourceId
Returns the value of thesourceIdrecord component.- Specified by:
sourceIdin interfaceSourceInfo- Returns:
- the value of the
sourceIdrecord component
-
yangVersion
Returns the value of theyangVersionrecord component.- Specified by:
yangVersionin interfaceSourceInfo- Returns:
- the value of the
yangVersionrecord component
-
namespace
Returns the value of thenamespacerecord component.- Returns:
- the value of the
namespacerecord component
-
prefix
Returns the value of theprefixrecord component.- Returns:
- the value of the
prefixrecord component
-
revisions
Returns the value of therevisionsrecord component.- Specified by:
revisionsin interfaceSourceInfo- Returns:
- the value of the
revisionsrecord component
-
imports
Returns the value of theimportsrecord component.- Specified by:
importsin interfaceSourceInfo- Returns:
- the value of the
importsrecord component
-
includes
Returns the value of theincludesrecord component.- Specified by:
includesin interfaceSourceInfo- Returns:
- the value of the
includesrecord component
-