final class DocumentIndex extends AnyRef

Metadata document index, maintains information on available metadata within a project/package.

Duplicate detection is based on the relevant MetadataDocumentType(s) being able to generate an accurate TypeName for the metadata. Where a document defined a unique type duplicates are reported as errors and then ignored.

During an upsert/deletion of new types the index will also need to be updated so that it maintains an accurate view of the metadata files being used.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DocumentIndex
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new DocumentIndex(namespace: Option[Name], path: PathLike, ignore: Option[ForceIgnore], collection: MetadataCollection)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def add(logger: IssueLogger, document: MetadataDocument): Unit

    Add a new document, for non-partial documents this will replace any existing document in the store that provides the same type.

    Add a new document, for non-partial documents this will replace any existing document in the store that provides the same type. Duplicate detection is left to the caller. For partial types, the document will always be added to the store if not already present.

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  10. def get(typeName: TypeName): Set[MetadataDocument]

    Get all documents that contribute to a type

  11. def get(nature: MetadataNature, typeName: TypeName): Set[MetadataDocument]

    Get all documents of some nature that contribute to a type

  12. def get(nature: MetadataNature): Iterator[MetadataDocument]

    Get documents of some nature.

  13. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. def isVisibleFile(path: PathLike): Boolean

    Check a file path would be included in index.

  17. val namespace: Option[Name]
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. val path: PathLike
  22. def remove(document: MetadataDocument): Boolean

    Remove a document, does not error if the document is not in the index.

    Remove a document, does not error if the document is not in the index. Returns true if the document was removed.

  23. val size: Int

    Number of documents.

  24. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  25. def toString(): String
    Definition Classes
    AnyRef → Any
  26. def upsert(logger: IssueLogger, document: MetadataDocument): Boolean

    Upsert a document.

    Upsert a document. Document defining new or existing types return true, if the document would create a duplicate type it is not added to the store and false is returned.

  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped