eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'XML::Pattern':

Home

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

Class: Pattern (in XML)


Inheritance:

   Object
   |
   +--XML::Pattern
      |
      +--XML::ComplexPattern
      |
      +--XML::ConcretePattern

Package:
stx:goodies/xml/vw
Category:
XML-VW-Patterns
Version:
rev: 1.11 date: 2008/09/26 10:58:32
user: stefan
file: Pattern.st directory: goodies/xml/vw
module: stx stc-classLibrary: vw

Description:


The element structure of an XML document may, for validation purposes, be constrained using element type and attribute-list declarations. An element type declaration constrains the element's content by constraining which element types can appear as children of the element.The constraint includes a content model, a simple grammar or pattern governing the allowed types of child elements and the order in which they are allowed to appear. These content models are represented by this XML.Pattern class and it's subclasses.

Constraint rules or patterns may be complex (ComplexPattern and it's subclasses) or simple (ConcretePattern and it's subclasses).
 
Subclasses must implement the following messages:
	coercing
		alternateHeads
		pushDownFollowSet
	testing
		isSimple

Instance Variables:
	followSet       <Collection>  the follow set defines which other patterns may follow this one. By means of #alternateHeads and #pushDownFollowSet, we can reduce a ComplexPattern into a graph of ConcretePatterns, always starting with an InitialPattern and terminating in a TerminalPattern.


Class protocol:

instance creation
o  new


Instance protocol:

coercing
o  addFollow: aNode

o  addFollows: aList

o  alternateHeads

o  followSet

o  normalize

o  normalizeFollowSet

o  pushDownFollowSet

initialization
o  initialize

printing
o  description

o  printOn: aStream

testing
o  isEmptyPattern

o  isListPattern

o  isModifiedPattern
answer true, if this is a pattern followed by a modifier ('*', '+' or '?')

o  isOptionalPattern

o  isPCDATAPattern

o  isSimple



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Thu, 14 Nov 2019 01:37:54 GMT