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.
  • Constructor Details

  • Method Details

    • builder

      public static SourceInfo.Module.Builder builder()
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • sourceId

      public SourceIdentifier sourceId()
      Returns the value of the sourceId record component.
      Specified by:
      sourceId in interface SourceInfo
      Returns:
      the value of the sourceId record component
    • yangVersion

      public YangVersion yangVersion()
      Returns the value of the yangVersion record component.
      Specified by:
      yangVersion in interface SourceInfo
      Returns:
      the value of the yangVersion record component
    • namespace

      public XMLNamespace namespace()
      Returns the value of the namespace record component.
      Returns:
      the value of the namespace record component
    • prefix

      public UnresolvedQName.Unqualified prefix()
      Returns the value of the prefix record component.
      Returns:
      the value of the prefix record component
    • revisions

      public ImmutableSet<Revision> revisions()
      Returns the value of the revisions record component.
      Specified by:
      revisions in interface SourceInfo
      Returns:
      the value of the revisions record component
    • imports

      Returns the value of the imports record component.
      Specified by:
      imports in interface SourceInfo
      Returns:
      the value of the imports record component
    • includes

      Returns the value of the includes record component.
      Specified by:
      includes in interface SourceInfo
      Returns:
      the value of the includes record component