Smalltalk/X WebserverDocumentation of class 'XML::Pattern': | |
Class: Pattern (in XML)Inheritance:Object | +--XML::Pattern | +--XML::ComplexPattern | +--XML::ConcretePattern
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
Instance protocol:coercing
|
|
ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Sat, 21 Dec 2024 15:47:52 GMT |