//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.5-2
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2014.06.12 at 01:48:04 PM CEST
//
package de.tum.in.i22.uc.pdp.xsd;
import java.util.ArrayList;
import java.util.List;
import ae.javax.xml.bind.annotation.XmlAccessType;
import ae.javax.xml.bind.annotation.XmlAccessorType;
import ae.javax.xml.bind.annotation.XmlAttribute;
import ae.javax.xml.bind.annotation.XmlElement;
import ae.javax.xml.bind.annotation.XmlElements;
import ae.javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for PolicyType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="PolicyType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="initialRepresentations" type="{http://www22.in.tum.de/enforcementLanguage}InitialRepresentationType" minOccurs="0"/>
* <choice maxOccurs="unbounded" minOccurs="0">
* <element name="detectiveMechanism" type="{http://www22.in.tum.de/enforcementLanguage}DetectiveMechanismType"/>
* <element name="preventiveMechanism" type="{http://www22.in.tum.de/enforcementLanguage}PreventiveMechanismType"/>
* </choice>
* </sequence>
* <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "PolicyType", propOrder = {
"initialRepresentations",
"detectiveMechanismOrPreventiveMechanism"
})
public class PolicyType {
protected InitialRepresentationType initialRepresentations;
@XmlElements({
@XmlElement(name = "detectiveMechanism", type = DetectiveMechanismType.class),
@XmlElement(name = "preventiveMechanism", type = PreventiveMechanismType.class)
})
protected List<MechanismBaseType> detectiveMechanismOrPreventiveMechanism;
@XmlAttribute(name = "name", required = true)
protected String name;
/**
* Gets the value of the initialRepresentations property.
*
* @return
* possible object is
* {@link InitialRepresentationType }
*
*/
public InitialRepresentationType getInitialRepresentations() {
return initialRepresentations;
}
/**
* Sets the value of the initialRepresentations property.
*
* @param value
* allowed object is
* {@link InitialRepresentationType }
*
*/
public void setInitialRepresentations(InitialRepresentationType value) {
this.initialRepresentations = value;
}
public boolean isSetInitialRepresentations() {
return (this.initialRepresentations!= null);
}
/**
* Gets the value of the detectiveMechanismOrPreventiveMechanism property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the detectiveMechanismOrPreventiveMechanism property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getDetectiveMechanismOrPreventiveMechanism().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link DetectiveMechanismType }
* {@link PreventiveMechanismType }
*
*
*/
public List<MechanismBaseType> getDetectiveMechanismOrPreventiveMechanism() {
if (detectiveMechanismOrPreventiveMechanism == null) {
detectiveMechanismOrPreventiveMechanism = new ArrayList<MechanismBaseType>();
}
return this.detectiveMechanismOrPreventiveMechanism;
}
public boolean isSetDetectiveMechanismOrPreventiveMechanism() {
return ((this.detectiveMechanismOrPreventiveMechanism!= null)&&(!this.detectiveMechanismOrPreventiveMechanism.isEmpty()));
}
public void unsetDetectiveMechanismOrPreventiveMechanism() {
this.detectiveMechanismOrPreventiveMechanism = null;
}
/**
* Gets the value of the name property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getName() {
return name;
}
/**
* Sets the value of the name property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setName(String value) {
this.name = value;
}
public boolean isSetName() {
return (this.name!= null);
}
}