eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'XML::Attribute':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: Attribute (in XML)


Inheritance:

   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

Description:


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


Class protocol:

instance creation
o  name: nm value: val


Instance protocol:

accessing
o  characterData

o  characterDataDo: aBlock
left blank

o  characterDataOnto: aStream

o  expandedName

o  key

o  tag

o  tagName

o  value

o  value: aValue

o  xPath
return the first xPath which uniquely refers to this node.
Going to be obsoleted by xPathAndAlternativesInto:

o  xPathAndUpTo: limit alternativesInto: aBlock
generate alternative (shorter) xpathes into aBlock

comparing
o  = 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.

o  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
o  name: nm value: val

o  tag: aTag

printing
o  prettyPrintColorizedOn: aStream

o  prettyPrintOn: aStream
Modified (format): / 30-04-2024 / 15:20:44 / Stefan Vogel

o  printCanonicalOn: aStream
(comment from inherited method)
Print myself on the stream in the form described by James
Clark's canonical XML.

o  printColorizedOn: aStream

o  printNoIndentOn: aStream endSpacing: endSpacingBlock spacing: spacingBlock
(comment from inherited method)
Print myself on the stream with line breaks between adjacent
elements, but no indentation.

o  printOn: aStream
Modified (format): / 29-04-2024 / 17:39:21 / Stefan Vogel

o  simpleDescription

testing
o  isAttribute

o  isLike: aNode

visiting
o  acceptVisitor: aVisitor
Double dispatch back to the visitor, passing my type encoded in
the selector (visitor pattern)



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Sat, 21 Dec 2024 17:05:14 GMT