class XMLParser extends Alvine

XML-Parser

Constants

PROCESSORDEFAULTNAME

Name des Default Processors

Properties

protected array $steps
protected array $actions
protected array $states
protected array $errors
protected XPath $document
protected Processor $processor
protected Transitions $transitions

Methods

initStructure()

Alle Strukturen für einen neuen Durchlauf auf den Startwert initialisieren

initDocument(string $xml)

No description

initProcessor()

No description

parseSteps()

No description

parseTransistionVerifications(Transition $transistion, Element $transitionNode)

string|null
getClassFromAttribute(Node $node, string $attributeName, string|null $shouldInstanceOfClass, string $context, string|null $defaultClass = null)

No description

parseTransistionExceptions(Transition $transistion, Element $transitionNode)

No description

Handler|null
parseExceptionHandler(Transition $transistion, Element $exceptionNode)

No description

ParameterMap
getParamterMap(NodeList $parameterNodes)

ObjectMap erstellen

parseTransitions()

No description

parseStates()

No description

parse(string $xml)

No description

parseAutomationConditions(Element $rule, Rule $ruleInstance)

No description

parseAutomationActions(Element $rule, Rule $ruleInstance)

No description

parseAutomation()

No description

parseAdmission()

admission-Tag parsen

Details

at line 86
protected XMLParser initStructure()

Alle Strukturen für einen neuen Durchlauf auf den Startwert initialisieren

Return Value

XMLParser

at line 103
protected XMLParser initDocument(string $xml)

Parameters

string $xml

Return Value

XMLParser

at line 114
protected XMLParser initProcessor()

Return Value

XMLParser

Exceptions

ConfigurationException

at line 142
protected XMLParser parseSteps()

Return Value

XMLParser

Exceptions

ConfigurationException

at line 228
protected XMLParser parseTransistionVerifications(Transition $transistion, Element $transitionNode)

Parameters

Transition $transistion
Element $transitionNode

Return Value

XMLParser

at line 266
protected string|null getClassFromAttribute(Node $node, string $attributeName, string|null $shouldInstanceOfClass, string $context, string|null $defaultClass = null)

Parameters

Node $node
string $attributeName
string|null $shouldInstanceOfClass
string $context
string|null $defaultClass

Return Value

string|null

at line 301
protected XMLParser parseTransistionExceptions(Transition $transistion, Element $transitionNode)

Parameters

Transition $transistion
Element $transitionNode

Return Value

XMLParser

at line 355
protected Handler|null parseExceptionHandler(Transition $transistion, Element $exceptionNode)

Parameters

Transition $transistion
Element $exceptionNode

Return Value

Handler|null

at line 395
protected ParameterMap getParamterMap(NodeList $parameterNodes)

ObjectMap erstellen

Diese Methode erstellt eine ObjectMap von Parameter Objekten

<parameters>
  <parameter type="integer" name="name">myName</parameter>
  <parameter type="string" name="format">jpg</parameter>
</parameters>

Parameters

NodeList $parameterNodes

Return Value

ParameterMap

Exceptions

UnsupportedParameterException

at line 425
protected XMLParser parseTransitions()

Return Value

XMLParser

at line 501
protected XMLParser parseStates()

Return Value

XMLParser

at line 533
Processor parse(string $xml)

Parameters

string $xml

Return Value

Processor

Exceptions

ClassNotFoundException

at line 560
protected XMLParser parseAutomationConditions(Element $rule, Rule $ruleInstance)

Parameters

Element $rule
Rule $ruleInstance

Return Value

XMLParser

at line 592
protected XMLParser parseAutomationActions(Element $rule, Rule $ruleInstance)

Parameters

Element $rule
Rule $ruleInstance

Return Value

XMLParser

at line 620
protected XMLParser parseAutomation()

Return Value

XMLParser

at line 667
protected XMLParser parseAdmission()

admission-Tag parsen

Return Value

XMLParser