/* * Geotoolkit - An Open Source Java GIS Toolkit * http://www.geotoolkit.org * * (C) 2008 - 2009, Geomatys * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. */ package org.geotoolkit.sml.xml.v101; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; import javax.xml.datatype.XMLGregorianCalendar; import org.geotoolkit.sml.xml.AbstractSecurity; //import us.gov.ic.ism.v2.ClassificationType; /** * <p>Java class for anonymous complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <attGroup ref="{urn:us:gov:ic:ism:v2}SecurityAttributesOptionGroup"/> * </restriction> * </complexContent> * </complexType> * </pre> * * * @module */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "") @XmlRootElement(name = "Security") public class Security extends SensorObject implements AbstractSecurity { /* @XmlAttribute(namespace = "urn:us:gov:ic:ism:v2") private ClassificationType classification;*/ @XmlAttribute(namespace = "urn:us:gov:ic:ism:v2") private List<String> ownerProducer; @XmlAttribute(name = "SCIcontrols", namespace = "urn:us:gov:ic:ism:v2") private List<String> scIcontrols; @XmlAttribute(name = "SARIdentifier", namespace = "urn:us:gov:ic:ism:v2") private List<String> sarIdentifier; @XmlAttribute(namespace = "urn:us:gov:ic:ism:v2") private List<String> disseminationControls; @XmlAttribute(name = "FGIsourceOpen", namespace = "urn:us:gov:ic:ism:v2") private List<String> fgIsourceOpen; @XmlAttribute(name = "FGIsourceProtected", namespace = "urn:us:gov:ic:ism:v2") private List<String> fgIsourceProtected; @XmlAttribute(namespace = "urn:us:gov:ic:ism:v2") private List<String> releasableTo; @XmlAttribute(namespace = "urn:us:gov:ic:ism:v2") private List<String> nonICmarkings; @XmlAttribute(namespace = "urn:us:gov:ic:ism:v2") private String classifiedBy; @XmlAttribute(namespace = "urn:us:gov:ic:ism:v2") private String classificationReason; @XmlAttribute(namespace = "urn:us:gov:ic:ism:v2") private String derivedFrom; @XmlAttribute(namespace = "urn:us:gov:ic:ism:v2") private XMLGregorianCalendar declassDate; @XmlAttribute(namespace = "urn:us:gov:ic:ism:v2") private String declassEvent; @XmlAttribute(namespace = "urn:us:gov:ic:ism:v2") private List<String> declassException; @XmlAttribute(namespace = "urn:us:gov:ic:ism:v2") private List<String> typeOfExemptedSource; @XmlAttribute(namespace = "urn:us:gov:ic:ism:v2") private XMLGregorianCalendar dateOfExemptedSource; @XmlAttribute(namespace = "urn:us:gov:ic:ism:v2") private Boolean declassManualReview; public Security() { } public Security(final AbstractSecurity that) { this.fgIsourceOpen = that.getFGIsourceOpen(); this.sarIdentifier = that.getSARIdentifier(); this.scIcontrols = that.getSCIcontrols(); this.classificationReason = that.getClassificationReason(); this.classifiedBy = that.getClassifiedBy(); this.dateOfExemptedSource = that.getDateOfExemptedSource(); this.declassDate = that.getDeclassDate(); this.declassEvent = that.getDeclassEvent(); this.declassException = that.getDeclassException(); this.declassManualReview = that.isDeclassManualReview(); this.derivedFrom = that.getDerivedFrom(); this.disseminationControls = that.getDisseminationControls(); this.nonICmarkings = that.getNonICmarkings(); this.ownerProducer = that.getOwnerProducer(); this.releasableTo = that.getReleasableTo(); this.typeOfExemptedSource = that.getTypeOfExemptedSource(); } /** * Gets the value of the classification property. * * @return * possible object is * {@link ClassificationType } * public ClassificationType getClassification() { return classification; } /** * Sets the value of the classification property. * * @param value * allowed object is * {@link ClassificationType } * public void setClassification(ClassificationType value) { this.classification = value; } */ /** * Gets the value of the ownerProducer 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 ownerProducer property. * * <p> * For example, to add a new item, do as follows: * <pre> * getOwnerProducer().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link String } * * */ public List<String> getOwnerProducer() { if (ownerProducer == null) { ownerProducer = new ArrayList<String>(); } return this.ownerProducer; } /** * Gets the value of the scIcontrols 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 scIcontrols property. * * <p> * For example, to add a new item, do as follows: * <pre> * getSCIcontrols().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link String } * * */ public List<String> getSCIcontrols() { if (scIcontrols == null) { scIcontrols = new ArrayList<String>(); } return this.scIcontrols; } /** * Gets the value of the sarIdentifier 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 sarIdentifier property. * * <p> * For example, to add a new item, do as follows: * <pre> * getSARIdentifier().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link String } * * */ public List<String> getSARIdentifier() { if (sarIdentifier == null) { sarIdentifier = new ArrayList<String>(); } return this.sarIdentifier; } /** * Gets the value of the disseminationControls 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 disseminationControls property. * * <p> * For example, to add a new item, do as follows: * <pre> * getDisseminationControls().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link String } * * */ public List<String> getDisseminationControls() { if (disseminationControls == null) { disseminationControls = new ArrayList<String>(); } return this.disseminationControls; } /** * Gets the value of the fgIsourceOpen 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 fgIsourceOpen property. * * <p> * For example, to add a new item, do as follows: * <pre> * getFGIsourceOpen().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link String } * * */ public List<String> getFGIsourceOpen() { if (fgIsourceOpen == null) { fgIsourceOpen = new ArrayList<String>(); } return this.fgIsourceOpen; } /** * Gets the value of the fgIsourceProtected 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 fgIsourceProtected property. * * <p> * For example, to add a new item, do as follows: * <pre> * getFGIsourceProtected().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link String } * * */ public List<String> getFGIsourceProtected() { if (fgIsourceProtected == null) { fgIsourceProtected = new ArrayList<String>(); } return this.fgIsourceProtected; } /** * Gets the value of the releasableTo 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 releasableTo property. * * <p> * For example, to add a new item, do as follows: * <pre> * getReleasableTo().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link String } * * */ public List<String> getReleasableTo() { if (releasableTo == null) { releasableTo = new ArrayList<String>(); } return this.releasableTo; } /** * Gets the value of the nonICmarkings 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 nonICmarkings property. * * <p> * For example, to add a new item, do as follows: * <pre> * getNonICmarkings().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link String } * * */ public List<String> getNonICmarkings() { if (nonICmarkings == null) { nonICmarkings = new ArrayList<String>(); } return this.nonICmarkings; } /** * Gets the value of the classifiedBy property. * * @return * possible object is * {@link String } * */ public String getClassifiedBy() { return classifiedBy; } /** * Sets the value of the classifiedBy property. * * @param value * allowed object is * {@link String } * */ public void setClassifiedBy(final String value) { this.classifiedBy = value; } /** * Gets the value of the classificationReason property. * * @return * possible object is * {@link String } * */ public String getClassificationReason() { return classificationReason; } /** * Sets the value of the classificationReason property. * * @param value * allowed object is * {@link String } * */ public void setClassificationReason(final String value) { this.classificationReason = value; } /** * Gets the value of the derivedFrom property. * * @return * possible object is * {@link String } * */ public String getDerivedFrom() { return derivedFrom; } /** * Sets the value of the derivedFrom property. * * @param value * allowed object is * {@link String } * */ public void setDerivedFrom(final String value) { this.derivedFrom = value; } /** * Gets the value of the declassDate property. * * @return * possible object is * {@link XMLGregorianCalendar } * */ public XMLGregorianCalendar getDeclassDate() { return declassDate; } /** * Sets the value of the declassDate property. * * @param value * allowed object is * {@link XMLGregorianCalendar } * */ public void setDeclassDate(final XMLGregorianCalendar value) { this.declassDate = value; } /** * Gets the value of the declassEvent property. * * @return * possible object is * {@link String } * */ public String getDeclassEvent() { return declassEvent; } /** * Sets the value of the declassEvent property. * * @param value * allowed object is * {@link String } * */ public void setDeclassEvent(final String value) { this.declassEvent = value; } /** * Gets the value of the declassException 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 declassException property. * * <p> * For example, to add a new item, do as follows: * <pre> * getDeclassException().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link String } * * */ public List<String> getDeclassException() { if (declassException == null) { declassException = new ArrayList<String>(); } return this.declassException; } /** * Gets the value of the typeOfExemptedSource 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 typeOfExemptedSource property. * * <p> * For example, to add a new item, do as follows: * <pre> * getTypeOfExemptedSource().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link String } * * */ public List<String> getTypeOfExemptedSource() { if (typeOfExemptedSource == null) { typeOfExemptedSource = new ArrayList<String>(); } return this.typeOfExemptedSource; } /** * Gets the value of the dateOfExemptedSource property. * * @return * possible object is * {@link XMLGregorianCalendar } * */ public XMLGregorianCalendar getDateOfExemptedSource() { return dateOfExemptedSource; } /** * Sets the value of the dateOfExemptedSource property. * * @param value * allowed object is * {@link XMLGregorianCalendar } * */ public void setDateOfExemptedSource(final XMLGregorianCalendar value) { this.dateOfExemptedSource = value; } /** * Gets the value of the declassManualReview property. * * @return * possible object is * {@link Boolean } * */ public Boolean isDeclassManualReview() { return declassManualReview; } /** * Sets the value of the declassManualReview property. * * @param value * allowed object is * {@link Boolean } * */ public void setDeclassManualReview(final Boolean value) { this.declassManualReview = value; } }