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

org.apache.aries.blueprint.jaxb.Tservice Maven / Gradle / Ivy

Go to download

This bundle contains the core implementation of Blueprint along with the "ext" namespace handler.

The newest version!
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.3 in JDK 1.6 
// See http://java.sun.com/xml/jaxb 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2010.04.23 at 12:57:08 PM EDT 
//


package org.apache.aries.blueprint.jaxb;

import java.util.List;
import java.util.Vector;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAnyElement;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
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;


/**
 * 
 *                 
 *                 Tservice is the type for services exported by this blueprint bundle.
 *                 Services are sourced by either a  to a  component or an
 *                  bean component.
 *                 
 * 			
 * 
 * 

Java class for Tservice complex type. * *

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

 * <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" />
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Tservice", namespace = "http://www.osgi.org/xmlns/blueprint/v1.0.0", propOrder = { "description", "interfaces", "serviceProperties", "registrationListener", "bean", "reference", "ref", "any" }) @XmlSeeAlso({ TinlinedService.class }) @XmlRootElement(name = "service") public class Tservice extends Tcomponent { protected Tdescription description; protected Tinterfaces interfaces; @XmlElement(name = "service-properties") protected TserviceProperties serviceProperties; @XmlElement(name = "registration-listener") protected List registrationListener = new Vector(); protected TinlinedBean bean; protected TinlinedReference reference; protected Tref ref; @XmlAnyElement(lax = true) protected Object any; @XmlAttribute(name = "interface") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) protected String _interface; @XmlAttribute(name = "ref") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) protected String refAttribute; @XmlAttribute(name = "auto-export") @XmlJavaTypeAdapter(CollapsedStringAdapter.class) protected String autoExport; @XmlAttribute protected Integer ranking; /** * 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() { if (serviceProperties == null) { serviceProperties = new TserviceProperties(); } 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. * *

* 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 registrationListener property. * *

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

     *    getRegistrationListener().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link TregistrationListener } * * */ public List getRegistrationListener() { if (registrationListener == null) { registrationListener = new Vector(); } 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 ref property. * * @return * possible object is * {@link Tref } * */ public Tref getRef() { return ref; } /** * Sets the value of the ref property. * * @param value * allowed object is * {@link Tref } * */ public void setRef(Tref value) { this.ref = value; } /** * Gets the value of the any property. * * @return * possible object is * {@link Object } * */ public Object getAny() { return any; } /** * Sets the value of the any property. * * @param value * allowed object is * {@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 refAttribute property. * * @return * possible object is * {@link String } * */ public String getRefAttribute() { return refAttribute; } /** * Sets the value of the refAttribute property. * * @param value * allowed object is * {@link String } * */ public void setRefAttribute(String value) { this.refAttribute = value; } /** * Gets the value of the autoExport property. * * @return * possible object is * {@link String } * */ public String getAutoExport() { if (autoExport == null) { return "disabled"; } else { return autoExport; } } /** * Sets the value of the autoExport property. * * @param value * allowed object is * {@link String } * */ public void setAutoExport(String 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; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy