View Javadoc
1   
2   package org.miloss.fgsms.services.interfaces.common;
3   
4   import java.io.Serializable;
5   import javax.xml.bind.annotation.XmlAccessType;
6   import javax.xml.bind.annotation.XmlAccessorType;
7   import javax.xml.bind.annotation.XmlElement;
8   import javax.xml.bind.annotation.XmlType;
9   import us.gov.ic.ism.v2.ClassificationType;
10  
11  
12  /**
13   * 
14   * 				provides a simple wrapper that adds caveat information to classification levels
15   * 			
16   * 
17   * <p>Java class for SecurityWrapper complex type.
18   * 
19   * <p>The following schema fragment specifies the expected content contained within this class.
20   * 
21   * <pre>
22   * &lt;complexType name="SecurityWrapper">
23   *   &lt;complexContent>
24   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
25   *       &lt;sequence>
26   *         &lt;element name="classification" type="{urn:us:gov:ic:ism:v2}ClassificationType"/>
27   *         &lt;element name="caveats" type="{http://www.w3.org/2001/XMLSchema}string"/>
28   *       &lt;/sequence>
29   *     &lt;/restriction>
30   *   &lt;/complexContent>
31   * &lt;/complexType>
32   * </pre>
33   * 
34   * 
35   */
36  @XmlAccessorType(XmlAccessType.FIELD)
37  @XmlType(name = "SecurityWrapper", propOrder = {
38      "classification",
39      "caveats"
40  })
41  public class SecurityWrapper
42      implements Serializable
43  {
44  
45      private final static long serialVersionUID = 1L;
46      @XmlElement(required = true, defaultValue = "U")
47      protected ClassificationType classification;
48      @XmlElement(required = true, defaultValue = "")
49      protected String caveats;
50  
51          public SecurityWrapper(ClassificationType classificationType, String cavaet) {
52                  this.classification=classificationType;
53                  this.caveats = cavaet;
54          }
55          
56           public SecurityWrapper() {
57                  this.classification=ClassificationType.U;
58                  this.caveats="";
59          }
60  
61      /**
62       * Gets the value of the classification property.
63       * 
64       * @return
65       *     possible object is
66       *     {@link ClassificationType }
67       *     
68       */
69      public ClassificationType getClassification() {
70          return classification;
71      }
72  
73      /**
74       * Sets the value of the classification property.
75       * 
76       * @param value
77       *     allowed object is
78       *     {@link ClassificationType }
79       *     
80       */
81      public void setClassification(ClassificationType value) {
82          this.classification = value;
83      }
84  
85      /**
86       * Gets the value of the caveats property.
87       * 
88       * @return
89       *     possible object is
90       *     {@link String }
91       *     
92       */
93      public String getCaveats() {
94          return caveats;
95      }
96  
97      /**
98       * Sets the value of the caveats property.
99       * 
100      * @param value
101      *     allowed object is
102      *     {@link String }
103      *     
104      */
105     public void setCaveats(String value) {
106         this.caveats = value;
107     }
108 
109 }