ChildNames

com.phasmidsoftware.xmldoc.xml.ChildNames
object ChildNames

Object to manage translation of a name to a Seq of names.

CONSIDER removing this altogether because there is another mechanism (Feature.multiExtractor) which does something similar.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
ChildNames.type

Members list

Value members

Concrete methods

def addTranslation(key: String, value: Seq[String]): Unit

Adds a translation mapping a key to a sequence of values.

Adds a translation mapping a key to a sequence of values.

Value parameters

key

the key for the translation mapping

value

the sequence of strings that corresponds to the key

Attributes

Returns

Unit, as the method modifies the mutable map in place

def translate(member: String): Seq[String]

Translates a given member string to a sequence of strings based on predefined mappings or certain extraction rules. If no mapping or rule applies, the method returns the input string wrapped in a sequence.

Translates a given member string to a sequence of strings based on predefined mappings or certain extraction rules. If no mapping or rule applies, the method returns the input string wrapped in a sequence.

Value parameters

member

the input string to be translated

Attributes

Returns

a sequence of strings corresponding to the translation of the input member

Concrete fields

val map: HashMap[String, Seq[String]]