Schema definition Switch
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p3033.png
location E:\x3d-code\www.web3d.org\specifications\x3d-3.3-JSONSchema.json
type Object
properties
Name   Occurrence
@DEF   Optional
@USE   Optional
IS   Optional
@bboxCenter   Optional
@bboxSize   Optional
@whichChoice   Optional
-children   Optional
-metadata   Optional
used by Scene / -children > array items [0]+ / Schema / Switch
TransformSensor / -targetObject > array items [0]+ / Schema / Switch
-allNodes > array items [0]+ / Schema / Switch
-child / Switch
-children > array items [0]+ / Schema / Switch
-grouping > array items [0]+ / Schema / Switch
-pickTarget > array items [0]+ / Schema / Switch
source code "Switch": {
    "type": "object",
    "properties": {
        "@DEF": {
            "type": "string"
        },
        "@USE": {
            "type": "string"
        },
        "IS": {
            "$ref": "#/definitions/IS"
        },
        "@bboxCenter": {
            "type": "array",
            "minItems": 3,
            "maxItems": 3,
            "items": {
                "type": "number",
                "default": 0
            }
        },
        "@bboxSize": {
            "$ref": "#/definitions/@bboxSize"
        },
        "@whichChoice": {
            "type": "integer",
            "minimum": -1,
            "default": -1
        },
        "-children": {
            "$ref": "#/definitions/-children"
        },
        "-metadata": {
            "$ref": "#/definitions/-metadata"
        }
    },
    "additionalProperties": false
}

Property Switch / @DEF
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p3034.png
property details
Occurrence  Optional
type String
source code "@DEF": {
    "type": "string"
}

Property Switch / @USE
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p3035.png
property details
Occurrence  Optional
type String
source code "@USE": {
    "type": "string"
}

Property Switch / IS
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p3036.png
property details
Occurrence  Optional
reference IS
source code "IS": {
    "$ref": "#/definitions/IS"
}

Property Switch / @bboxCenter
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p3037.png
property details
Occurrence  Optional
type Array
array constraints
Min Items  3
Max Items  3
array items
[0 - 2]  Schema
source code "@bboxCenter": {
    "type": "array",
    "minItems": 3,
    "maxItems": 3,
    "items": {
        "type": "number",
        "default": 0
    }
}

Array item wildcard Switch / @bboxCenter > array items [0]+ / Schema
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p3038.png
schema details
Default  0
type Numeric
source code {
    "type": "number",
    "default": 0
}

Property Switch / @bboxSize
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p3039.png
property details
Occurrence  Optional
reference @bboxSize
source code "@bboxSize": {
    "$ref": "#/definitions/@bboxSize"
}

Property Switch / @whichChoice
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p3040.png
property details
Occurrence  Optional
schema details
Default  -1
type Numeric
numeric constraints
Mode  Integer
Minimum  -1
source code "@whichChoice": {
    "type": "integer",
    "minimum": -1,
    "default": -1
}

Property Switch / -children
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p3041.png
property details
Occurrence  Optional
reference -children
source code "-children": {
    "$ref": "#/definitions/-children"
}

Property Switch / -metadata
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p3042.png
property details
Occurrence  Optional
reference -metadata
source code "-metadata": {
    "$ref": "#/definitions/-metadata"
}


JSON Schema documentation generated by XMLSpy JSON Schema Editor http://www.altova.com/xmlspy/json-schema-editor.html