eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'XML::AttributeDef':

Home

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

Class: AttributeDef (in XML)


Inheritance:

   Object
   |
   +--XML::AttributeDef

Package:
stx:goodies/xml/vw
Category:
XML-VW-Attributes
Version:
rev: 1.7 date: 2016/11/19 12:07:31
user: cg
file: AttributeDef.st directory: goodies/xml/vw
module: stx stc-classLibrary: vw

Description:


XML documents may contain attribute-list declarations that are used to define the set of attributes pertaining to a given element type. These attribute-list declarations are also used to establish type constraints for the attributes and to provide default values for attributes. Attribute-list declarations contain attribute definitions and this class is used to instantiate these attribute definitions.

An attribute definition specifies the name (name instance variable) of the attribute, the data type of the attribute (type instance variable) and an optional default value (default instance variable) for the attribute

Instance Variables:
	name    <XML.NodeTag>           name of attribute
	default <String | nil>                                  default value, if any
	type    <XML.AttributeType>     type used for validation
	flags   <Integer>                               encoding for fixed, implied and required type attributes


Instance protocol:

accessing
o  default

o  default: n

o  hasDefault

o  isFixed

o  isImplied

o  isRequired

o  name

o  name: n

o  tag

o  type

o  type: n

private
o  value

o  value: str

validating
o  completeValidationAgainst: aParser
Modifed to handle IMPLIED (no value to validate) attributes. REW

o  selfValidateFor: aParser

o  validateValueOf: anAttribute for: aParser



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Sun, 17 Nov 2019 02:27:13 GMT