1 /* 2 * Copyright 2017 the original author or authors. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 package org.openehealth.ipf.commons.ihe.hpd.stub.dsmlv2; 17 18 import javax.xml.bind.annotation.XmlAccessType; 19 import javax.xml.bind.annotation.XmlAccessorType; 20 import javax.xml.bind.annotation.XmlAttribute; 21 import javax.xml.bind.annotation.XmlType; 22 23 24 /** 25 * <p>Java class for Control complex type. 26 * 27 * <p>The following schema fragment specifies the expected content contained within this class. 28 * 29 * <pre> 30 * <complexType name="Control"> 31 * <complexContent> 32 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 33 * <sequence> 34 * <element name="controlValue" type="{http://www.w3.org/2001/XMLSchema}anyType" minOccurs="0"/> 35 * </sequence> 36 * <attribute name="type" use="required" type="{urn:oasis:names:tc:DSML:2:0:core}NumericOID" /> 37 * <attribute name="criticality" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" /> 38 * </restriction> 39 * </complexContent> 40 * </complexType> 41 * </pre> 42 * 43 * 44 */ 45 @XmlAccessorType(XmlAccessType.FIELD) 46 @XmlType(name = "Control", propOrder = { 47 "controlValue" 48 }) 49 public class Control { 50 51 protected Object controlValue; 52 @XmlAttribute(name = "type", required = true) 53 protected String type; 54 @XmlAttribute(name = "criticality") 55 protected Boolean criticality; 56 57 /** 58 * Gets the value of the controlValue property. 59 * 60 * @return 61 * possible object is 62 * {@link Object } 63 * 64 */ 65 public Object getControlValue() { 66 return controlValue; 67 } 68 69 /** 70 * Sets the value of the controlValue property. 71 * 72 * @param value 73 * allowed object is 74 * {@link Object } 75 * 76 */ 77 public void setControlValue(Object value) { 78 this.controlValue = value; 79 } 80 81 /** 82 * Gets the value of the type property. 83 * 84 * @return 85 * possible object is 86 * {@link String } 87 * 88 */ 89 public String getType() { 90 return type; 91 } 92 93 /** 94 * Sets the value of the type property. 95 * 96 * @param value 97 * allowed object is 98 * {@link String } 99 * 100 */ 101 public void setType(String value) { 102 this.type = value; 103 } 104 105 /** 106 * Gets the value of the criticality property. 107 * 108 * @return 109 * possible object is 110 * {@link Boolean } 111 * 112 */ 113 public boolean isCriticality() { 114 if (criticality == null) { 115 return false; 116 } else { 117 return criticality; 118 } 119 } 120 121 /** 122 * Sets the value of the criticality property. 123 * 124 * @param value 125 * allowed object is 126 * {@link Boolean } 127 * 128 */ 129 public void setCriticality(Boolean value) { 130 this.criticality = value; 131 } 132 133 }