|
Class: Attribute (in XML)
Object
|
+--XML::Node
|
+--XML::Attribute
- Package:
- stx:goodies/xml/vw
- Category:
- XML-VW-Nodes
- Version:
- rev:
1.25
date: 2024/04/30 13:25:37
- user: stefan
- file: Attribute.st directory: goodies/xml/vw
- module: stx stc-classLibrary: vw
XML elements may have name-value pairs called attributes associated with them. This class instantiates an XML attribute.
Instance Variables:
name <XML.Node | XML.NodeTag> tag name
value <Object> tag value
instance creation
-
name: nm value: val
-
accessing
-
characterData
-
-
characterDataDo: aBlock
-
left blank
-
characterDataOnto: aStream
-
-
expandedName
-
-
key
-
-
tag
-
-
tagName
-
-
value
-
-
value: aValue
-
-
xPath
-
return the first xPath which uniquely refers to this node.
Going to be obsoleted by xPathAndAlternativesInto:
-
xPathAndUpTo: limit alternativesInto: aBlock
-
generate alternative (shorter) xpathes into aBlock
comparing
-
= anXmlAttribute
-
(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)
initialization
-
name: nm value: val
-
-
tag: aTag
-
printing
-
prettyPrintColorizedOn: aStream
-
-
prettyPrintOn: aStream
-
Modified (format): / 30-04-2024 / 15:20:44 / Stefan Vogel
-
printCanonicalOn: aStream
-
(comment from inherited method)
Print myself on the stream in the form described by James
Clark's canonical XML.
-
printColorizedOn: aStream
-
-
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
-
Modified (format): / 29-04-2024 / 17:39:21 / Stefan Vogel
-
simpleDescription
-
testing
-
isAttribute
-
-
isLike: aNode
-
visiting
-
acceptVisitor: aVisitor
-
Double dispatch back to the visitor, passing my type encoded in
the selector (visitor pattern)
|