case class CitableNode(urn: CtsUrn, text: String) extends LogSupport with Product with Serializable
The smallest canonically citable unit of a text.
- urn
URN identifying the node.
- text
Text contents of the node.
- Annotations
- @JSExportAll()
- Alphabetic
- By Inheritance
- CitableNode
- Product
- Equals
- LogSupport
- LazyLogger
- LoggingMethods
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
CitableNode(urn: CtsUrn, text: String)
- urn
URN identifying the node.
- text
Text contents of the node.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
- def <(urn2: CtsUrn): Boolean
- def <=(urn2: CtsUrn): Boolean
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def >(urn2: CtsUrn): Boolean
- def ><(urn2: CtsUrn): Boolean
- def >=(urn2: CtsUrn): Boolean
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
cex(delimiter: String = "\t"): String
Two-column serialization of this node as formated for CEX serialization.
Two-column serialization of this node as formated for CEX serialization.
- delimiter
String value to separate two columns.
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
macro
def
debug(message: Any, cause: Throwable): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
-
macro
def
debug(message: Any): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
macro
def
error(message: Any, cause: Throwable): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
-
macro
def
error(message: Any): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
-
def
firstNCharsKwic(s: String, n: Int): String
Format first n characters of a string for KWIC display.
Format first n characters of a string for KWIC display.
- s
String to extract characters from.
- n
Number of characters to include.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
macro
def
info(message: Any, cause: Throwable): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
-
macro
def
info(message: Any): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
kwic(s: String, context: Int = 20): String
Format a string extracting a given white-space delimited word token surrounded by a given number of neighboring word tokens.
Format a string extracting a given white-space delimited word token surrounded by a given number of neighboring word tokens. If
wordToken
is not present in text, an empty String is returned.- context
Number of characters to include on either side of the match.
-
def
lastNCharsKwic(s: String, n: Int): String
Format last n characters of a string for KWIC display.
Format last n characters of a string for KWIC display.
- s
String to extract characters from.
- n
Number of characters to include.
-
macro
def
logAt(logLevel: LogLevel, message: Any): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
-
lazy val
logger: Logger
- Attributes
- protected[this]
- Definition Classes
- LazyLogger
-
def
matches(v: Vector[String], checkBox: Boolean = true): Boolean
True if text content matches all strings in a given list.
True if text content matches all strings in a given list. Recursively compares each string in the list, and sets a flag to false if there is no match.
- v
List of string to test for.
- checkBox
True if all strings seen so far have matched.
-
def
matches(s: String): Boolean
True if text content matches a given string.
True if text content matches a given string.
- s
String to test for.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
stripPunctuation: String
Strip all punctuation characters from text content.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- val text: String
-
def
tokenMatches(t: String): Boolean
True if text content includes a given whitespace-delimited token.
True if text content includes a given whitespace-delimited token. Optionally, ignore punctuation.
- t
Token to test for.
-
def
tokenMatches(v: Vector[String], checkBox: Boolean = true, omitPunctuation: Boolean = true): Boolean
True if text content includes all whitespace-delimited tokens in a given list.
True if text content includes all whitespace-delimited tokens in a given list. Recursively compares each string in the list, and sets a flag to false if there is no match.
- v
List of string to test for.
- checkBox
True if all strings seen so far have matched.
- def tokensWithin(v: Vector[String], distance: Int): Boolean
-
def
tokensWithin(src: Vector[String], v: Vector[String], distance: Int): Boolean
True if all listed tokens fall within a specified distance in a vector of tokens.
True if all listed tokens fall within a specified distance in a vector of tokens.
- src
Text to test on, as a vector of words.
- v
Vector of tokens to test for.
- distance
Distance, in words, to test for.
-
macro
def
trace(message: Any, cause: Throwable): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
-
macro
def
trace(message: Any): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
- val urn: CtsUrn
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
macro
def
warn(message: Any, cause: Throwable): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
-
macro
def
warn(message: Any): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
-
def
~~(urn2: CtsUrn): Boolean
True if this node is URN-similar to a second URN.
True if this node is URN-similar to a second URN.
- urn2
URN to compare to this node.
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated @deprecated
- Deprecated
(Since version ) see corresponding Javadoc for more information.