Packages

c

ch.usi.inf.reveal.parsing.artifact

StackOverflowAnswer

case class StackOverflowAnswer(id: Int, questionId: Int, comments: Seq[StackOverflowComment], creationDate: Date, communityOwnedDate: Option[Date], lastActivityDate: Date, lastEditDate: Option[Date], score: Int, isAccepted: Boolean, owner: Option[StackOverflowUser], informationUnits: Seq[InformationUnit]) extends StackOverflowPost with Product with Serializable

A StackOverflow answer in a discussion.

id

the answer id, as from the Stack Overflow database.

questionId

the id of the question this answer was a reply of.

comments

the set of comments posted to this answer.

creationDate

the date this answer was posted.

lastActivityDate

the last date this answer had an activity.

lastEditDate

the last date this answer was edited.

score

the score of this answer.

isAccepted

true if this was the accepted answer in the discussion.

owner

the user who posted the answer, if it is present in the Stack Overflow dump.

informationUnits

the sequence of information units for this answer.

See also

SourceInfo

StackOverflowUser

StackOverflowComment

StackOverflowQuestion

StackOverflowArtifact

Stack Overflow Answer API documentation

Linear Supertypes
Serializable, Serializable, Product, Equals, StackOverflowPost, StackOverflowElement, JsonSerializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. StackOverflowAnswer
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. StackOverflowPost
  7. StackOverflowElement
  8. JsonSerializable
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new StackOverflowAnswer(id: Int, questionId: Int, comments: Seq[StackOverflowComment], creationDate: Date, communityOwnedDate: Option[Date], lastActivityDate: Date, lastEditDate: Option[Date], score: Int, isAccepted: Boolean, owner: Option[StackOverflowUser], informationUnits: Seq[InformationUnit])

    creates a new Stack Overflow answer.

    creates a new Stack Overflow answer.

    id

    the answer id, as from the Stack Overflow database.

    questionId

    the id of the question this answer was a reply of.

    comments

    the set of comments posted to this answer.

    creationDate

    the date this answer was posted.

    lastActivityDate

    the last date this answer had an activity.

    lastEditDate

    the last date this answer was edited.

    score

    the score of this answer.

    isAccepted

    true if this was the accepted answer in the discussion.

    owner

    the user who posted the answer, if it is present in the Stack Overflow dump.

    informationUnits

    the sequence of information units for this answer.

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. lazy val allUnits: Seq[InformationUnit]

    The sequence of all information units for this post, merging the one of this post and all the ones of its comments.

    The sequence of all information units for this post, merging the one of this post and all the ones of its comments.

    Definition Classes
    StackOverflowPost
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def bindComments(otherComments: Seq[StackOverflowComment]): StackOverflowAnswer

    Constructs a new StackOverflowAnswer binding it to a new set of comments.

    Constructs a new StackOverflowAnswer binding it to a new set of comments.

    Essentially used only during parsing.

    otherComments

    a set of comments.

    returns

    a new answer with the same properties of this but with otherComments as its comments.

    Definition Classes
    StackOverflowAnswerStackOverflowPost
  7. def bindInformationUnits(informationUnitsToBind: Seq[InformationUnit]): StackOverflowAnswer

    Binds the information units for this answer.

    Binds the information units for this answer.

    informationUnitsToBind

    a set of information units.

    returns

    a new answer with the same properties of this but with informationUnitsToBind as its information units.

    Definition Classes
    StackOverflowAnswerStackOverflowPostStackOverflowElement
  8. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. val comments: Seq[StackOverflowComment]
    Definition Classes
    StackOverflowAnswerStackOverflowPost
  10. val communityOwnedDate: Option[Date]
    Definition Classes
    StackOverflowAnswerStackOverflowPost
  11. val creationDate: Date
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int
    Definition Classes
    StackOverflowElement → AnyRef → Any
  16. val id: Int
  17. val informationUnits: Seq[InformationUnit]
  18. val isAccepted: Boolean
  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. val lastActivityDate: Date
    Definition Classes
    StackOverflowAnswerStackOverflowPost
  21. val lastEditDate: Option[Date]
    Definition Classes
    StackOverflowAnswerStackOverflowPost
  22. def metaInformation: Seq[MetaInformation[_]]

    The meta information provided by the artifact

    The meta information provided by the artifact

    Definition Classes
    StackOverflowElement
  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. final def notify(): Unit
    Definition Classes
    AnyRef
  25. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  26. val owner: Option[StackOverflowUser]
  27. val questionId: Int
  28. val score: Int
    Definition Classes
    StackOverflowAnswerStackOverflowPost
  29. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  30. def toText: String

    A textual representation of this element

    A textual representation of this element

    Definition Classes
    StackOverflowElement
  31. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. 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 StackOverflowPost

Inherited from StackOverflowElement

Inherited from JsonSerializable

Inherited from AnyRef

Inherited from Any

Ungrouped