All Downloads are FREE. Search and download functionalities are using the official Maven repository.

no.digipost.org.w3.xmldsig.X509Data Maven / Gradle / Ivy

//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.3.0 
// See https://javaee.github.io/jaxb-v2/ 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2022.11.16 at 09:22:53 AM UTC 
//


package no.digipost.org.w3.xmldsig;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAnyElement;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlElementRefs;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import org.jvnet.jaxb2_commons.lang.Equals2;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy2;
import org.jvnet.jaxb2_commons.lang.HashCode2;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy2;
import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy;
import org.jvnet.jaxb2_commons.lang.ToString2;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy2;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;
import org.w3c.dom.Element;


/**
 * 

Java class for X509DataType complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType name="X509DataType">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence maxOccurs="unbounded">
 *         <choice>
 *           <element name="X509IssuerSerial" type="{http://www.w3.org/2000/09/xmldsig#}X509IssuerSerialType"/>
 *           <element name="X509SKI" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/>
 *           <element name="X509SubjectName" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *           <element name="X509Certificate" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/>
 *           <element name="X509CRL" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/>
 *           <any processContents='lax' namespace='##other'/>
 *         </choice>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "X509DataType", propOrder = { "x509IssuerSerialsAndX509SKISAndX509SubjectNames" }) @XmlRootElement(name = "X509Data") public class X509Data implements Equals2, HashCode2, ToString2 { @XmlElementRefs({ @XmlElementRef(name = "X509IssuerSerial", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class, required = false), @XmlElementRef(name = "X509SKI", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class, required = false), @XmlElementRef(name = "X509SubjectName", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class, required = false), @XmlElementRef(name = "X509Certificate", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class, required = false), @XmlElementRef(name = "X509CRL", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class, required = false) }) @XmlAnyElement(lax = true) protected List x509IssuerSerialsAndX509SKISAndX509SubjectNames; /** * Default no-arg constructor * */ public X509Data() { super(); } /** * Fully-initialising value constructor * */ public X509Data(final List x509IssuerSerialsAndX509SKISAndX509SubjectNames) { this.x509IssuerSerialsAndX509SKISAndX509SubjectNames = x509IssuerSerialsAndX509SKISAndX509SubjectNames; } /** * Gets the value of the x509IssuerSerialsAndX509SKISAndX509SubjectNames 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 x509IssuerSerialsAndX509SKISAndX509SubjectNames property. * *

* For example, to add a new item, do as follows: *

     *    getX509IssuerSerialsAndX509SKISAndX509SubjectNames().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link JAXBElement }{@code <}{@link X509IssuerSerialType }{@code >} * {@link JAXBElement }{@code <}{@link byte[]}{@code >} * {@link JAXBElement }{@code <}{@link String }{@code >} * {@link JAXBElement }{@code <}{@link byte[]}{@code >} * {@link JAXBElement }{@code <}{@link byte[]}{@code >} * {@link Element } * {@link java.lang.Object } * * */ public List getX509IssuerSerialsAndX509SKISAndX509SubjectNames() { if (x509IssuerSerialsAndX509SKISAndX509SubjectNames == null) { x509IssuerSerialsAndX509SKISAndX509SubjectNames = new ArrayList(); } return this.x509IssuerSerialsAndX509SKISAndX509SubjectNames; } public void setX509IssuerSerialsAndX509SKISAndX509SubjectNames(List value) { this.x509IssuerSerialsAndX509SKISAndX509SubjectNames = null; if (value!= null) { List draftl = this.getX509IssuerSerialsAndX509SKISAndX509SubjectNames(); draftl.addAll(value); } } public String toString() { final ToStringStrategy2 strategy = JAXBToStringStrategy.INSTANCE2; final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); } public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { strategy.appendStart(locator, this, buffer); appendFields(locator, buffer, strategy); strategy.appendEnd(locator, this, buffer); return buffer; } public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy2 strategy) { { List theX509IssuerSerialsAndX509SKISAndX509SubjectNames; theX509IssuerSerialsAndX509SKISAndX509SubjectNames = (((this.x509IssuerSerialsAndX509SKISAndX509SubjectNames!= null)&&(!this.x509IssuerSerialsAndX509SKISAndX509SubjectNames.isEmpty()))?this.getX509IssuerSerialsAndX509SKISAndX509SubjectNames():null); strategy.appendField(locator, this, "x509IssuerSerialsAndX509SKISAndX509SubjectNames", buffer, theX509IssuerSerialsAndX509SKISAndX509SubjectNames, ((this.x509IssuerSerialsAndX509SKISAndX509SubjectNames!= null)&&(!this.x509IssuerSerialsAndX509SKISAndX509SubjectNames.isEmpty()))); } return buffer; } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, java.lang.Object object, EqualsStrategy2 strategy) { if ((object == null)||(this.getClass()!= object.getClass())) { return false; } if (this == object) { return true; } final X509Data that = ((X509Data) object); { List lhsX509IssuerSerialsAndX509SKISAndX509SubjectNames; lhsX509IssuerSerialsAndX509SKISAndX509SubjectNames = (((this.x509IssuerSerialsAndX509SKISAndX509SubjectNames!= null)&&(!this.x509IssuerSerialsAndX509SKISAndX509SubjectNames.isEmpty()))?this.getX509IssuerSerialsAndX509SKISAndX509SubjectNames():null); List rhsX509IssuerSerialsAndX509SKISAndX509SubjectNames; rhsX509IssuerSerialsAndX509SKISAndX509SubjectNames = (((that.x509IssuerSerialsAndX509SKISAndX509SubjectNames!= null)&&(!that.x509IssuerSerialsAndX509SKISAndX509SubjectNames.isEmpty()))?that.getX509IssuerSerialsAndX509SKISAndX509SubjectNames():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "x509IssuerSerialsAndX509SKISAndX509SubjectNames", lhsX509IssuerSerialsAndX509SKISAndX509SubjectNames), LocatorUtils.property(thatLocator, "x509IssuerSerialsAndX509SKISAndX509SubjectNames", rhsX509IssuerSerialsAndX509SKISAndX509SubjectNames), lhsX509IssuerSerialsAndX509SKISAndX509SubjectNames, rhsX509IssuerSerialsAndX509SKISAndX509SubjectNames, ((this.x509IssuerSerialsAndX509SKISAndX509SubjectNames!= null)&&(!this.x509IssuerSerialsAndX509SKISAndX509SubjectNames.isEmpty())), ((that.x509IssuerSerialsAndX509SKISAndX509SubjectNames!= null)&&(!that.x509IssuerSerialsAndX509SKISAndX509SubjectNames.isEmpty())))) { return false; } } return true; } public boolean equals(java.lang.Object object) { final EqualsStrategy2 strategy = JAXBEqualsStrategy.INSTANCE2; return equals(null, null, object, strategy); } public int hashCode(ObjectLocator locator, HashCodeStrategy2 strategy) { int currentHashCode = 1; { List theX509IssuerSerialsAndX509SKISAndX509SubjectNames; theX509IssuerSerialsAndX509SKISAndX509SubjectNames = (((this.x509IssuerSerialsAndX509SKISAndX509SubjectNames!= null)&&(!this.x509IssuerSerialsAndX509SKISAndX509SubjectNames.isEmpty()))?this.getX509IssuerSerialsAndX509SKISAndX509SubjectNames():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "x509IssuerSerialsAndX509SKISAndX509SubjectNames", theX509IssuerSerialsAndX509SKISAndX509SubjectNames), currentHashCode, theX509IssuerSerialsAndX509SKISAndX509SubjectNames, ((this.x509IssuerSerialsAndX509SKISAndX509SubjectNames!= null)&&(!this.x509IssuerSerialsAndX509SKISAndX509SubjectNames.isEmpty()))); } return currentHashCode; } public int hashCode() { final HashCodeStrategy2 strategy = JAXBHashCodeStrategy.INSTANCE2; return this.hashCode(null, strategy); } public X509Data withX509IssuerSerialsAndX509SKISAndX509SubjectNames(java.lang.Object... values) { if (values!= null) { for (java.lang.Object value: values) { getX509IssuerSerialsAndX509SKISAndX509SubjectNames().add(value); } } return this; } public X509Data withX509IssuerSerialsAndX509SKISAndX509SubjectNames(Collection values) { if (values!= null) { getX509IssuerSerialsAndX509SKISAndX509SubjectNames().addAll(values); } return this; } public X509Data withX509IssuerSerialsAndX509SKISAndX509SubjectNames(List value) { setX509IssuerSerialsAndX509SKISAndX509SubjectNames(value); return this; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy