@@ 11-31 (lines=21) @@ | ||
8 | * For example, 0FB8 and 0fb8 are two equal xsd:hexBinary representations consisting of two octets. |
|
9 | * @package AlgoWeb\xsdTypes |
|
10 | */ |
|
11 | class xsHexBinary extends xsAnySimpleType |
|
12 | { |
|
13 | use LengthTrait; |
|
14 | ||
15 | /** |
|
16 | * Construct |
|
17 | * |
|
18 | * @param string $value |
|
19 | */ |
|
20 | public function __construct($value) |
|
21 | { |
|
22 | parent::__construct($value); |
|
23 | $this->setWhiteSpaceFacet("collapse"); |
|
24 | } |
|
25 | ||
26 | protected function isOK() |
|
27 | { |
|
28 | $this->checkMaxLength($this->__value); |
|
29 | $this->checkMinLength($this->__value); |
|
30 | } |
|
31 | } |
|
32 |
@@ 16-36 (lines=21) @@ | ||
13 | * Each of these enumeration values must match the name of a declared notation. |
|
14 | * @package AlgoWeb\xsdTypes |
|
15 | */ |
|
16 | abstract class xsNOTATION extends xsAnySimpleType |
|
17 | { |
|
18 | use LengthTrait; |
|
19 | ||
20 | /** |
|
21 | * Construct |
|
22 | * |
|
23 | * @param string $value |
|
24 | */ |
|
25 | public function __construct($value) |
|
26 | { |
|
27 | parent::__construct($value); |
|
28 | $this->setWhiteSpaceFacet("collapse"); |
|
29 | } |
|
30 | ||
31 | protected function isOK() |
|
32 | { |
|
33 | $this->checkMaxLength($this->__value); |
|
34 | $this->checkMinLength($this->__value); |
|
35 | } |
|
36 | } |
|
37 |
@@ 12-32 (lines=21) @@ | ||
9 | * optional, but if they are not present, it is assumed that either the name is namespace-qualified by other means |
|
10 | * (e.g., by a default namespace declaration), or the name is not in a namespace. |
|
11 | */ |
|
12 | class xsQName extends xsAnySimpleType |
|
13 | { |
|
14 | use LengthTrait; |
|
15 | ||
16 | /** |
|
17 | * Construct |
|
18 | * |
|
19 | * @param string $value |
|
20 | */ |
|
21 | public function __construct($value) |
|
22 | { |
|
23 | parent::__construct($value); |
|
24 | $this->setWhiteSpaceFacet("collapse"); |
|
25 | } |
|
26 | ||
27 | protected function isOK() |
|
28 | { |
|
29 | $this->checkMaxLength($this->__value); |
|
30 | $this->checkMinLength($this->__value); |
|
31 | } |
|
32 | } |
|
33 |