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 aModule
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic SourceInfo.Module.Builder
builder()
final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.imports()
Returns the value of theimports
record component.includes()
Returns the value of theincludes
record component.Returns the value of thenamespace
record component.prefix()
Returns the value of theprefix
record component.Returns the value of therevisions
record component.sourceId()
Returns the value of thesourceId
record component.final String
toString()
Returns a string representation of this record class.Returns the value of theyangVersion
record 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 aModule
record class.- Parameters:
sourceId
- the value for thesourceId
record componentyangVersion
- the value for theyangVersion
record componentnamespace
- the value for thenamespace
record componentprefix
- the value for theprefix
record componentrevisions
- the value for therevisions
record componentimports
- the value for theimports
record componentincludes
- the value for theincludes
record 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 thesourceId
record component.- Specified by:
sourceId
in interfaceSourceInfo
- Returns:
- the value of the
sourceId
record component
-
yangVersion
Returns the value of theyangVersion
record component.- Specified by:
yangVersion
in interfaceSourceInfo
- Returns:
- the value of the
yangVersion
record component
-
namespace
Returns the value of thenamespace
record component.- Returns:
- the value of the
namespace
record component
-
prefix
Returns the value of theprefix
record component.- Returns:
- the value of the
prefix
record component
-
revisions
Returns the value of therevisions
record component.- Specified by:
revisions
in interfaceSourceInfo
- Returns:
- the value of the
revisions
record component
-
imports
Returns the value of theimports
record component.- Specified by:
imports
in interfaceSourceInfo
- Returns:
- the value of the
imports
record component
-
includes
Returns the value of theincludes
record component.- Specified by:
includes
in interfaceSourceInfo
- Returns:
- the value of the
includes
record component
-