Class LtObjectIsNotUnique

java.lang.Object
org.eolang.lints.errors.LtObjectIsNotUnique
All Implemented Interfaces:
Lint<Map<String,com.jcabi.xml.XML>>

public final class LtObjectIsNotUnique extends Object implements Lint<Map<String,com.jcabi.xml.XML>>
Object is not unique.
Since:
0.0.30
  • Constructor Details

    • LtObjectIsNotUnique

      public LtObjectIsNotUnique()
  • Method Details

    • name

      public String name()
      Description copied from interface: Lint
      Name of the lint.
      Specified by:
      name in interface Lint<Map<String,com.jcabi.xml.XML>>
      Returns:
      Lint name
    • defects

      public Collection<Defect> defects(Map<String,com.jcabi.xml.XML> pkg)
      Description copied from interface: Lint
      Find and return defects.
      Specified by:
      defects in interface Lint<Map<String,com.jcabi.xml.XML>>
      Parameters:
      pkg - The entity to analyze (could be XML or Path)
      Returns:
      Defects
    • motive

      public String motive() throws Exception
      Description copied from interface: Lint
      Returns motive for a lint, explaining why this lint exists.
      Specified by:
      motive in interface Lint<Map<String,com.jcabi.xml.XML>>
      Returns:
      Motive text about lint
      Throws:
      Exception - if something went wrong