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

org.plasma.xml.schema.Schema Maven / Gradle / Ivy

The newest version!
/**
 * Copyright 2017 TerraMeta Software, Inc.
 * 
 * Licensed 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.plasma.xml.schema;

import java.util.ArrayList;
import java.util.List;

import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlAttribute;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlElements;
import jakarta.xml.bind.annotation.XmlID;
import jakarta.xml.bind.annotation.XmlRootElement;
import jakarta.xml.bind.annotation.XmlSchemaType;
import jakarta.xml.bind.annotation.XmlType;
import jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter;
import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

/**
 * 

* Java class for anonymous complex type. * *

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

 * <complexType>
 *   <complexContent>
 *     <extension base="{http://www.w3.org/2001/XMLSchema}openAttrs">
 *       <sequence>
 *         <choice maxOccurs="unbounded" minOccurs="0">
 *           <element ref="{http://www.w3.org/2001/XMLSchema}include"/>
 *           <element ref="{http://www.w3.org/2001/XMLSchema}import"/>
 *           <element ref="{http://www.w3.org/2001/XMLSchema}redefine"/>
 *           <element ref="{http://www.w3.org/2001/XMLSchema}annotation"/>
 *         </choice>
 *         <sequence maxOccurs="unbounded" minOccurs="0">
 *           <group ref="{http://www.w3.org/2001/XMLSchema}schemaTop"/>
 *         </sequence>
 *       </sequence>
 *       <attribute name="targetNamespace" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
 *       <attribute name="version" type="{http://www.w3.org/2001/XMLSchema}token" />
 *       <attribute name="finalDefault" type="{http://www.w3.org/2001/XMLSchema}fullDerivationSet" default="" />
 *       <attribute name="blockDefault" type="{http://www.w3.org/2001/XMLSchema}blockSet" default="" />
 *       <attribute name="attributeFormDefault" type="{http://www.w3.org/2001/XMLSchema}formChoice" default="unqualified" />
 *       <attribute name="elementFormDefault" type="{http://www.w3.org/2001/XMLSchema}formChoice" default="unqualified" />
 *       <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "includesAndImportsAndRedefines", "simpleTypesAndComplexTypesAndGroups" }) @XmlRootElement(name = "schema") public class Schema extends OpenAttrs { @XmlElements({ @XmlElement(name = "import", type = Import.class), @XmlElement(name = "redefine", type = Redefine.class), @XmlElement(name = "include", type = Include.class), @XmlElement(name = "annotation", type = Annotation.class) }) protected List includesAndImportsAndRedefines; @XmlElements({ @XmlElement(name = "complexType", type = ComplexType.class), @XmlElement(name = "group", type = Group.class), @XmlElement(name = "attributeGroup", type = AttributeGroup.class), @XmlElement(name = "notation", type = Notation.class), @XmlElement(name = "attribute", type = TopLevelAttributeType.class), @XmlElement(name = "element", type = Element.class), @XmlElement(name = "simpleType", type = SimpleType.class) }) protected List simpleTypesAndComplexTypesAndGroups; @XmlAttribute @XmlSchemaType(name = "anyURI") protected String targetNamespace; @XmlAttribute @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlSchemaType(name = "token") protected String version; @XmlAttribute(name = "finalDefault") @XmlSchemaType(name = "fullDerivationSet") protected List finalDefaults; @XmlAttribute(name = "blockDefault") @XmlSchemaType(name = "blockSet") protected List blockDefaults; @XmlAttribute protected FormChoice attributeFormDefault; @XmlAttribute protected FormChoice elementFormDefault; @XmlAttribute @XmlJavaTypeAdapter(CollapsedStringAdapter.class) @XmlID @XmlSchemaType(name = "ID") protected String id; /** * Gets the value of the includesAndImportsAndRedefines 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 includesAndImportsAndRedefines property. * *

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

   * getIncludesAndImportsAndRedefines().add(newItem);
   * 
* * *

* Objects of the following type(s) are allowed in the list {@link Import } * {@link Redefine } {@link Include } {@link Annotation } * * */ public List getIncludesAndImportsAndRedefines() { if (includesAndImportsAndRedefines == null) { includesAndImportsAndRedefines = new ArrayList(); } return this.includesAndImportsAndRedefines; } /** * Gets the value of the simpleTypesAndComplexTypesAndGroups 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 simpleTypesAndComplexTypesAndGroups property. * *

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

   * getSimpleTypesAndComplexTypesAndGroups().add(newItem);
   * 
* * *

* Objects of the following type(s) are allowed in the list * {@link ComplexType } {@link Group } {@link AttributeGroup } {@link Notation } * {@link TopLevelAttributeType } {@link Element } {@link SimpleType } * * */ public List getSimpleTypesAndComplexTypesAndGroups() { if (simpleTypesAndComplexTypesAndGroups == null) { simpleTypesAndComplexTypesAndGroups = new ArrayList(); } return this.simpleTypesAndComplexTypesAndGroups; } /** * Gets the value of the targetNamespace property. * * @return possible object is {@link String } * */ public String getTargetNamespace() { return targetNamespace; } /** * Sets the value of the targetNamespace property. * * @param value * allowed object is {@link String } * */ public void setTargetNamespace(String value) { this.targetNamespace = value; } /** * Gets the value of the version property. * * @return possible object is {@link String } * */ public String getVersion() { return version; } /** * Sets the value of the version property. * * @param value * allowed object is {@link String } * */ public void setVersion(String value) { this.version = value; } /** * Gets the value of the finalDefaults 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 finalDefaults property. * *

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

   * getFinalDefaults().add(newItem);
   * 
* * *

* Objects of the following type(s) are allowed in the list {@link String } * * */ public List getFinalDefaults() { if (finalDefaults == null) { finalDefaults = new ArrayList(); } return this.finalDefaults; } /** * Gets the value of the blockDefaults 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 blockDefaults property. * *

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

   * getBlockDefaults().add(newItem);
   * 
* * *

* Objects of the following type(s) are allowed in the list {@link String } * * */ public List getBlockDefaults() { if (blockDefaults == null) { blockDefaults = new ArrayList(); } return this.blockDefaults; } /** * Gets the value of the attributeFormDefault property. * * @return possible object is {@link FormChoice } * */ public FormChoice getAttributeFormDefault() { if (attributeFormDefault == null) { return FormChoice.UNQUALIFIED; } else { return attributeFormDefault; } } /** * Sets the value of the attributeFormDefault property. * * @param value * allowed object is {@link FormChoice } * */ public void setAttributeFormDefault(FormChoice value) { this.attributeFormDefault = value; } /** * Gets the value of the elementFormDefault property. * * @return possible object is {@link FormChoice } * */ public FormChoice getElementFormDefault() { if (elementFormDefault == null) { return FormChoice.UNQUALIFIED; } else { return elementFormDefault; } } /** * Sets the value of the elementFormDefault property. * * @param value * allowed object is {@link FormChoice } * */ public void setElementFormDefault(FormChoice value) { this.elementFormDefault = value; } /** * Gets the value of the id property. * * @return possible object is {@link String } * */ public String getId() { return id; } /** * Sets the value of the id property. * * @param value * allowed object is {@link String } * */ public void setId(String value) { this.id = value; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy