Object

laika.rewrite.link

IdGenerators

Related Doc: package link

Permalink

object IdGenerators

Generators for various different types of automatically generated identifiers.

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

Type Members

  1. case class Anonymous(pos: Int) extends Id with Product with Serializable

    Permalink

    Represents a positional anonymous id.

    Represents a positional anonymous id. References get matched to the targets in the order of appearance in the document tree. Therefore the number of references with this id type must match the number of targets.

  2. case class Generated(generator: (Set[String]) ⇒ String) extends Id with Product with Serializable

    Permalink

    Represents a generated id based on the provided generator function.

    Represents a generated id based on the provided generator function. The Set passed to the function contains the ids that are already in use (independent of whether they were generated or not).

  3. case class Hybrid(id: String, display: Id) extends Id with Product with Serializable

    Permalink

    Represents a hybrid id, with one identifier used as a selector for finding matching reference elements and the other merely used for rendering.

  4. sealed abstract class Id extends AnyRef

    Permalink

    Represents an identifier for an element in the document tree.

  5. class IdMap extends AnyRef

    Permalink

    Maps original ids to their final generated ids.

    Maps original ids to their final generated ids. The same original id may trigger the generation of multiple final ids if used in more than one place. The lookup function returns them one after the other.

  6. case class Named(name: String) extends Id with Product with Serializable

    Permalink

    Represents an id with a unique string identifier.

    Represents an id with a unique string identifier. If multiple elements use the same identifier they get marked as invalid and their ids get removed.

  7. class NumberGenerator extends (Set[String]) ⇒ String

    Permalink

    Generates ascending sequences of numeric identifiers, starting with 1.

    Generates ascending sequences of numeric identifiers, starting with 1. It skips all numbers which are contained in the Set of used identifiers passed to the function.

  8. case class Relative(path: Path, name: String) extends Id with Product with Serializable

    Permalink

    Represents an id that captures a relationship between two paths.

    Represents an id that captures a relationship between two paths. Useful for representing cross-references between two documents.

  9. class SymbolGenerator extends (Set[String]) ⇒ String

    Permalink

    Generates symbol identifiers.

    Generates symbol identifiers. Contains a predefined list of ten symbols to generate. If more than ten symbols are required, the same sequence will be reused, doubled and then tripled, and so on ("**" etc.).

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. object Hidden extends Id with Product with Serializable

    Permalink

    Represents an id that is not getting used in the final rendering step.

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  11. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  12. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  15. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  16. implicit def stringToId(name: String): Id

    Permalink

    Converts the specified string to an Id instance that represents a unique identifier.

  17. def suggestedId(suggested: String, map: IdMap): Generated

    Permalink

    Generates an identifier based on a concrete suggestion.

    Generates an identifier based on a concrete suggestion. If the suggested id is not already contained in the Set of used identifiers passed to the function it will be used as is. Otherwise it will try to append numbers (-1, -2, and so on) until it finds an unused id.

  18. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  19. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  20. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped