Tests if the specified element has a sequence of predecessors that complies with the specified Element Types.
checkPredecessorsByTypes (
"xs:complexType",
"xs:%restrictionType"
)
'xs:complexType'
,
which in turn has a predecessor of type 'xs:%restrictionType'
.
Parameters:
element
If not specified, the generator context element is assumed, which is the same as the call:
checkPredecessorsByTypes (
contextElement,
...
)
GOMContext.contextElement
Note: When this parameter is null
, the function just returns false
.
elementTypeSpecs
The first parameter specifies the matching type(s) of the closest required predecessor of the
specified element (see parameter 'element'
above).
The next parameter specifies the type(s) of the closest predecessor of that predecessor and so on.
Note: When no target Element Type has been specified, the function just returns false
.
true
if the predecessors corresponding
all provided Element Type specifications have been found;false
otherwise (or in the case element == null
or no target Element Types specified).
GOMElement.predecessors, checkPredecessorByType()