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

org.plasma.xml.xslt.Message Maven / Gradle / Ivy

There is a newer version: 2.2.1
Show newest version
/**
 *         PlasmaSDO™ License
 * 
 * This is a community release of PlasmaSDO™, a dual-license 
 * Service Data Object (SDO) 2.1 implementation. 
 * This particular copy of the software is released under the 
 * version 2 of the GNU General Public License. PlasmaSDO™ was developed by 
 * TerraMeta Software, Inc.
 * 
 * Copyright (c) 2013, TerraMeta Software, Inc. All rights reserved.
 * 
 * General License information can be found below.
 * 
 * This distribution may include materials developed by third
 * parties. For license and attribution notices for these
 * materials, please refer to the documentation that accompanies
 * this distribution (see the "Licenses for Third-Party Components"
 * appendix) or view the online documentation at 
 * .
 *  
 */
package org.plasma.xml.xslt;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAnyAttribute;
import javax.xml.bind.annotation.XmlAnyElement;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlElementRefs;
import javax.xml.bind.annotation.XmlMixed;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import javax.xml.namespace.QName;


/**
 * 

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/1999/XSL/Transform}anyType">
 *       <group ref="{http://www.w3.org/1999/XSL/Transform}template" maxOccurs="unbounded" minOccurs="0"/>
 *       <attribute ref="{http://www.w3.org/XML/1998/namespace}space"/>
 *       <attribute name="terminate" type="{http://www.w3.org/1999/XSL/Transform}YesOrNo" default="no" />
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "content" }) public class Message { @XmlElementRefs({ @XmlElementRef(name = "instruction", namespace = "http://www.w3.org/1999/XSL/Transform", type = JAXBElement.class), @XmlElementRef(name = "top-level-element-and-char-instruction", namespace = "http://www.w3.org/1999/XSL/Transform", type = JAXBElement.class), @XmlElementRef(name = "result-element", namespace = "http://www.w3.org/1999/XSL/Transform", type = JAXBElement.class) }) @XmlMixed @XmlAnyElement protected List content; @XmlAttribute(namespace = "http://www.w3.org/XML/1998/namespace") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) protected String space; @XmlAttribute protected YesOrNo terminate; @XmlAnyAttribute private Map otherAttributes = new HashMap(); /** * Gets the value of the content 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 content property. * *

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

     *    getContent().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link JAXBElement }{@code <}{@link If }{@code >} * {@link JAXBElement }{@code <}{@link ValueOf }{@code >} * {@link JAXBElement }{@code <}{@link AttributeType }{@code >} * {@link JAXBElement }{@code <}{@link ForEach }{@code >} * {@link JAXBElement }{@code <}{@link CopyOf }{@code >} * {@link JAXBElement }{@code <}{@link Variable }{@code >} * {@link JAXBElement }{@code <}{@link CallTemplate }{@code >} * {@link JAXBElement }{@code <}{@link Number }{@code >} * {@link JAXBElement }{@code <}{@link ApplyTemplates }{@code >} * {@link JAXBElement }{@code <}{@link Fallback }{@code >} * {@link JAXBElement }{@code <}{@link Choose }{@code >} * {@link JAXBElement }{@code <}{@link Copy }{@code >} * {@link String } * {@link org.w3c.dom.Element } * {@link JAXBElement }{@code <}{@link ProcessingInstruction }{@code >} * {@link JAXBElement }{@code <}{@link Message }{@code >} * {@link JAXBElement }{@code <}{@link Text }{@code >} * {@link JAXBElement }{@code <}{@link org.plasma.xml.xslt.Element }{@code >} * {@link JAXBElement }{@code <}{@link AnyType }{@code >} * {@link JAXBElement }{@code <}{@link AnyType }{@code >} * {@link JAXBElement }{@code <}{@link Comment }{@code >} * {@link JAXBElement }{@code <}{@link AnyType }{@code >} * {@link JAXBElement }{@code <}{@link AnyType }{@code >} * {@link JAXBElement }{@code <}{@link Object }{@code >} * * */ public List getContent() { if (content == null) { content = new ArrayList(); } return this.content; } /** * Gets the value of the space property. * * @return * possible object is * {@link String } * */ public String getSpace() { return space; } /** * Sets the value of the space property. * * @param value * allowed object is * {@link String } * */ public void setSpace(String value) { this.space = value; } /** * Gets the value of the terminate property. * * @return * possible object is * {@link YesOrNo } * */ public YesOrNo getTerminate() { if (terminate == null) { return YesOrNo.NO; } else { return terminate; } } /** * Sets the value of the terminate property. * * @param value * allowed object is * {@link YesOrNo } * */ public void setTerminate(YesOrNo value) { this.terminate = value; } /** * Gets a map that contains attributes that aren't bound to any typed property on this class. * *

* the map is keyed by the name of the attribute and * the value is the string value of the attribute. * * the map returned by this method is live, and you can add new attribute * by updating the map directly. Because of this design, there's no setter. * * * @return * always non-null */ public Map getOtherAttributes() { return otherAttributes; } }