|
Class: Text (in XML)
Object
|
+--XML::Node
|
+--XML::Text
- Package:
- stx:goodies/xml/vw
- Category:
- XML-VW-Nodes
- Version:
- rev:
1.19
date: 2023/09/07 21:45:32
- user: stefan
- file: Text.st directory: goodies/xml/vw
- module: stx stc-classLibrary: vw
This class represents an XML textual object,
i.e. a sequence of legal characters as defined in the XML 1.0 specification
and may represent markup or character data.
Instance Variables:
text <CharacterArray | nil>
stripped <Boolean>
instance creation
-
text: aString
-
accessing
-
characterData
-
-
characterDataDo: aBlock
-
-
characterDataOnto: str
-
-
description
-
-
string
-
-
strip: aBoolean
-
-
text
-
-
text: aText
-
-
xPath
-
return the first xPath which uniquely refers to this node.
Going to be obsoleted by xPathAndAlternativesInto:
-
xPathAndUpTo: limit alternativesInto: aBlock
-
(comment from inherited method)
generates the preferred xPath as return value,
in addition enumerates this xPath and alternative xPathes into aBlock:
- unique attributes among siblings
- index
limitOrNil controls the max. number of Xpathes to be generated
(do avoid enormous combinatoric explosion)
Useful to offer alternative xpathes in a GUI (eg. in the XML inspector);
if nil, all of them are enumerated
comparing
-
= anXmlText
-
(comment from inherited method)
return true if the receiver and the arg have the same structure.
Notice:
This method is partially open coded (inlined) by the compiler(s)
identical objects are always considered equal.
redefining it may not work as expected.
-
hash
-
(comment from inherited method)
return an Integer useful as a hash key for the receiver.
This hash should return same values for objects with same
contents (i.e. use this to hash on structure)
converting
-
asString
-
printing
-
prettyPrintOn: aStream depth: indent
-
(comment from inherited method)
self subclassResponsibility
-
printCanonicalOn: aStream
-
(comment from inherited method)
Print myself on the stream in the form described by James
Clark's canonical XML.
-
printHTMLOn: aStream
-
(comment from inherited method)
Print myself on the stream in a form usual for HTML.
-
printNoIndentOn: aStream endSpacing: endSpacingBlock spacing: spacingBlock
-
(comment from inherited method)
Print myself on the stream with line breaks between adjacent
elements, but no indentation.
-
printOn: aStream
-
text size <= 80
testing
-
isBlankText
-
-
isContent
-
-
isStripped
-
-
isText
-
visiting
-
acceptVisitor: aVisitor
-
Double dispatch back to the visitor, passing my type encoded in
the selector (visitor pattern)
|