RequestOutputPostProcessingNodeClass.php
857 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
define ("REQUESTOUTPUTPOSTPROCESSING_NAME", "postProcess");
/**
* @class RequestOutputPostProcessingNodeClass
* @brief Definition of a request post processing node type for AMDA_Kernel
* @details
*/
class RequestOutputPostProcessingNodeClass extends NodeClass
{
public function __construct()
{
parent::__construct(REQUESTOUTPUTPOSTPROCESSING_NAME);
}
public function addPostProcessing($type)
{
$this->getChildInstanceByName($type, true);
}
public function isPostProcessing($type)
{
if ($type == RequestOutputPostProcessingEnumClass::UNKNOWN)
return false;
return ($this->getChildInstanceByName($type) != NULL);
}
public function loadFromNode($xmlNode)
{
foreach ($this->getXmlNodeChildren($xmlNode) as $postprocessingXmlNode) {
$this->addPostProcessing($this->getXmlNodeName($postprocessingXmlNode));
}
}
}
?>