Open Source Repository

Home /cxf/cxf-api-2.4.6 | Repository Home



org/apache/cxf/configuration/security/DNConstraintsType.java
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-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: 2012.01.19 at 02:13:18 PM EST 
//


package org.apache.cxf.configuration.security;

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.XmlElement;
import javax.xml.bind.annotation.XmlType;


/**
 
 *         This structure holds a list of regular expressions that corresponds to a sequence of
 *         Certificate Constraints. The optional combinator attribute refers to whether ALL or
 *         ANY of these regular expressions must be satisfied.
 *         
 
 <p>Java class for DNConstraintsType complex type.
 
 <p>The following schema fragment specifies the expected content contained within this class.
 
 <pre>
 * &lt;complexType name="DNConstraintsType">
 *   &lt;complexContent>
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       &lt;sequence>
 *         &lt;choice>
 *           &lt;element name="RegularExpression" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
 *         &lt;/choice>
 *       &lt;/sequence>
 *       &lt;attribute name="combinator" type="{http://cxf.apache.org/configuration/security}CombinatorType" default="ALL" />
 *     &lt;/restriction>
 *   &lt;/complexContent>
 * &lt;/complexType>
 </pre>
 
 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "DNConstraintsType", propOrder = {
    "regularExpression"
})
public class DNConstraintsType {

    @XmlElement(name = "RegularExpression")
    protected List<String> regularExpression;
    @XmlAttribute(name = "combinator")
    protected CombinatorType combinator;

    /**
     * Gets the value of the regularExpression 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 regularExpression property.
     
     <p>
     * For example, to add a new item, do as follows:
     <pre>
     *    getRegularExpression().add(newItem);
     </pre>
     
     
     <p>
     * Objects of the following type(s) are allowed in the list
     {@link String }
     
     
     */
    public List<String> getRegularExpression() {
        if (regularExpression == null) {
            regularExpression = new ArrayList<String>();
        }
        return this.regularExpression;
    }

    public boolean isSetRegularExpression() {
        return ((this.regularExpression!= null)&&(!this.regularExpression.isEmpty()));
    }

    public void unsetRegularExpression() {
        this.regularExpression = null;
    }

    /**
     * Sets the value of the combinator property.
     
     @param value
     *     allowed object is
     *     {@link CombinatorType }
     *     
     */
    public void setCombinator(CombinatorType value) {
        this.combinator = value;
    }

    public boolean isSetCombinator() {
        return (this.combinator!= null);
    }

    /**
     * Gets the value of the combinator property.
     
     */
    public CombinatorType getCombinator() {
        if (null == combinator) {
            return CombinatorType.fromValue("ALL");
        }
        return combinator;
    }

}