org.xipki.ca.certprofile.x509.jaxb.SubjectInfoAccess Maven / Gradle / Ivy
package org.xipki.ca.certprofile.x509.jaxb;
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.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for anonymous complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="access" maxOccurs="unbounded">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="accessMethod" type="{http://xipki.org/ca/xmlprofile/v2}oidWithDescType"/>
* <element name="accessLocation" type="{http://xipki.org/ca/xmlprofile/v2}generalNameType"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"access"
})
@XmlRootElement(name = "subjectInfoAccess")
public class SubjectInfoAccess {
@XmlElement(required = true)
protected List access;
/**
* Gets the value of the access property.
*
*
* 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 set
method for the access property.
*
*
* For example, to add a new item, do as follows:
*
* getAccess().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link SubjectInfoAccess.Access }
*
*
*/
public List getAccess() {
if (access == null) {
access = new ArrayList();
}
return this.access;
}
/**
* Java class for anonymous complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="accessMethod" type="{http://xipki.org/ca/xmlprofile/v2}oidWithDescType"/>
* <element name="accessLocation" type="{http://xipki.org/ca/xmlprofile/v2}generalNameType"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"accessMethod",
"accessLocation"
})
public static class Access {
@XmlElement(required = true)
protected OidWithDescType accessMethod;
@XmlElement(required = true)
protected GeneralNameType accessLocation;
/**
* Gets the value of the accessMethod property.
*
* @return
* possible object is
* {@link OidWithDescType }
*
*/
public OidWithDescType getAccessMethod() {
return accessMethod;
}
/**
* Sets the value of the accessMethod property.
*
* @param value
* allowed object is
* {@link OidWithDescType }
*
*/
public void setAccessMethod(OidWithDescType value) {
this.accessMethod = value;
}
/**
* Gets the value of the accessLocation property.
*
* @return
* possible object is
* {@link GeneralNameType }
*
*/
public GeneralNameType getAccessLocation() {
return accessLocation;
}
/**
* Sets the value of the accessLocation property.
*
* @param value
* allowed object is
* {@link GeneralNameType }
*
*/
public void setAccessLocation(GeneralNameType value) {
this.accessLocation = value;
}
}
}