All Downloads are FREE. Search and download functionalities are using the official Maven repository.

schema.common.AbstractPort.json Maven / Gradle / Ivy

The newest version!
{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "definitions": {
        "portIdentifier": {
            "description": "A port identifier following the convention of http://microformats.org/wiki/hcard",
            "type": "object",
            "properties": {
                "id": {
                    "type": "integer"
                },
                "portType": {
                    "$ref": "#/definitions/portType"
                }
            },
            "required": [
                "id",
                "portType"
            ]
        },
        "abstractPort": {
            "description": "A Port following the convention of http://microformats.org/wiki/hcard",
            "type": "object",
            "extends": {
                "$ref": "#/definitions/portIdentifier"
            },
            "properties": {
                "enabled": {
                    "type": "boolean"
                },
                "portIdentifier": {
                    "type": "string"
                },
                "label": {
                    "type": "string"
                },
                "inactive": {
                    "type": "boolean"
                },
                "error": {
                    "type": "string"
                }
            },
            "required": [
                "id"
            ]
        },
        "portType": {
            "description": "A port type following the convention of http://microformats.org/wiki/hcard",
            "type": "string",
            "enum": [
                "SWITCH",
                "LIGHT",
                "SERVO",
                "SOUND",
                "MOTOR",
                "ANALOGOUT",
                "BACKLIGHT",
                "SWITCHPAIR",
                "INPUT",
                "FEEDBACK"
            ],
            "javaEnums": [
				{
					"name": "SWITCHPORT"
				}, {
					"name": "LIGHTPORT"
				}, {
					"name": "SERVOPORT"
				}, {
					"name": "SOUNDPORT"
				}, {
					"name": "MOTORPORT"
				}, {
					"name": "ANALOGPORT"
				}, {
					"name": "BACKLIGHTPORT"
				}, {
					"name": "SWITCHPAIRPORT"
				}, {
					"name": "INPUTPORT"
				}, {
					"name": "FEEDBACKPORT"
				}
            ]
        },
        "portCountType": {
            "description": "A portCount type following the convention of http://microformats.org/wiki/hcard",
            "type": "object",
            "additionalProperties": false,
            "properties": {
                "key": {
                    "$ref": "#/definitions/portType"
                },
                "value": {
                    "type": "integer"
                }
            }
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy