//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-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: 2015.11.05 at 05:47:27 PM CET
//
package org.springframework.ide.eclipse.osgi.blueprint.internal.jaxb;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
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.XmlElement;
import javax.xml.bind.annotation.XmlSeeAlso;
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;
import org.w3c.dom.Element;
/**
*
*
* Tservice is the type for services exported by this blueprint bundle. Services
* are sourced by either a <ref> to a <bean> component or an <inline> bean
* component.
*
*
*
* <p>
* Java class for Tservice complex type.
*
* <p>
* The following schema fragment specifies the expected content contained within
* this class.
*
* <pre>
* <complexType name="Tservice">
* <complexContent>
* <extension base="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tcomponent">
* <sequence>
* <group ref="{http://www.osgi.org/xmlns/blueprint/v1.0.0}GserviceElements"/>
* </sequence>
* <attribute name="interface" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tclass" />
* <attribute name="ref" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}Tidref" />
* <attribute name="auto-export" type="{http://www.osgi.org/xmlns/blueprint/v1.0.0}TautoExportModes" default="disabled" />
* <attribute name="ranking" type="{http://www.w3.org/2001/XMLSchema}int" default="0" />
* <anyAttribute processContents='lax' namespace='##other'/>
* </extension>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Tservice", propOrder = { "description", "interfaces", "serviceProperties", "registrationListener",
"bean", "reference", "targetRef", "any" })
@XmlSeeAlso({ TinlinedService.class })
public class Tservice extends Tcomponent {
protected Tdescription description;
protected Tinterfaces interfaces;
@XmlElement(name = "service-properties")
protected TserviceProperties serviceProperties;
@XmlElement(name = "registration-listener")
protected List<TregistrationListener> registrationListener;
protected TinlinedBean bean;
protected TinlinedReference reference;
@XmlElement(name = "ref")
protected Tref targetRef;
@XmlAnyElement(lax = true)
protected Object any;
@XmlAttribute(name = "interface")
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
protected String _interface;
@XmlAttribute(name = "ref")
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
protected String ref;
@XmlAttribute(name = "auto-export")
protected TautoExportModes autoExport;
@XmlAttribute(name = "ranking")
protected Integer ranking;
@XmlAnyAttribute
private Map<QName, String> otherAttributes = new HashMap<QName, String>();
/**
* Gets the value of the description property.
*
* @return possible object is {@link Tdescription }
*
*/
public Tdescription getDescription() {
return description;
}
/**
* Sets the value of the description property.
*
* @param value
* allowed object is {@link Tdescription }
*
*/
public void setDescription(Tdescription value) {
this.description = value;
}
/**
* Gets the value of the interfaces property.
*
* @return possible object is {@link Tinterfaces }
*
*/
public Tinterfaces getInterfaces() {
return interfaces;
}
/**
* Sets the value of the interfaces property.
*
* @param value
* allowed object is {@link Tinterfaces }
*
*/
public void setInterfaces(Tinterfaces value) {
this.interfaces = value;
}
/**
* Gets the value of the serviceProperties property.
*
* @return possible object is {@link TserviceProperties }
*
*/
public TserviceProperties getServiceProperties() {
return serviceProperties;
}
/**
* Sets the value of the serviceProperties property.
*
* @param value
* allowed object is {@link TserviceProperties }
*
*/
public void setServiceProperties(TserviceProperties value) {
this.serviceProperties = value;
}
/**
* Gets the value of the registrationListener 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 registrationListener property.
*
* <p>
* For example, to add a new item, do as follows:
*
* <pre>
* getRegistrationListener().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link TregistrationListener }
*
*
*/
public List<TregistrationListener> getRegistrationListener() {
if (registrationListener == null) {
registrationListener = new ArrayList<TregistrationListener>();
}
return this.registrationListener;
}
/**
* Gets the value of the bean property.
*
* @return possible object is {@link TinlinedBean }
*
*/
public TinlinedBean getBean() {
return bean;
}
/**
* Sets the value of the bean property.
*
* @param value
* allowed object is {@link TinlinedBean }
*
*/
public void setBean(TinlinedBean value) {
this.bean = value;
}
/**
* Gets the value of the reference property.
*
* @return possible object is {@link TinlinedReference }
*
*/
public TinlinedReference getReference() {
return reference;
}
/**
* Sets the value of the reference property.
*
* @param value
* allowed object is {@link TinlinedReference }
*
*/
public void setReference(TinlinedReference value) {
this.reference = value;
}
/**
* Gets the value of the targetRef property.
*
* @return possible object is {@link Tref }
*
*/
public Tref getTargetRef() {
return targetRef;
}
/**
* Sets the value of the targetRef property.
*
* @param value
* allowed object is {@link Tref }
*
*/
public void setTargetRef(Tref value) {
this.targetRef = value;
}
/**
* Gets the value of the any property.
*
* @return possible object is {@link Element } {@link Object }
*
*/
public Object getAny() {
return any;
}
/**
* Sets the value of the any property.
*
* @param value
* allowed object is {@link Element } {@link Object }
*
*/
public void setAny(Object value) {
this.any = value;
}
/**
* Gets the value of the interface property.
*
* @return possible object is {@link String }
*
*/
public String getInterface() {
return _interface;
}
/**
* Sets the value of the interface property.
*
* @param value
* allowed object is {@link String }
*
*/
public void setInterface(String value) {
this._interface = value;
}
/**
* Gets the value of the ref property.
*
* @return possible object is {@link String }
*
*/
public String getRef() {
return ref;
}
/**
* Sets the value of the ref property.
*
* @param value
* allowed object is {@link String }
*
*/
public void setRef(String value) {
this.ref = value;
}
/**
* Gets the value of the autoExport property.
*
* @return possible object is {@link TautoExportModes }
*
*/
public TautoExportModes getAutoExport() {
if (autoExport == null) {
return TautoExportModes.DISABLED;
} else {
return autoExport;
}
}
/**
* Sets the value of the autoExport property.
*
* @param value
* allowed object is {@link TautoExportModes }
*
*/
public void setAutoExport(TautoExportModes value) {
this.autoExport = value;
}
/**
* Gets the value of the ranking property.
*
* @return possible object is {@link Integer }
*
*/
public int getRanking() {
if (ranking == null) {
return 0;
} else {
return ranking;
}
}
/**
* Sets the value of the ranking property.
*
* @param value
* allowed object is {@link Integer }
*
*/
public void setRanking(Integer value) {
this.ranking = value;
}
/**
* Gets a map that contains attributes that aren't bound to any typed
* property on this class.
*
* <p>
* 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<QName, String> getOtherAttributes() {
return otherAttributes;
}
}