org.plasma.xml.xslt.ProcessingInstruction Maven / Gradle / Ivy
Show all versions of plasma-metamodel Show documentation
/**
* 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.io.Serializable;
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.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">
* <choice maxOccurs="unbounded" minOccurs="0">
* <element ref="{http://www.w3.org/1999/XSL/Transform}char-instruction"/>
* <element ref="{http://www.w3.org/1999/XSL/Transform}top-level-element-and-char-instruction"/>
* </choice>
* <attGroup ref="{http://www.w3.org/1999/XSL/Transform}name-avt"/>
* <attribute ref="{http://www.w3.org/XML/1998/namespace}space"/>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"content"
})
public class ProcessingInstruction {
@XmlElementRefs({
@XmlElementRef(name = "char-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)
})
@XmlMixed
protected List content;
@XmlAttribute(namespace = "http://www.w3.org/XML/1998/namespace")
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
protected String space;
@XmlAttribute(required = true)
protected String name;
@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 ForEach }{@code >}
* {@link JAXBElement }{@code <}{@link Variable }{@code >}
* {@link JAXBElement }{@code <}{@link CopyOf }{@code >}
* {@link JAXBElement }{@code <}{@link Number }{@code >}
* {@link JAXBElement }{@code <}{@link CallTemplate }{@code >}
* {@link JAXBElement }{@code <}{@link ApplyTemplates }{@code >}
* {@link JAXBElement }{@code <}{@link Choose }{@code >}
* {@link JAXBElement }{@code <}{@link Copy }{@code >}
* {@link JAXBElement }{@code <}{@link Fallback }{@code >}
* {@link String }
* {@link JAXBElement }{@code <}{@link Message }{@code >}
* {@link JAXBElement }{@code <}{@link Text }{@code >}
* {@link JAXBElement }{@code <}{@link AnyType }{@code >}
* {@link JAXBElement }{@code <}{@link AnyType }{@code >}
* {@link JAXBElement }{@code <}{@link AnyType }{@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 name property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getName() {
return name;
}
/**
* Sets the value of the name property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setName(String value) {
this.name = 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;
}
}