charSequenceExtractor
CharSequence extractor.
Attributes
- Graph
-
- Supertypes
- Self type
Members list
Value members
Concrete methods
Extracts a CharSequence from an XML Node.
Extracts a CharSequence from an XML Node.
The method attempts to decode the content of the provided Node. If the Node is of type Text or CDATA, the content is extracted directly. Otherwise, it attempts to retrieve the single child node's text content. If the node cannot be decoded into a CharSequence, a failure is returned.
Value parameters
- node
-
the XML
Nodeto extract theCharSequencefrom.
Attributes
- Returns
-
a
Trycontaining aCharSequenceif successfully extracted, or aFailurewith anXmlExceptionif decoding fails.
Returns a string representation of the object.
Returns a string representation of the object.
The default representation is platform dependent.
Attributes
- Returns
-
a string representation of the object.
- Definition Classes
-
NamedFunction -> Any
Inherited methods
Appends the given string to the current name, separated by a colon, and updates the name of the current instance.
Appends the given string to the current name, separated by a colon, and updates the name of the current instance.
Value parameters
- w
-
the string to prepend to the current name.
Attributes
- Returns
-
the instance of the current object cast to type E.
- Inherited from:
- NamedFunction
Updates the name of the current instance and returns it as the specified type.
Updates the name of the current instance and returns it as the specified type.
Value parameters
- w
-
the new name to be assigned.
Attributes
- Returns
-
the instance of the current object cast to type E.
- Inherited from:
- NamedFunction
Method to flatMap this Extractor[T] into an Extractor[U].
Method to flatMap this Extractor[T] into an Extractor[U].
Type parameters
- U
-
the underlying type of the result.
Value parameters
- f
-
a
T => Try[U].
Attributes
- Returns
-
an
Extractor[U]. - Inherited from:
- Extractor
Lifts this Extractor[T] into an Extractor[Option[T]]. If the extraction is successful, the resulting value is wrapped in Some.
Lifts this Extractor[T] into an Extractor[Option[T]]. If the extraction is successful, the resulting value is wrapped in Some.
Attributes
- Returns
-
an
Extractor[Option[T]], which extracts anOption[T]from aNode. - Inherited from:
- Extractor
Method to map this Extractor[T] into an Extractor[U].
Method to map this Extractor[T] into an Extractor[U].
Type parameters
- U
-
the underlying type of the result.
Value parameters
- f
-
a
T => U.
Attributes
- Returns
-
an
Extractor[U]. - Inherited from:
- Extractor
Method to create an Extractor[T] such that, if this Extractor[T] fails, then we invoke the (implicit) Extractor[P] instead.
Method to create an Extractor[T] such that, if this Extractor[T] fails, then we invoke the (implicit) Extractor[P] instead.
TESTME
Type parameters
- P
-
the type of the alternative
Extractor.Pmust provide implicit evidence ofExtractor[P], andPmust be a subclass ofT.
Attributes
- Returns
-
an
Extractor[T]. - Inherited from:
- Extractor
Inherited fields
Represents the name attribute of a NamedFunction instance.
Represents the name attribute of a NamedFunction instance.
The name is a mutable string variable with a default value of "unnamed". It can be updated via methods such as ^^ and ^+ in the NamedFunction trait.
Attributes
- Inherited from:
- NamedFunction