Text.XML.HXT.RelaxNG.PatternFunctions

hxt-relaxng-9.1.5.5: The HXT RelaxNG validator

Safe Haskell | None
Language | Haskell98

Text.XML.HXT.RelaxNG.PatternFunctions

Description

basic `Pattern` functions

Synopsis

- isRelaxEmpty :: Pattern -> Bool
- isRelaxNotAllowed :: Pattern -> Bool
- isRelaxText :: Pattern -> Bool
- isRelaxChoice :: Pattern -> Bool
- isRelaxInterleave :: Pattern -> Bool
- isRelaxGroup :: Pattern -> Bool
- isRelaxOneOrMore :: Pattern -> Bool
- isRelaxList :: Pattern -> Bool
- isRelaxData :: Pattern -> Bool
- isRelaxDataExcept :: Pattern -> Bool
- isRelaxValue :: Pattern -> Bool
- isRelaxAttribute :: Pattern -> Bool
- isRelaxElement :: Pattern -> Bool
- isRelaxAfter :: Pattern -> Bool
- getChildrenPattern :: Pattern -> [Pattern]
- getNameClassFromPattern :: Pattern -> NameClass
- getPatternName :: Pattern -> String

# Documentation

isRelaxEmpty :: Pattern -> Bool #

isRelaxNotAllowed :: Pattern -> Bool #

isRelaxText :: Pattern -> Bool #

isRelaxChoice :: Pattern -> Bool #

isRelaxInterleave :: Pattern -> Bool #

isRelaxGroup :: Pattern -> Bool #

isRelaxOneOrMore :: Pattern -> Bool #

isRelaxList :: Pattern -> Bool #

isRelaxData :: Pattern -> Bool #

isRelaxDataExcept :: Pattern -> Bool #

isRelaxValue :: Pattern -> Bool #

isRelaxAttribute :: Pattern -> Bool #

isRelaxElement :: Pattern -> Bool #

isRelaxAfter :: Pattern -> Bool #

getChildrenPattern :: Pattern -> [Pattern] #

Returns a list of children pattern for each pattern, e.g. (Choice p1 p2) = [p1, p2]

getNameClassFromPattern :: Pattern -> NameClass #

Returns the nameclass of a element- or attribute pattern. Otherwise `NCError` is returned.

getPatternName :: Pattern -> String #

Returns a string representation of the pattern name