/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.openejb.jee; 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.XmlElements; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; /** * <p>Classe Java pour anonymous complex type. * * <p>Le fragment de schéma suivant indique le contenu attendu figurant dans cette classe. * * <pre> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence maxOccurs="unbounded" minOccurs="0"> * <element name="exclude"> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <choice maxOccurs="unbounded" minOccurs="0"> * <element name="if-class-available"> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> * </restriction> * </complexContent> * </complexType> * </element> * <element name="if-class-not-available"> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> * </restriction> * </complexContent> * </complexType> * </element> * <element name="if-system-property"> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> * <attribute name="value" type="{http://www.w3.org/2001/XMLSchema}string" /> * </restriction> * </complexContent> * </complexType> * </element> * </choice> * <attribute name="name" use="required"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> * <pattern value="([a-zA-Z_$][a-zA-Z\d_$]*\.)*([a-zA-Z_$][a-zA-Z\d_$]*|\*|\*\*)"/> * </restriction> * </simpleType> * </attribute> * </restriction> * </complexContent> * </complexType> * </element> * </sequence> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "exclude" }) @XmlRootElement(name = "scan") public class Scan { protected List<Scan.Exclude> exclude; /** * Gets the value of the exclude 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 exclude property. * * <p> * For example, to add a new item, do as follows: * <pre> * getExclude().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link Scan.Exclude } * * */ public List<Scan.Exclude> getExclude() { if (exclude == null) { exclude = new ArrayList<Scan.Exclude>(); } return this.exclude; } /** * <p>Classe Java pour anonymous complex type. * * <p>Le fragment de schéma suivant indique le contenu attendu figurant dans cette classe. * * <pre> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <choice maxOccurs="unbounded" minOccurs="0"> * <element name="if-class-available"> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> * </restriction> * </complexContent> * </complexType> * </element> * <element name="if-class-not-available"> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> * </restriction> * </complexContent> * </complexType> * </element> * <element name="if-system-property"> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> * <attribute name="value" type="{http://www.w3.org/2001/XMLSchema}string" /> * </restriction> * </complexContent> * </complexType> * </element> * </choice> * <attribute name="name" use="required"> * <simpleType> * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> * <pattern value="([a-zA-Z_$][a-zA-Z\d_$]*\.)*([a-zA-Z_$][a-zA-Z\d_$]*|\*|\*\*)"/> * </restriction> * </simpleType> * </attribute> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "ifClassAvailableOrIfClassNotAvailableOrIfSystemProperty" }) public static class Exclude { @XmlElements({ @XmlElement(name = "if-class-available", type = Scan.Exclude.IfClassAvailable.class), @XmlElement(name = "if-class-not-available", type = Scan.Exclude.IfClassNotAvailable.class), @XmlElement(name = "if-system-property", type = Scan.Exclude.IfSystemProperty.class) }) protected List<Object> ifClassAvailableOrIfClassNotAvailableOrIfSystemProperty; @XmlAttribute(name = "name", required = true) protected String name; /** * Gets the value of the ifClassAvailableOrIfClassNotAvailableOrIfSystemProperty 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 ifClassAvailableOrIfClassNotAvailableOrIfSystemProperty property. * * <p> * For example, to add a new item, do as follows: * <pre> * getIfClassAvailableOrIfClassNotAvailableOrIfSystemProperty().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link Scan.Exclude.IfClassAvailable } * {@link Scan.Exclude.IfClassNotAvailable } * {@link Scan.Exclude.IfSystemProperty } * * */ public List<Object> getIfClassAvailableOrIfClassNotAvailableOrIfSystemProperty() { if (ifClassAvailableOrIfClassNotAvailableOrIfSystemProperty == null) { ifClassAvailableOrIfClassNotAvailableOrIfSystemProperty = new ArrayList<Object>(); } return this.ifClassAvailableOrIfClassNotAvailableOrIfSystemProperty; } /** * Obtient la valeur de la propriété name. * * @return * possible object is * {@link String } * */ public String getName() { return name; } /** * Définit la valeur de la propriété name. * * @param value * allowed object is * {@link String } * */ public void setName(String value) { this.name = value; } /** * <p>Classe Java pour anonymous complex type. * * <p>Le fragment de schéma suivant indique le contenu attendu figurant dans cette classe. * * <pre> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "") public static class IfClassAvailable { @XmlAttribute(name = "name", required = true) protected String name; /** * Obtient la valeur de la propriété name. * * @return * possible object is * {@link String } * */ public String getName() { return name; } /** * Définit la valeur de la propriété name. * * @param value * allowed object is * {@link String } * */ public void setName(String value) { this.name = value; } } /** * <p>Classe Java pour anonymous complex type. * * <p>Le fragment de schéma suivant indique le contenu attendu figurant dans cette classe. * * <pre> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "") public static class IfClassNotAvailable { @XmlAttribute(name = "name", required = true) protected String name; /** * Obtient la valeur de la propriété name. * * @return * possible object is * {@link String } * */ public String getName() { return name; } /** * Définit la valeur de la propriété name. * * @param value * allowed object is * {@link String } * */ public void setName(String value) { this.name = value; } } /** * <p>Classe Java pour anonymous complex type. * * <p>Le fragment de schéma suivant indique le contenu attendu figurant dans cette classe. * * <pre> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> * <attribute name="value" type="{http://www.w3.org/2001/XMLSchema}string" /> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "") public static class IfSystemProperty { @XmlAttribute(name = "name", required = true) protected String name; @XmlAttribute(name = "value") protected String value; /** * Obtient la valeur de la propriété name. * * @return * possible object is * {@link String } * */ public String getName() { return name; } /** * Définit la valeur de la propriété name. * * @param value * allowed object is * {@link String } * */ public void setName(String value) { this.name = value; } /** * Obtient la valeur de la propriété value. * * @return * possible object is * {@link String } * */ public String getValue() { return value; } /** * Définit la valeur de la propriété value. * * @param value * allowed object is * {@link String } * */ public void setValue(String value) { this.value = value; } } } }