org.dbpedia.extraction.wikiparser

TemplateNode

case class TemplateNode(title: WikiTitle, children: List[PropertyNode], line: Int, titleParsed: List[Node] = List()) extends Node with Product with Serializable

Represents a template.

title

The title of the page, where this template is defined

children

The properties of this template

line

The source line number of this property

Linear Supertypes
Serializable, Serializable, Product, Equals, Node, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. TemplateNode
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Node
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TemplateNode(title: WikiTitle, children: List[PropertyNode], line: Int, titleParsed: List[Node] = List())

    title

    The title of the page, where this template is defined

    children

    The properties of this template

    line

    The source line number of this property

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. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. val children: List[PropertyNode]

    The properties of this template

    The properties of this template

    Definition Classes
    TemplateNodeNode
  6. def clone(): AnyRef

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

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. def generateUri(baseUri: String, name: String): String

    Definition Classes
    Node
  11. def generateUri(baseUri: String, node: Node): String

    Definition Classes
    Node
  12. def getAnnotation[T](key: AnnotationKey[T]): Option[T]

    Returns an annotation.

    Returns an annotation.

    key

    key of the annotation

    returns

    The value of the annotation as an option if an annotation with the given key exists. None, otherwise.

    Definition Classes
    Node
    Annotations
    @unchecked()
  13. final def getClass(): Class[_]

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

    Definition Classes
    Any
  15. def keySet: Set[String]

  16. val line: Int

    The source line number of this property

    The source line number of this property

    Definition Classes
    TemplateNodeNode
  17. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  20. var parent: Node

    CAUTION: code outside this class should change the parent only under very rare circumstances.

    CAUTION: code outside this class should change the parent only under very rare circumstances.

    Definition Classes
    Node
  21. def property(key: String): Option[PropertyNode]

    Retrieves a property by its key.

    Retrieves a property by its key. As in Wikipedia the search is case insensitive in the first character and case sensitive in the rest.

    key

    The key of the wanted property.

    returns

    PropertyNode The propertyNode or None if no property with a given key has been found.

  22. def retrieveText(recurse: Boolean): Option[String]

    Attributes
    protected
    Definition Classes
    Node
  23. final def retrieveText: Option[String]

    Retrieves some text from this node.

    Retrieves some text from this node. Only works on a TextNode or a Node that has a single TextNode child. Returns None iff this node is not a TextNode and contains child nodes other than a single TextNode.

    TODO: the behavior of this method is weird, but I don't dare to change it because existing code may rely on its current behavior. New code should probably use toPlainText.

    Definition Classes
    Node
  24. lazy val root: PageNode

    Retrieves the root node of this AST.

    Retrieves the root node of this AST.

    returns

    The root Node

    Definition Classes
    Node
  25. lazy val section: SectionNode

    Retrieves the section of this node

    Retrieves the section of this node

    returns

    The section of this node, may be null

    Definition Classes
    Node
  26. def setAnnotation[T](key: AnnotationKey[T], value: T): Unit

    Sets a user-defined annotation.

    Sets a user-defined annotation.

    key

    The key of the annotation

    value

    The value of the annotation

    Definition Classes
    Node
  27. def sourceIri: String

    IRI of source page and line number.

    IRI of source page and line number.

    Definition Classes
    Node
  28. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  29. val title: WikiTitle

    The title of the page, where this template is defined

  30. val titleParsed: List[Node]

  31. def toPlainText: String

    Get plain text content of this node and all child nodes, without markup.

    Get plain text content of this node and all child nodes, without markup. Since templates are not expanded, this will not work well for templates.

    Definition Classes
    TemplateNodeNode
  32. def toWikiText: String

    Convert back to original (or equivalent) wiki markup string.

    Convert back to original (or equivalent) wiki markup string.

    Definition Classes
    TemplateNodeNode
  33. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Node

Inherited from AnyRef

Inherited from Any

Ungrouped