You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by do...@apache.org on 2007/05/01 01:15:18 UTC
svn commit: r533875 [25/30] - in
/incubator/felix/sandbox/donsez/upnp.devicegen: ./ doc/ generation/
generation/res/ generation/res/device/ generation/res/service/ manifest/
src/ src/main/ src/main/java/ src/main/java/org/ src/main/java/org/apache/
src...
Added: incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/ogd/impl/BundleAdminModelImpl.java
URL: http://svn.apache.org/viewvc/incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/ogd/impl/BundleAdminModelImpl.java?view=auto&rev=533875
==============================================================================
--- incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/ogd/impl/BundleAdminModelImpl.java (added)
+++ incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/ogd/impl/BundleAdminModelImpl.java Mon Apr 30 16:15:05 2007
@@ -0,0 +1,291 @@
+
+/*
+__BANNER__
+*/
+// this file was generated at 1-May-2007 12:59 AM by ${author}
+package org.apache.felix.upnp.devicegen.ogd.impl;
+
+import org.apache.felix.upnp.devicegen.holder.*;
+import org.apache.felix.upnp.devicegen.ogd.model.*;
+
+
+public class BundleAdminModelImpl implements BundleAdminModel {
+
+ /**
+ * This method is "add description here"
+ * currentBundleList out parameter
+
+
+ */
+ public void listBundles(
+ StringHolder currentBundleList
+ ) {
+ // TODO
+
+ }
+
+
+ /**
+ * This method is "add description here"
+ * currentServiceList out parameter
+
+
+ */
+ public void listServices(
+ StringHolder currentServiceList
+ ) {
+ // TODO
+
+ }
+
+
+ /**
+ * This method is "add description here"
+ * bundleID in parameter
+
+ * bundleLocation out parameter
+
+ * bundleState out parameter
+
+ * startLevel out parameter
+
+ * headerNames out parameter
+
+
+ */
+ public void getBundleInfo(
+ long bundleID,
+
+StringHolder bundleLocation,
+
+StringHolder bundleState,
+
+IntegerHolder startLevel,
+
+StringHolder headerNames
+ ) {
+ // TODO
+
+ }
+
+
+ /**
+ * This method is "add description here"
+ * bundleID in parameter
+
+ * headerName in parameter
+
+ * headerValue out parameter
+
+
+ */
+ public void getBundleHeader(
+ long bundleID,
+
+java.lang.String headerName,
+
+StringHolder headerValue
+ ) {
+ // TODO
+
+ }
+
+
+ /**
+ * This method is "add description here"
+ * bundleLocation in parameter
+
+ * bundleID out parameter
+
+
+ */
+ public void installBundle(
+ java.lang.String bundleLocation,
+
+LongHolder bundleID
+ ) {
+ // TODO
+
+ }
+
+
+ /**
+ * This method is "add description here"
+ * bundleID in parameter
+
+
+ */
+ public void startBundle(
+ long bundleID
+ ) {
+ // TODO
+
+ }
+
+
+ /**
+ * This method is "add description here"
+ * bundleID in parameter
+
+
+ */
+ public void stopBundle(
+ long bundleID
+ ) {
+ // TODO
+
+ }
+
+
+ /**
+ * This method is "add description here"
+ * bundleID in parameter
+
+
+ */
+ public void updateBundle(
+ long bundleID
+ ) {
+ // TODO
+
+ }
+
+
+ /**
+ * This method is "add description here"
+ * bundleID in parameter
+
+ * bundleLocation in parameter
+
+
+ */
+ public void updateBundleWithLocation(
+ long bundleID,
+
+java.lang.String bundleLocation
+ ) {
+ // TODO
+
+ }
+
+
+ /**
+ * This method is "add description here"
+ * bundleID in parameter
+
+
+ */
+ public void uninstallBundle(
+ long bundleID
+ ) {
+ // TODO
+
+ }
+
+
+ /**
+ * This method is "add description here"
+ * serviceID in parameter
+
+ * bundleID out parameter
+
+ * propertyKeys out parameter
+
+ * usindBundles out parameter
+
+
+ */
+ public void getServiceInfo(
+ long serviceID,
+
+LongHolder bundleID,
+
+StringHolder propertyKeys,
+
+StringHolder usindBundles
+ ) {
+ // TODO
+
+ }
+
+
+ /**
+ * This method is "add description here"
+ * serviceID in parameter
+
+ * propertyKey in parameter
+
+ * propertyValue out parameter
+
+ * propertyClassName out parameter
+
+
+ */
+ public void getServiceProperty(
+ long serviceID,
+
+java.lang.String propertyKey,
+
+StringHolder propertyValue,
+
+StringHolder propertyClassName
+ ) {
+ // TODO
+
+ }
+
+
+
+ // Those getters are used for the first notification just after a subscription
+
+ public java.lang.String getBundleListStateVariableValue(){
+ // TODO
+ return null;
+ }
+
+ public java.lang.String getServiceListStateVariableValue(){
+ // TODO
+ return null;
+ }
+
+ public java.lang.Long getBundleEventInstalledStateVariableValue(){
+ // TODO
+ return null;
+ }
+
+ public java.lang.Long getBundleEventStartedStateVariableValue(){
+ // TODO
+ return null;
+ }
+
+ public java.lang.Long getBundleEventStoppedStateVariableValue(){
+ // TODO
+ return null;
+ }
+
+ public java.lang.Long getBundleEventUpdatedStateVariableValue(){
+ // TODO
+ return null;
+ }
+
+ public java.lang.Long getBundleEventUninstalledStateVariableValue(){
+ // TODO
+ return null;
+ }
+
+ public java.lang.Long getServiceEventRegisteredStateVariableValue(){
+ // TODO
+ return null;
+ }
+
+ public java.lang.Long getServiceEventUnregisteringStateVariableValue(){
+ // TODO
+ return null;
+ }
+
+ public java.lang.Long getServiceEventModifiedStateVariableValue(){
+ // TODO
+ return null;
+ }
+
+}
Propchange: incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/ogd/impl/BundleAdminModelImpl.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/ogd/model/BundleAdminModel.java
URL: http://svn.apache.org/viewvc/incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/ogd/model/BundleAdminModel.java?view=auto&rev=533875
==============================================================================
--- incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/ogd/model/BundleAdminModel.java (added)
+++ incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/ogd/model/BundleAdminModel.java Mon Apr 30 16:15:05 2007
@@ -0,0 +1,236 @@
+
+/*
+__BANNER__
+*/
+// this file was generated at 1-May-2007 12:59 AM by ${author}
+package org.apache.felix.upnp.devicegen.ogd.model;
+
+import org.apache.felix.upnp.devicegen.holder.*;
+
+
+public interface BundleAdminModel {
+
+ /**
+ * This method is "add description here"
+ * currentBundleList out parameter
+
+
+ */
+ public void listBundles(
+ StringHolder currentBundleList
+ );
+ // TODO return the type of the return argument when specified
+
+
+ /**
+ * This method is "add description here"
+ * currentServiceList out parameter
+
+
+ */
+ public void listServices(
+ StringHolder currentServiceList
+ );
+ // TODO return the type of the return argument when specified
+
+
+ /**
+ * This method is "add description here"
+ * bundleID in parameter
+
+ * bundleLocation out parameter
+
+ * bundleState out parameter
+
+ * startLevel out parameter
+
+ * headerNames out parameter
+
+
+ */
+ public void getBundleInfo(
+ long bundleID,
+
+StringHolder bundleLocation,
+
+StringHolder bundleState,
+
+IntegerHolder startLevel,
+
+StringHolder headerNames
+ );
+ // TODO return the type of the return argument when specified
+
+
+ /**
+ * This method is "add description here"
+ * bundleID in parameter
+
+ * headerName in parameter
+
+ * headerValue out parameter
+
+
+ */
+ public void getBundleHeader(
+ long bundleID,
+
+java.lang.String headerName,
+
+StringHolder headerValue
+ );
+ // TODO return the type of the return argument when specified
+
+
+ /**
+ * This method is "add description here"
+ * bundleLocation in parameter
+
+ * bundleID out parameter
+
+
+ */
+ public void installBundle(
+ java.lang.String bundleLocation,
+
+LongHolder bundleID
+ );
+ // TODO return the type of the return argument when specified
+
+
+ /**
+ * This method is "add description here"
+ * bundleID in parameter
+
+
+ */
+ public void startBundle(
+ long bundleID
+ );
+ // TODO return the type of the return argument when specified
+
+
+ /**
+ * This method is "add description here"
+ * bundleID in parameter
+
+
+ */
+ public void stopBundle(
+ long bundleID
+ );
+ // TODO return the type of the return argument when specified
+
+
+ /**
+ * This method is "add description here"
+ * bundleID in parameter
+
+
+ */
+ public void updateBundle(
+ long bundleID
+ );
+ // TODO return the type of the return argument when specified
+
+
+ /**
+ * This method is "add description here"
+ * bundleID in parameter
+
+ * bundleLocation in parameter
+
+
+ */
+ public void updateBundleWithLocation(
+ long bundleID,
+
+java.lang.String bundleLocation
+ );
+ // TODO return the type of the return argument when specified
+
+
+ /**
+ * This method is "add description here"
+ * bundleID in parameter
+
+
+ */
+ public void uninstallBundle(
+ long bundleID
+ );
+ // TODO return the type of the return argument when specified
+
+
+ /**
+ * This method is "add description here"
+ * serviceID in parameter
+
+ * bundleID out parameter
+
+ * propertyKeys out parameter
+
+ * usindBundles out parameter
+
+
+ */
+ public void getServiceInfo(
+ long serviceID,
+
+LongHolder bundleID,
+
+StringHolder propertyKeys,
+
+StringHolder usindBundles
+ );
+ // TODO return the type of the return argument when specified
+
+
+ /**
+ * This method is "add description here"
+ * serviceID in parameter
+
+ * propertyKey in parameter
+
+ * propertyValue out parameter
+
+ * propertyClassName out parameter
+
+
+ */
+ public void getServiceProperty(
+ long serviceID,
+
+java.lang.String propertyKey,
+
+StringHolder propertyValue,
+
+StringHolder propertyClassName
+ );
+ // TODO return the type of the return argument when specified
+
+
+
+ // Those getters are used for the first notification just after a subscription
+
+ public java.lang.String getBundleListStateVariableValue();
+
+ public java.lang.String getServiceListStateVariableValue();
+
+ public java.lang.Long getBundleEventInstalledStateVariableValue();
+
+ public java.lang.Long getBundleEventStartedStateVariableValue();
+
+ public java.lang.Long getBundleEventStoppedStateVariableValue();
+
+ public java.lang.Long getBundleEventUpdatedStateVariableValue();
+
+ public java.lang.Long getBundleEventUninstalledStateVariableValue();
+
+ public java.lang.Long getServiceEventRegisteredStateVariableValue();
+
+ public java.lang.Long getServiceEventUnregisteringStateVariableValue();
+
+ public java.lang.Long getServiceEventModifiedStateVariableValue();
+
+}
Propchange: incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/ogd/model/BundleAdminModel.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/ogd/service/BundleAdmin.java
URL: http://svn.apache.org/viewvc/incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/ogd/service/BundleAdmin.java?view=auto&rev=533875
==============================================================================
--- incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/ogd/service/BundleAdmin.java (added)
+++ incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/ogd/service/BundleAdmin.java Mon Apr 30 16:15:05 2007
@@ -0,0 +1,2392 @@
+
+/*
+__BANNER__
+*/
+// this file was generated at 1-May-2007 12:59 AM by ${author}
+package org.apache.felix.upnp.devicegen.ogd.service;
+
+import java.util.Dictionary;
+import java.util.HashMap;
+import java.util.Hashtable;
+import java.util.Map;
+
+import org.osgi.framework.*;
+import org.osgi.service.upnp.*;
+import org.apache.felix.upnp.devicegen.util.*;
+import org.apache.felix.upnp.devicegen.holder.*;
+
+import org.apache.felix.upnp.devicegen.ogd.model.*;
+import org.apache.felix.upnp.devicegen.ogd.impl.*;
+
+
+
+public class BundleAdmin extends AbstractUPnPService {
+
+
+ private BundleAdminModel model;
+
+ /**
+ * constructor
+ */
+ public BundleAdmin(
+ UPnPDevice upnpDevice,
+ String serviceId,
+ String serviceType,
+ String version,
+ BundleAdminModel model
+ ){
+ super(
+ upnpDevice,
+ serviceId,
+ serviceType,
+ version
+ );
+ this.model=model;
+
+
+ stateVariables=new HashMap();
+
+
+
+ stateVariables.put(
+ "BundleList",
+ new BundleListStateVariable(this,model)
+ );
+
+
+
+ stateVariables.put(
+ "ServiceList",
+ new ServiceListStateVariable(this,model)
+ );
+
+
+
+ stateVariables.put(
+ "A_ARG_TYPE_BundleID",
+ new A_ARG_TYPE_BundleIDStateVariable(this,model)
+ );
+
+
+
+ stateVariables.put(
+ "A_ARG_TYPE_ServiceID",
+ new A_ARG_TYPE_ServiceIDStateVariable(this,model)
+ );
+
+
+
+ stateVariables.put(
+ "A_ARG_TYPE_BundleLocation",
+ new A_ARG_TYPE_BundleLocationStateVariable(this,model)
+ );
+
+
+
+ stateVariables.put(
+ "A_ARG_TYPE_BundleState",
+ new A_ARG_TYPE_BundleStateStateVariable(this,model)
+ );
+
+
+
+ stateVariables.put(
+ "A_ARG_TYPE_StartLevel",
+ new A_ARG_TYPE_StartLevelStateVariable(this,model)
+ );
+
+
+
+ stateVariables.put(
+ "A_ARG_TYPE_HeaderNames",
+ new A_ARG_TYPE_HeaderNamesStateVariable(this,model)
+ );
+
+
+
+ stateVariables.put(
+ "A_ARG_TYPE_HeaderName",
+ new A_ARG_TYPE_HeaderNameStateVariable(this,model)
+ );
+
+
+
+ stateVariables.put(
+ "A_ARG_TYPE_HeaderValue",
+ new A_ARG_TYPE_HeaderValueStateVariable(this,model)
+ );
+
+
+
+ stateVariables.put(
+ "A_ARG_TYPE_PropertyKeys",
+ new A_ARG_TYPE_PropertyKeysStateVariable(this,model)
+ );
+
+
+
+ stateVariables.put(
+ "A_ARG_TYPE_PropertyKey",
+ new A_ARG_TYPE_PropertyKeyStateVariable(this,model)
+ );
+
+
+
+ stateVariables.put(
+ "A_ARG_TYPE_PropertyValue",
+ new A_ARG_TYPE_PropertyValueStateVariable(this,model)
+ );
+
+
+
+ stateVariables.put(
+ "A_ARG_TYPE_PropertyClassName",
+ new A_ARG_TYPE_PropertyClassNameStateVariable(this,model)
+ );
+
+
+
+ stateVariables.put(
+ "BundleEventInstalled",
+ new BundleEventInstalledStateVariable(this,model)
+ );
+
+
+
+ stateVariables.put(
+ "BundleEventStarted",
+ new BundleEventStartedStateVariable(this,model)
+ );
+
+
+
+ stateVariables.put(
+ "BundleEventStopped",
+ new BundleEventStoppedStateVariable(this,model)
+ );
+
+
+
+ stateVariables.put(
+ "BundleEventUpdated",
+ new BundleEventUpdatedStateVariable(this,model)
+ );
+
+
+
+ stateVariables.put(
+ "BundleEventUninstalled",
+ new BundleEventUninstalledStateVariable(this,model)
+ );
+
+
+
+ stateVariables.put(
+ "ServiceEventRegistered",
+ new ServiceEventRegisteredStateVariable(this,model)
+ );
+
+
+
+ stateVariables.put(
+ "ServiceEventUnregistering",
+ new ServiceEventUnregisteringStateVariable(this,model)
+ );
+
+
+
+ stateVariables.put(
+ "ServiceEventModified",
+ new ServiceEventModifiedStateVariable(this,model)
+ );
+
+ actions=new HashMap();
+
+
+
+ actions.put(
+ "ListBundles",
+ new ListBundlesAction(this,model)
+ );
+
+
+
+ actions.put(
+ "ListServices",
+ new ListServicesAction(this,model)
+ );
+
+
+
+ actions.put(
+ "GetBundleInfo",
+ new GetBundleInfoAction(this,model)
+ );
+
+
+
+ actions.put(
+ "GetBundleHeader",
+ new GetBundleHeaderAction(this,model)
+ );
+
+
+
+ actions.put(
+ "InstallBundle",
+ new InstallBundleAction(this,model)
+ );
+
+
+
+ actions.put(
+ "StartBundle",
+ new StartBundleAction(this,model)
+ );
+
+
+
+ actions.put(
+ "StopBundle",
+ new StopBundleAction(this,model)
+ );
+
+
+
+ actions.put(
+ "UpdateBundle",
+ new UpdateBundleAction(this,model)
+ );
+
+
+
+ actions.put(
+ "UpdateBundleWithLocation",
+ new UpdateBundleWithLocationAction(this,model)
+ );
+
+
+
+ actions.put(
+ "UninstallBundle",
+ new UninstallBundleAction(this,model)
+ );
+
+
+
+ actions.put(
+ "GetServiceInfo",
+ new GetServiceInfoAction(this,model)
+ );
+
+
+
+ actions.put(
+ "GetServiceProperty",
+ new GetServicePropertyAction(this,model)
+ );
+
+ }
+
+ // UPnPStateVariable classes
+
+
+
+// class BundleListStateVariable
+public class BundleListStateVariable
+ extends AbstractUPnPStateVariable
+
+ implements UPnPStateVariableDescriptor{
+
+ public final static String NAME="BundleList";
+ public final static String DATATYPE="string";
+
+ // HERE specific state variable members
+ private BundleAdminModel model;
+
+ public BundleListStateVariable(
+ UPnPService upnpService,
+ BundleAdminModel model
+ ){
+ super(
+ upnpService,
+ NAME,
+ DATATYPE,
+ null, // TODO defaultValue changed for
+ null, // TODO step changed for
+ null, // TODO step changed for
+ null, // TODO minimum changed for
+ null, // TODO maximum changed for
+ // sendEventsAttribute
+ true,
+ true // TODO required changed for OR
+ );
+
+ this.model=model;
+
+
+ }
+
+ // TODO
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+
+ /**
+ * invoked for the first notification just after a subscription
+ * @see it.cnr.isti.niche.osgi.upnp.util.UPnPStateVariableDescriptor#getValue()
+ */
+ public Object getValue(){
+
+ return model.getBundleListStateVariableValue();
+
+ }
+};
+
+
+// class ServiceListStateVariable
+public class ServiceListStateVariable
+ extends AbstractUPnPStateVariable
+
+ implements UPnPStateVariableDescriptor{
+
+ public final static String NAME="ServiceList";
+ public final static String DATATYPE="string";
+
+ // HERE specific state variable members
+ private BundleAdminModel model;
+
+ public ServiceListStateVariable(
+ UPnPService upnpService,
+ BundleAdminModel model
+ ){
+ super(
+ upnpService,
+ NAME,
+ DATATYPE,
+ null, // TODO defaultValue changed for
+ null, // TODO step changed for
+ null, // TODO step changed for
+ null, // TODO minimum changed for
+ null, // TODO maximum changed for
+ // sendEventsAttribute
+ true,
+ true // TODO required changed for OR
+ );
+
+ this.model=model;
+
+
+ }
+
+ // TODO
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+
+ /**
+ * invoked for the first notification just after a subscription
+ * @see it.cnr.isti.niche.osgi.upnp.util.UPnPStateVariableDescriptor#getValue()
+ */
+ public Object getValue(){
+
+ return model.getServiceListStateVariableValue();
+
+ }
+};
+
+
+// class A_ARG_TYPE_BundleIDStateVariable
+public class A_ARG_TYPE_BundleIDStateVariable
+ extends AbstractUPnPStateVariable
+
+ {
+
+ public final static String NAME="A_ARG_TYPE_BundleID";
+ public final static String DATATYPE="ui4";
+
+ // HERE specific state variable members
+ private BundleAdminModel model;
+
+ public A_ARG_TYPE_BundleIDStateVariable(
+ UPnPService upnpService,
+ BundleAdminModel model
+ ){
+ super(
+ upnpService,
+ NAME,
+ DATATYPE,
+ null, // TODO defaultValue changed for
+ null, // TODO step changed for
+ null, // TODO step changed for
+ null, // TODO minimum changed for
+ null, // TODO maximum changed for
+ // sendEventsAttribute
+ false,
+ true // TODO required changed for OR
+ );
+
+ this.model=model;
+
+
+ }
+
+ // TODO
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+
+ /**
+ * invoked for the first notification just after a subscription
+ * @see it.cnr.isti.niche.osgi.upnp.util.UPnPStateVariableDescriptor#getValue()
+ */
+ public Object getValue(){
+ return null;
+ }
+};
+
+
+// class A_ARG_TYPE_ServiceIDStateVariable
+public class A_ARG_TYPE_ServiceIDStateVariable
+ extends AbstractUPnPStateVariable
+
+ {
+
+ public final static String NAME="A_ARG_TYPE_ServiceID";
+ public final static String DATATYPE="ui4";
+
+ // HERE specific state variable members
+ private BundleAdminModel model;
+
+ public A_ARG_TYPE_ServiceIDStateVariable(
+ UPnPService upnpService,
+ BundleAdminModel model
+ ){
+ super(
+ upnpService,
+ NAME,
+ DATATYPE,
+ null, // TODO defaultValue changed for
+ null, // TODO step changed for
+ null, // TODO step changed for
+ null, // TODO minimum changed for
+ null, // TODO maximum changed for
+ // sendEventsAttribute
+ false,
+ true // TODO required changed for OR
+ );
+
+ this.model=model;
+
+
+ }
+
+ // TODO
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+
+ /**
+ * invoked for the first notification just after a subscription
+ * @see it.cnr.isti.niche.osgi.upnp.util.UPnPStateVariableDescriptor#getValue()
+ */
+ public Object getValue(){
+ return null;
+ }
+};
+
+
+// class A_ARG_TYPE_BundleLocationStateVariable
+public class A_ARG_TYPE_BundleLocationStateVariable
+ extends AbstractUPnPStateVariable
+
+ {
+
+ public final static String NAME="A_ARG_TYPE_BundleLocation";
+ public final static String DATATYPE="string";
+
+ // HERE specific state variable members
+ private BundleAdminModel model;
+
+ public A_ARG_TYPE_BundleLocationStateVariable(
+ UPnPService upnpService,
+ BundleAdminModel model
+ ){
+ super(
+ upnpService,
+ NAME,
+ DATATYPE,
+ null, // TODO defaultValue changed for
+ null, // TODO step changed for
+ null, // TODO step changed for
+ null, // TODO minimum changed for
+ null, // TODO maximum changed for
+ // sendEventsAttribute
+ false,
+ true // TODO required changed for OR
+ );
+
+ this.model=model;
+
+
+ }
+
+ // TODO
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+
+ /**
+ * invoked for the first notification just after a subscription
+ * @see it.cnr.isti.niche.osgi.upnp.util.UPnPStateVariableDescriptor#getValue()
+ */
+ public Object getValue(){
+ return null;
+ }
+};
+
+
+// class A_ARG_TYPE_BundleStateStateVariable
+public class A_ARG_TYPE_BundleStateStateVariable
+ extends AbstractUPnPStateVariable
+
+ {
+
+ public final static String NAME="A_ARG_TYPE_BundleState";
+ public final static String DATATYPE="string";
+
+ // HERE specific state variable members
+ private BundleAdminModel model;
+
+ public A_ARG_TYPE_BundleStateStateVariable(
+ UPnPService upnpService,
+ BundleAdminModel model
+ ){
+ super(
+ upnpService,
+ NAME,
+ DATATYPE,
+ null, // TODO defaultValue changed for
+ null, // TODO step changed for
+ null, // TODO step changed for
+ null, // TODO minimum changed for
+ null, // TODO maximum changed for
+ // sendEventsAttribute
+ false,
+ true // TODO required changed for OR
+ );
+
+ this.model=model;
+
+
+ /*
+ List allowedValueList=new LinkedList();
+
+ allowedValueList.add(UPnPDataTypeUtil.instanciateObject("string","UNINSTALLED"));
+
+ allowedValueList.add(UPnPDataTypeUtil.instanciateObject("string","INSTALLED"));
+
+ allowedValueList.add(UPnPDataTypeUtil.instanciateObject("string","RESOLVED"));
+
+ allowedValueList.add(UPnPDataTypeUtil.instanciateObject("string","STARTING"));
+
+ allowedValueList.add(UPnPDataTypeUtil.instanciateObject("string","STOPPING"));
+
+ allowedValueList.add(UPnPDataTypeUtil.instanciateObject("string","ACTIVE"));
+
+ this.setallowedValueList(allowedValueList);
+ */
+
+ }
+
+ // TODO
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+
+ /**
+ * invoked for the first notification just after a subscription
+ * @see it.cnr.isti.niche.osgi.upnp.util.UPnPStateVariableDescriptor#getValue()
+ */
+ public Object getValue(){
+ return null;
+ }
+};
+
+
+// class A_ARG_TYPE_StartLevelStateVariable
+public class A_ARG_TYPE_StartLevelStateVariable
+ extends AbstractUPnPStateVariable
+
+ {
+
+ public final static String NAME="A_ARG_TYPE_StartLevel";
+ public final static String DATATYPE="int";
+
+ // HERE specific state variable members
+ private BundleAdminModel model;
+
+ public A_ARG_TYPE_StartLevelStateVariable(
+ UPnPService upnpService,
+ BundleAdminModel model
+ ){
+ super(
+ upnpService,
+ NAME,
+ DATATYPE,
+ null, // TODO defaultValue changed for
+ null, // TODO step changed for
+ null, // TODO step changed for
+ null, // TODO minimum changed for
+ null, // TODO maximum changed for
+ // sendEventsAttribute
+ false,
+ true // TODO required changed for OR
+ );
+
+ this.model=model;
+
+
+ }
+
+ // TODO
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+
+ /**
+ * invoked for the first notification just after a subscription
+ * @see it.cnr.isti.niche.osgi.upnp.util.UPnPStateVariableDescriptor#getValue()
+ */
+ public Object getValue(){
+ return null;
+ }
+};
+
+
+// class A_ARG_TYPE_HeaderNamesStateVariable
+public class A_ARG_TYPE_HeaderNamesStateVariable
+ extends AbstractUPnPStateVariable
+
+ {
+
+ public final static String NAME="A_ARG_TYPE_HeaderNames";
+ public final static String DATATYPE="string";
+
+ // HERE specific state variable members
+ private BundleAdminModel model;
+
+ public A_ARG_TYPE_HeaderNamesStateVariable(
+ UPnPService upnpService,
+ BundleAdminModel model
+ ){
+ super(
+ upnpService,
+ NAME,
+ DATATYPE,
+ null, // TODO defaultValue changed for
+ null, // TODO step changed for
+ null, // TODO step changed for
+ null, // TODO minimum changed for
+ null, // TODO maximum changed for
+ // sendEventsAttribute
+ false,
+ true // TODO required changed for OR
+ );
+
+ this.model=model;
+
+
+ }
+
+ // TODO
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+
+ /**
+ * invoked for the first notification just after a subscription
+ * @see it.cnr.isti.niche.osgi.upnp.util.UPnPStateVariableDescriptor#getValue()
+ */
+ public Object getValue(){
+ return null;
+ }
+};
+
+
+// class A_ARG_TYPE_HeaderNameStateVariable
+public class A_ARG_TYPE_HeaderNameStateVariable
+ extends AbstractUPnPStateVariable
+
+ {
+
+ public final static String NAME="A_ARG_TYPE_HeaderName";
+ public final static String DATATYPE="string";
+
+ // HERE specific state variable members
+ private BundleAdminModel model;
+
+ public A_ARG_TYPE_HeaderNameStateVariable(
+ UPnPService upnpService,
+ BundleAdminModel model
+ ){
+ super(
+ upnpService,
+ NAME,
+ DATATYPE,
+ null, // TODO defaultValue changed for
+ null, // TODO step changed for
+ null, // TODO step changed for
+ null, // TODO minimum changed for
+ null, // TODO maximum changed for
+ // sendEventsAttribute
+ false,
+ true // TODO required changed for OR
+ );
+
+ this.model=model;
+
+
+ }
+
+ // TODO
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+
+ /**
+ * invoked for the first notification just after a subscription
+ * @see it.cnr.isti.niche.osgi.upnp.util.UPnPStateVariableDescriptor#getValue()
+ */
+ public Object getValue(){
+ return null;
+ }
+};
+
+
+// class A_ARG_TYPE_HeaderValueStateVariable
+public class A_ARG_TYPE_HeaderValueStateVariable
+ extends AbstractUPnPStateVariable
+
+ {
+
+ public final static String NAME="A_ARG_TYPE_HeaderValue";
+ public final static String DATATYPE="string";
+
+ // HERE specific state variable members
+ private BundleAdminModel model;
+
+ public A_ARG_TYPE_HeaderValueStateVariable(
+ UPnPService upnpService,
+ BundleAdminModel model
+ ){
+ super(
+ upnpService,
+ NAME,
+ DATATYPE,
+ null, // TODO defaultValue changed for
+ null, // TODO step changed for
+ null, // TODO step changed for
+ null, // TODO minimum changed for
+ null, // TODO maximum changed for
+ // sendEventsAttribute
+ false,
+ true // TODO required changed for OR
+ );
+
+ this.model=model;
+
+
+ }
+
+ // TODO
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+
+ /**
+ * invoked for the first notification just after a subscription
+ * @see it.cnr.isti.niche.osgi.upnp.util.UPnPStateVariableDescriptor#getValue()
+ */
+ public Object getValue(){
+ return null;
+ }
+};
+
+
+// class A_ARG_TYPE_PropertyKeysStateVariable
+public class A_ARG_TYPE_PropertyKeysStateVariable
+ extends AbstractUPnPStateVariable
+
+ {
+
+ public final static String NAME="A_ARG_TYPE_PropertyKeys";
+ public final static String DATATYPE="string";
+
+ // HERE specific state variable members
+ private BundleAdminModel model;
+
+ public A_ARG_TYPE_PropertyKeysStateVariable(
+ UPnPService upnpService,
+ BundleAdminModel model
+ ){
+ super(
+ upnpService,
+ NAME,
+ DATATYPE,
+ null, // TODO defaultValue changed for
+ null, // TODO step changed for
+ null, // TODO step changed for
+ null, // TODO minimum changed for
+ null, // TODO maximum changed for
+ // sendEventsAttribute
+ false,
+ true // TODO required changed for OR
+ );
+
+ this.model=model;
+
+
+ }
+
+ // TODO
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+
+ /**
+ * invoked for the first notification just after a subscription
+ * @see it.cnr.isti.niche.osgi.upnp.util.UPnPStateVariableDescriptor#getValue()
+ */
+ public Object getValue(){
+ return null;
+ }
+};
+
+
+// class A_ARG_TYPE_PropertyKeyStateVariable
+public class A_ARG_TYPE_PropertyKeyStateVariable
+ extends AbstractUPnPStateVariable
+
+ {
+
+ public final static String NAME="A_ARG_TYPE_PropertyKey";
+ public final static String DATATYPE="string";
+
+ // HERE specific state variable members
+ private BundleAdminModel model;
+
+ public A_ARG_TYPE_PropertyKeyStateVariable(
+ UPnPService upnpService,
+ BundleAdminModel model
+ ){
+ super(
+ upnpService,
+ NAME,
+ DATATYPE,
+ null, // TODO defaultValue changed for
+ null, // TODO step changed for
+ null, // TODO step changed for
+ null, // TODO minimum changed for
+ null, // TODO maximum changed for
+ // sendEventsAttribute
+ false,
+ true // TODO required changed for OR
+ );
+
+ this.model=model;
+
+
+ }
+
+ // TODO
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+
+ /**
+ * invoked for the first notification just after a subscription
+ * @see it.cnr.isti.niche.osgi.upnp.util.UPnPStateVariableDescriptor#getValue()
+ */
+ public Object getValue(){
+ return null;
+ }
+};
+
+
+// class A_ARG_TYPE_PropertyValueStateVariable
+public class A_ARG_TYPE_PropertyValueStateVariable
+ extends AbstractUPnPStateVariable
+
+ {
+
+ public final static String NAME="A_ARG_TYPE_PropertyValue";
+ public final static String DATATYPE="string";
+
+ // HERE specific state variable members
+ private BundleAdminModel model;
+
+ public A_ARG_TYPE_PropertyValueStateVariable(
+ UPnPService upnpService,
+ BundleAdminModel model
+ ){
+ super(
+ upnpService,
+ NAME,
+ DATATYPE,
+ null, // TODO defaultValue changed for
+ null, // TODO step changed for
+ null, // TODO step changed for
+ null, // TODO minimum changed for
+ null, // TODO maximum changed for
+ // sendEventsAttribute
+ false,
+ true // TODO required changed for OR
+ );
+
+ this.model=model;
+
+
+ }
+
+ // TODO
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+
+ /**
+ * invoked for the first notification just after a subscription
+ * @see it.cnr.isti.niche.osgi.upnp.util.UPnPStateVariableDescriptor#getValue()
+ */
+ public Object getValue(){
+ return null;
+ }
+};
+
+
+// class A_ARG_TYPE_PropertyClassNameStateVariable
+public class A_ARG_TYPE_PropertyClassNameStateVariable
+ extends AbstractUPnPStateVariable
+
+ {
+
+ public final static String NAME="A_ARG_TYPE_PropertyClassName";
+ public final static String DATATYPE="string";
+
+ // HERE specific state variable members
+ private BundleAdminModel model;
+
+ public A_ARG_TYPE_PropertyClassNameStateVariable(
+ UPnPService upnpService,
+ BundleAdminModel model
+ ){
+ super(
+ upnpService,
+ NAME,
+ DATATYPE,
+ null, // TODO defaultValue changed for
+ null, // TODO step changed for
+ null, // TODO step changed for
+ null, // TODO minimum changed for
+ null, // TODO maximum changed for
+ // sendEventsAttribute
+ false,
+ true // TODO required changed for OR
+ );
+
+ this.model=model;
+
+
+ }
+
+ // TODO
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+
+ /**
+ * invoked for the first notification just after a subscription
+ * @see it.cnr.isti.niche.osgi.upnp.util.UPnPStateVariableDescriptor#getValue()
+ */
+ public Object getValue(){
+ return null;
+ }
+};
+
+
+// class BundleEventInstalledStateVariable
+public class BundleEventInstalledStateVariable
+ extends AbstractUPnPStateVariable
+
+ implements UPnPStateVariableDescriptor{
+
+ public final static String NAME="BundleEventInstalled";
+ public final static String DATATYPE="ui4";
+
+ // HERE specific state variable members
+ private BundleAdminModel model;
+
+ public BundleEventInstalledStateVariable(
+ UPnPService upnpService,
+ BundleAdminModel model
+ ){
+ super(
+ upnpService,
+ NAME,
+ DATATYPE,
+ null, // TODO defaultValue changed for
+ null, // TODO step changed for
+ null, // TODO step changed for
+ null, // TODO minimum changed for
+ null, // TODO maximum changed for
+ // sendEventsAttribute
+ true,
+ true // TODO required changed for OR
+ );
+
+ this.model=model;
+
+
+ }
+
+ // TODO
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+
+ /**
+ * invoked for the first notification just after a subscription
+ * @see it.cnr.isti.niche.osgi.upnp.util.UPnPStateVariableDescriptor#getValue()
+ */
+ public Object getValue(){
+
+ return model.getBundleEventInstalledStateVariableValue();
+
+ }
+};
+
+
+// class BundleEventStartedStateVariable
+public class BundleEventStartedStateVariable
+ extends AbstractUPnPStateVariable
+
+ implements UPnPStateVariableDescriptor{
+
+ public final static String NAME="BundleEventStarted";
+ public final static String DATATYPE="ui4";
+
+ // HERE specific state variable members
+ private BundleAdminModel model;
+
+ public BundleEventStartedStateVariable(
+ UPnPService upnpService,
+ BundleAdminModel model
+ ){
+ super(
+ upnpService,
+ NAME,
+ DATATYPE,
+ null, // TODO defaultValue changed for
+ null, // TODO step changed for
+ null, // TODO step changed for
+ null, // TODO minimum changed for
+ null, // TODO maximum changed for
+ // sendEventsAttribute
+ true,
+ true // TODO required changed for OR
+ );
+
+ this.model=model;
+
+
+ }
+
+ // TODO
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+
+ /**
+ * invoked for the first notification just after a subscription
+ * @see it.cnr.isti.niche.osgi.upnp.util.UPnPStateVariableDescriptor#getValue()
+ */
+ public Object getValue(){
+
+ return model.getBundleEventStartedStateVariableValue();
+
+ }
+};
+
+
+// class BundleEventStoppedStateVariable
+public class BundleEventStoppedStateVariable
+ extends AbstractUPnPStateVariable
+
+ implements UPnPStateVariableDescriptor{
+
+ public final static String NAME="BundleEventStopped";
+ public final static String DATATYPE="ui4";
+
+ // HERE specific state variable members
+ private BundleAdminModel model;
+
+ public BundleEventStoppedStateVariable(
+ UPnPService upnpService,
+ BundleAdminModel model
+ ){
+ super(
+ upnpService,
+ NAME,
+ DATATYPE,
+ null, // TODO defaultValue changed for
+ null, // TODO step changed for
+ null, // TODO step changed for
+ null, // TODO minimum changed for
+ null, // TODO maximum changed for
+ // sendEventsAttribute
+ true,
+ true // TODO required changed for OR
+ );
+
+ this.model=model;
+
+
+ }
+
+ // TODO
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+
+ /**
+ * invoked for the first notification just after a subscription
+ * @see it.cnr.isti.niche.osgi.upnp.util.UPnPStateVariableDescriptor#getValue()
+ */
+ public Object getValue(){
+
+ return model.getBundleEventStoppedStateVariableValue();
+
+ }
+};
+
+
+// class BundleEventUpdatedStateVariable
+public class BundleEventUpdatedStateVariable
+ extends AbstractUPnPStateVariable
+
+ implements UPnPStateVariableDescriptor{
+
+ public final static String NAME="BundleEventUpdated";
+ public final static String DATATYPE="ui4";
+
+ // HERE specific state variable members
+ private BundleAdminModel model;
+
+ public BundleEventUpdatedStateVariable(
+ UPnPService upnpService,
+ BundleAdminModel model
+ ){
+ super(
+ upnpService,
+ NAME,
+ DATATYPE,
+ null, // TODO defaultValue changed for
+ null, // TODO step changed for
+ null, // TODO step changed for
+ null, // TODO minimum changed for
+ null, // TODO maximum changed for
+ // sendEventsAttribute
+ true,
+ true // TODO required changed for OR
+ );
+
+ this.model=model;
+
+
+ }
+
+ // TODO
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+
+ /**
+ * invoked for the first notification just after a subscription
+ * @see it.cnr.isti.niche.osgi.upnp.util.UPnPStateVariableDescriptor#getValue()
+ */
+ public Object getValue(){
+
+ return model.getBundleEventUpdatedStateVariableValue();
+
+ }
+};
+
+
+// class BundleEventUninstalledStateVariable
+public class BundleEventUninstalledStateVariable
+ extends AbstractUPnPStateVariable
+
+ implements UPnPStateVariableDescriptor{
+
+ public final static String NAME="BundleEventUninstalled";
+ public final static String DATATYPE="ui4";
+
+ // HERE specific state variable members
+ private BundleAdminModel model;
+
+ public BundleEventUninstalledStateVariable(
+ UPnPService upnpService,
+ BundleAdminModel model
+ ){
+ super(
+ upnpService,
+ NAME,
+ DATATYPE,
+ null, // TODO defaultValue changed for
+ null, // TODO step changed for
+ null, // TODO step changed for
+ null, // TODO minimum changed for
+ null, // TODO maximum changed for
+ // sendEventsAttribute
+ true,
+ true // TODO required changed for OR
+ );
+
+ this.model=model;
+
+
+ }
+
+ // TODO
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+
+ /**
+ * invoked for the first notification just after a subscription
+ * @see it.cnr.isti.niche.osgi.upnp.util.UPnPStateVariableDescriptor#getValue()
+ */
+ public Object getValue(){
+
+ return model.getBundleEventUninstalledStateVariableValue();
+
+ }
+};
+
+
+// class ServiceEventRegisteredStateVariable
+public class ServiceEventRegisteredStateVariable
+ extends AbstractUPnPStateVariable
+
+ implements UPnPStateVariableDescriptor{
+
+ public final static String NAME="ServiceEventRegistered";
+ public final static String DATATYPE="ui4";
+
+ // HERE specific state variable members
+ private BundleAdminModel model;
+
+ public ServiceEventRegisteredStateVariable(
+ UPnPService upnpService,
+ BundleAdminModel model
+ ){
+ super(
+ upnpService,
+ NAME,
+ DATATYPE,
+ null, // TODO defaultValue changed for
+ null, // TODO step changed for
+ null, // TODO step changed for
+ null, // TODO minimum changed for
+ null, // TODO maximum changed for
+ // sendEventsAttribute
+ true,
+ true // TODO required changed for OR
+ );
+
+ this.model=model;
+
+
+ }
+
+ // TODO
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+
+ /**
+ * invoked for the first notification just after a subscription
+ * @see it.cnr.isti.niche.osgi.upnp.util.UPnPStateVariableDescriptor#getValue()
+ */
+ public Object getValue(){
+
+ return model.getServiceEventRegisteredStateVariableValue();
+
+ }
+};
+
+
+// class ServiceEventUnregisteringStateVariable
+public class ServiceEventUnregisteringStateVariable
+ extends AbstractUPnPStateVariable
+
+ implements UPnPStateVariableDescriptor{
+
+ public final static String NAME="ServiceEventUnregistering";
+ public final static String DATATYPE="ui4";
+
+ // HERE specific state variable members
+ private BundleAdminModel model;
+
+ public ServiceEventUnregisteringStateVariable(
+ UPnPService upnpService,
+ BundleAdminModel model
+ ){
+ super(
+ upnpService,
+ NAME,
+ DATATYPE,
+ null, // TODO defaultValue changed for
+ null, // TODO step changed for
+ null, // TODO step changed for
+ null, // TODO minimum changed for
+ null, // TODO maximum changed for
+ // sendEventsAttribute
+ true,
+ true // TODO required changed for OR
+ );
+
+ this.model=model;
+
+
+ }
+
+ // TODO
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+
+ /**
+ * invoked for the first notification just after a subscription
+ * @see it.cnr.isti.niche.osgi.upnp.util.UPnPStateVariableDescriptor#getValue()
+ */
+ public Object getValue(){
+
+ return model.getServiceEventUnregisteringStateVariableValue();
+
+ }
+};
+
+
+// class ServiceEventModifiedStateVariable
+public class ServiceEventModifiedStateVariable
+ extends AbstractUPnPStateVariable
+
+ implements UPnPStateVariableDescriptor{
+
+ public final static String NAME="ServiceEventModified";
+ public final static String DATATYPE="ui4";
+
+ // HERE specific state variable members
+ private BundleAdminModel model;
+
+ public ServiceEventModifiedStateVariable(
+ UPnPService upnpService,
+ BundleAdminModel model
+ ){
+ super(
+ upnpService,
+ NAME,
+ DATATYPE,
+ null, // TODO defaultValue changed for
+ null, // TODO step changed for
+ null, // TODO step changed for
+ null, // TODO minimum changed for
+ null, // TODO maximum changed for
+ // sendEventsAttribute
+ true,
+ true // TODO required changed for OR
+ );
+
+ this.model=model;
+
+
+ }
+
+ // TODO
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+
+ /**
+ * invoked for the first notification just after a subscription
+ * @see it.cnr.isti.niche.osgi.upnp.util.UPnPStateVariableDescriptor#getValue()
+ */
+ public Object getValue(){
+
+ return model.getServiceEventModifiedStateVariableValue();
+
+ }
+};
+
+
+ // UPnPAction classes
+
+
+
+public class ListBundlesAction extends AbstractUPnPAction {
+
+ BundleAdminModel model;
+
+ // HERE specific action members
+
+ public ListBundlesAction(
+ UPnPService upnpService,
+ BundleAdminModel model
+ ){
+ super(
+ upnpService,
+ "ListBundles",
+ ""
+ );
+ this.model=model;
+
+ addOutArg(
+ "CurrentBundleList",
+ upnpService.getStateVariable("BundleList")
+ );
+
+ }
+
+ /**
+ * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+ */
+ public Dictionary invoke(Dictionary _args) throws Exception {
+
+ StringHolder currentBundleList = new StringHolder();
+
+
+ // invoke model
+
+ model.listBundles(
+ currentBundleList
+ );
+
+ // build returned Dictionary
+ Dictionary _result = new Hashtable();
+
+ _result.put("CurrentBundleList",currentBundleList.getObject());
+ // java.lang.String
+ return _result.isEmpty()?null:_result;
+ }
+
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+};
+
+
+public class ListServicesAction extends AbstractUPnPAction {
+
+ BundleAdminModel model;
+
+ // HERE specific action members
+
+ public ListServicesAction(
+ UPnPService upnpService,
+ BundleAdminModel model
+ ){
+ super(
+ upnpService,
+ "ListServices",
+ ""
+ );
+ this.model=model;
+
+ addOutArg(
+ "CurrentServiceList",
+ upnpService.getStateVariable("ServiceList")
+ );
+
+ }
+
+ /**
+ * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+ */
+ public Dictionary invoke(Dictionary _args) throws Exception {
+
+ StringHolder currentServiceList = new StringHolder();
+
+
+ // invoke model
+
+ model.listServices(
+ currentServiceList
+ );
+
+ // build returned Dictionary
+ Dictionary _result = new Hashtable();
+
+ _result.put("CurrentServiceList",currentServiceList.getObject());
+ // java.lang.String
+ return _result.isEmpty()?null:_result;
+ }
+
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+};
+
+
+public class GetBundleInfoAction extends AbstractUPnPAction {
+
+ BundleAdminModel model;
+
+ // HERE specific action members
+
+ public GetBundleInfoAction(
+ UPnPService upnpService,
+ BundleAdminModel model
+ ){
+ super(
+ upnpService,
+ "GetBundleInfo",
+ ""
+ );
+ this.model=model;
+
+ addInArg(
+ "BundleID",
+ upnpService.getStateVariable("A_ARG_TYPE_BundleID")
+ );
+
+ addOutArg(
+ "BundleLocation",
+ upnpService.getStateVariable("A_ARG_TYPE_BundleLocation")
+ );
+
+ addOutArg(
+ "BundleState",
+ upnpService.getStateVariable("A_ARG_TYPE_BundleState")
+ );
+
+ addOutArg(
+ "StartLevel",
+ upnpService.getStateVariable("A_ARG_TYPE_StartLevel")
+ );
+
+ addOutArg(
+ "HeaderNames",
+ upnpService.getStateVariable("A_ARG_TYPE_HeaderNames")
+ );
+
+ }
+
+ /**
+ * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+ */
+ public Dictionary invoke(Dictionary _args) throws Exception {
+
+ java.lang.Long bundleID = (java.lang.Long) _args.get("BundleID");
+ StringHolder bundleLocation = new StringHolder();
+ StringHolder bundleState = new StringHolder();
+ IntegerHolder startLevel = new IntegerHolder();
+ StringHolder headerNames = new StringHolder();
+
+
+ // invoke model
+
+ model.getBundleInfo(
+ LongHolder.toValue(
+ bundleID)
+ ,
+
+bundleLocation,
+
+bundleState,
+
+startLevel,
+
+headerNames
+ );
+
+ // build returned Dictionary
+ Dictionary _result = new Hashtable();
+
+ _result.put("BundleLocation",bundleLocation.getObject());
+ // java.lang.String
+ _result.put("BundleState",bundleState.getObject());
+ // java.lang.String
+ _result.put("StartLevel",startLevel.getObject());
+ // java.lang.Integer
+ _result.put("HeaderNames",headerNames.getObject());
+ // java.lang.String
+ return _result.isEmpty()?null:_result;
+ }
+
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+};
+
+
+public class GetBundleHeaderAction extends AbstractUPnPAction {
+
+ BundleAdminModel model;
+
+ // HERE specific action members
+
+ public GetBundleHeaderAction(
+ UPnPService upnpService,
+ BundleAdminModel model
+ ){
+ super(
+ upnpService,
+ "GetBundleHeader",
+ ""
+ );
+ this.model=model;
+
+ addInArg(
+ "BundleID",
+ upnpService.getStateVariable("A_ARG_TYPE_BundleID")
+ );
+
+ addInArg(
+ "HeaderName",
+ upnpService.getStateVariable("A_ARG_TYPE_HeaderName")
+ );
+
+ addOutArg(
+ "HeaderValue",
+ upnpService.getStateVariable("A_ARG_TYPE_HeaderValue")
+ );
+
+ }
+
+ /**
+ * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+ */
+ public Dictionary invoke(Dictionary _args) throws Exception {
+
+ java.lang.Long bundleID = (java.lang.Long) _args.get("BundleID");
+ java.lang.String headerName = (java.lang.String) _args.get("HeaderName");
+ StringHolder headerValue = new StringHolder();
+
+
+ // invoke model
+
+ model.getBundleHeader(
+ LongHolder.toValue(
+ bundleID)
+ ,
+
+StringHolder.toValue(
+ headerName)
+ ,
+
+headerValue
+ );
+
+ // build returned Dictionary
+ Dictionary _result = new Hashtable();
+
+ _result.put("HeaderValue",headerValue.getObject());
+ // java.lang.String
+ return _result.isEmpty()?null:_result;
+ }
+
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+};
+
+
+public class InstallBundleAction extends AbstractUPnPAction {
+
+ BundleAdminModel model;
+
+ // HERE specific action members
+
+ public InstallBundleAction(
+ UPnPService upnpService,
+ BundleAdminModel model
+ ){
+ super(
+ upnpService,
+ "InstallBundle",
+ ""
+ );
+ this.model=model;
+
+ addInArg(
+ "BundleLocation",
+ upnpService.getStateVariable("A_ARG_TYPE_BundleLocation")
+ );
+
+ addOutArg(
+ "BundleID",
+ upnpService.getStateVariable("A_ARG_TYPE_BundleID")
+ );
+
+ }
+
+ /**
+ * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+ */
+ public Dictionary invoke(Dictionary _args) throws Exception {
+
+ java.lang.String bundleLocation = (java.lang.String) _args.get("BundleLocation");
+ LongHolder bundleID = new LongHolder();
+
+
+ // invoke model
+
+ model.installBundle(
+ StringHolder.toValue(
+ bundleLocation)
+ ,
+
+bundleID
+ );
+
+ // build returned Dictionary
+ Dictionary _result = new Hashtable();
+
+ _result.put("BundleID",bundleID.getObject());
+ // java.lang.Long
+ return _result.isEmpty()?null:_result;
+ }
+
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+};
+
+
+public class StartBundleAction extends AbstractUPnPAction {
+
+ BundleAdminModel model;
+
+ // HERE specific action members
+
+ public StartBundleAction(
+ UPnPService upnpService,
+ BundleAdminModel model
+ ){
+ super(
+ upnpService,
+ "StartBundle",
+ ""
+ );
+ this.model=model;
+
+ addInArg(
+ "BundleID",
+ upnpService.getStateVariable("A_ARG_TYPE_BundleID")
+ );
+
+ }
+
+ /**
+ * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+ */
+ public Dictionary invoke(Dictionary _args) throws Exception {
+
+ java.lang.Long bundleID = (java.lang.Long) _args.get("BundleID");
+
+
+ // invoke model
+
+ model.startBundle(
+ LongHolder.toValue(
+ bundleID)
+
+ );
+
+ // build returned Dictionary
+ Dictionary _result = new Hashtable();
+
+ return _result.isEmpty()?null:_result;
+ }
+
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+};
+
+
+public class StopBundleAction extends AbstractUPnPAction {
+
+ BundleAdminModel model;
+
+ // HERE specific action members
+
+ public StopBundleAction(
+ UPnPService upnpService,
+ BundleAdminModel model
+ ){
+ super(
+ upnpService,
+ "StopBundle",
+ ""
+ );
+ this.model=model;
+
+ addInArg(
+ "BundleID",
+ upnpService.getStateVariable("A_ARG_TYPE_BundleID")
+ );
+
+ }
+
+ /**
+ * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+ */
+ public Dictionary invoke(Dictionary _args) throws Exception {
+
+ java.lang.Long bundleID = (java.lang.Long) _args.get("BundleID");
+
+
+ // invoke model
+
+ model.stopBundle(
+ LongHolder.toValue(
+ bundleID)
+
+ );
+
+ // build returned Dictionary
+ Dictionary _result = new Hashtable();
+
+ return _result.isEmpty()?null:_result;
+ }
+
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+};
+
+
+public class UpdateBundleAction extends AbstractUPnPAction {
+
+ BundleAdminModel model;
+
+ // HERE specific action members
+
+ public UpdateBundleAction(
+ UPnPService upnpService,
+ BundleAdminModel model
+ ){
+ super(
+ upnpService,
+ "UpdateBundle",
+ ""
+ );
+ this.model=model;
+
+ addInArg(
+ "BundleID",
+ upnpService.getStateVariable("A_ARG_TYPE_BundleID")
+ );
+
+ }
+
+ /**
+ * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+ */
+ public Dictionary invoke(Dictionary _args) throws Exception {
+
+ java.lang.Long bundleID = (java.lang.Long) _args.get("BundleID");
+
+
+ // invoke model
+
+ model.updateBundle(
+ LongHolder.toValue(
+ bundleID)
+
+ );
+
+ // build returned Dictionary
+ Dictionary _result = new Hashtable();
+
+ return _result.isEmpty()?null:_result;
+ }
+
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+};
+
+
+public class UpdateBundleWithLocationAction extends AbstractUPnPAction {
+
+ BundleAdminModel model;
+
+ // HERE specific action members
+
+ public UpdateBundleWithLocationAction(
+ UPnPService upnpService,
+ BundleAdminModel model
+ ){
+ super(
+ upnpService,
+ "UpdateBundleWithLocation",
+ ""
+ );
+ this.model=model;
+
+ addInArg(
+ "BundleID",
+ upnpService.getStateVariable("A_ARG_TYPE_BundleID")
+ );
+
+ addInArg(
+ "BundleLocation",
+ upnpService.getStateVariable("A_ARG_TYPE_BundleLocation")
+ );
+
+ }
+
+ /**
+ * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+ */
+ public Dictionary invoke(Dictionary _args) throws Exception {
+
+ java.lang.Long bundleID = (java.lang.Long) _args.get("BundleID");
+ java.lang.String bundleLocation = (java.lang.String) _args.get("BundleLocation");
+
+
+ // invoke model
+
+ model.updateBundleWithLocation(
+ LongHolder.toValue(
+ bundleID)
+ ,
+
+StringHolder.toValue(
+ bundleLocation)
+
+ );
+
+ // build returned Dictionary
+ Dictionary _result = new Hashtable();
+
+ return _result.isEmpty()?null:_result;
+ }
+
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+};
+
+
+public class UninstallBundleAction extends AbstractUPnPAction {
+
+ BundleAdminModel model;
+
+ // HERE specific action members
+
+ public UninstallBundleAction(
+ UPnPService upnpService,
+ BundleAdminModel model
+ ){
+ super(
+ upnpService,
+ "UninstallBundle",
+ ""
+ );
+ this.model=model;
+
+ addInArg(
+ "BundleID",
+ upnpService.getStateVariable("A_ARG_TYPE_BundleID")
+ );
+
+ }
+
+ /**
+ * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+ */
+ public Dictionary invoke(Dictionary _args) throws Exception {
+
+ java.lang.Long bundleID = (java.lang.Long) _args.get("BundleID");
+
+
+ // invoke model
+
+ model.uninstallBundle(
+ LongHolder.toValue(
+ bundleID)
+
+ );
+
+ // build returned Dictionary
+ Dictionary _result = new Hashtable();
+
+ return _result.isEmpty()?null:_result;
+ }
+
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+};
+
+
+public class GetServiceInfoAction extends AbstractUPnPAction {
+
+ BundleAdminModel model;
+
+ // HERE specific action members
+
+ public GetServiceInfoAction(
+ UPnPService upnpService,
+ BundleAdminModel model
+ ){
+ super(
+ upnpService,
+ "GetServiceInfo",
+ ""
+ );
+ this.model=model;
+
+ addInArg(
+ "ServiceID",
+ upnpService.getStateVariable("A_ARG_TYPE_ServiceID")
+ );
+
+ addOutArg(
+ "BundleID",
+ upnpService.getStateVariable("A_ARG_TYPE_BundleID")
+ );
+
+ addOutArg(
+ "PropertyKeys",
+ upnpService.getStateVariable("A_ARG_TYPE_PropertyKeys")
+ );
+
+ addOutArg(
+ "UsindBundles",
+ upnpService.getStateVariable("BundleList")
+ );
+
+ }
+
+ /**
+ * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+ */
+ public Dictionary invoke(Dictionary _args) throws Exception {
+
+ java.lang.Long serviceID = (java.lang.Long) _args.get("ServiceID");
+ LongHolder bundleID = new LongHolder();
+ StringHolder propertyKeys = new StringHolder();
+ StringHolder usindBundles = new StringHolder();
+
+
+ // invoke model
+
+ model.getServiceInfo(
+ LongHolder.toValue(
+ serviceID)
+ ,
+
+bundleID,
+
+propertyKeys,
+
+usindBundles
+ );
+
+ // build returned Dictionary
+ Dictionary _result = new Hashtable();
+
+ _result.put("BundleID",bundleID.getObject());
+ // java.lang.Long
+ _result.put("PropertyKeys",propertyKeys.getObject());
+ // java.lang.String
+ _result.put("UsindBundles",usindBundles.getObject());
+ // java.lang.String
+ return _result.isEmpty()?null:_result;
+ }
+
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+};
+
+
+public class GetServicePropertyAction extends AbstractUPnPAction {
+
+ BundleAdminModel model;
+
+ // HERE specific action members
+
+ public GetServicePropertyAction(
+ UPnPService upnpService,
+ BundleAdminModel model
+ ){
+ super(
+ upnpService,
+ "GetServiceProperty",
+ ""
+ );
+ this.model=model;
+
+ addInArg(
+ "ServiceID",
+ upnpService.getStateVariable("A_ARG_TYPE_ServiceID")
+ );
+
+ addInArg(
+ "PropertyKey",
+ upnpService.getStateVariable("A_ARG_TYPE_PropertyKey")
+ );
+
+ addOutArg(
+ "PropertyValue",
+ upnpService.getStateVariable("A_ARG_TYPE_PropertyValue")
+ );
+
+ addOutArg(
+ "PropertyClassName",
+ upnpService.getStateVariable("A_ARG_TYPE_PropertyClassName")
+ );
+
+ }
+
+ /**
+ * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+ */
+ public Dictionary invoke(Dictionary _args) throws Exception {
+
+ java.lang.Long serviceID = (java.lang.Long) _args.get("ServiceID");
+ java.lang.String propertyKey = (java.lang.String) _args.get("PropertyKey");
+ StringHolder propertyValue = new StringHolder();
+ StringHolder propertyClassName = new StringHolder();
+
+
+ // invoke model
+
+ model.getServiceProperty(
+ LongHolder.toValue(
+ serviceID)
+ ,
+
+StringHolder.toValue(
+ propertyKey)
+ ,
+
+propertyValue,
+
+propertyClassName
+ );
+
+ // build returned Dictionary
+ Dictionary _result = new Hashtable();
+
+ _result.put("PropertyValue",propertyValue.getObject());
+ // java.lang.String
+ _result.put("PropertyClassName",propertyClassName.getObject());
+ // java.lang.String
+ return _result.isEmpty()?null:_result;
+ }
+
+
+ public void start(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+
+ public void stop(BundleContext bundleContext) throws Exception {
+ // TODO
+ }
+};
+
+}
Propchange: incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/ogd/service/BundleAdmin.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/position/device/PositionDevice.java
URL: http://svn.apache.org/viewvc/incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/position/device/PositionDevice.java?view=auto&rev=533875
==============================================================================
--- incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/position/device/PositionDevice.java (added)
+++ incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/position/device/PositionDevice.java Mon Apr 30 16:15:05 2007
@@ -0,0 +1,116 @@
+
+/*
+__BANNER__
+*/
+// this file was generated at 1-May-2007 12:59 AM by ${author}
+package org.apache.felix.upnp.devicegen.position.device;
+
+import java.util.Iterator;
+import java.util.LinkedList;
+import java.util.List;
+
+import org.osgi.framework.BundleContext;
+import org.osgi.service.upnp.UPnPDevice;
+import org.osgi.service.upnp.UPnPIcon;
+import org.osgi.service.upnp.UPnPService;
+
+import org.apache.felix.upnp.devicegen.util.AbstractUPnPDevice;
+import org.apache.felix.upnp.devicegen.util.DeviceIcon;
+
+import org.apache.felix.upnp.devicegen.position.model.*;
+import org.apache.felix.upnp.devicegen.position.service.*;
+import org.apache.felix.upnp.devicegen.position.impl.*;
+
+
+
+
+public class PositionDevice extends AbstractUPnPDevice {
+
+ public PositionDevice(BundleContext context, AbstractUPnPDevice parent) {
+ super(context,parent);
+
+ DEVICE_ID="uuid:adele-position";
+
+ // ServiceModel Declaration List
+ PositionSensorModel myPositionSensorModel=null; // TODO initialise it
+
+
+ // Icon Lists
+
+ List iconsList=new LinkedList();
+
+ iconsList.add(
+ new DeviceIcon(
+ "image/png", // MimeType
+ 49, //Width
+ 50, // Height
+ 0, // ??
+ 16, // Depth
+ "/icon/compass.png", // URL
+ PositionDevice.class.getClassLoader()
+ )
+ );
+
+ icons=(UPnPIcon[])iconsList.toArray(new UPnPIcon[]{});
+
+
+ // Service List
+
+ List servicesList=new LinkedList();
+
+
+ /*
+ SCPDURL=URL to service description
+ controlURL=URL for control
+ eventSubURL=URL for eventing
+ */
+ servicesList.add(
+ new PositionSensor(
+ this,
+ "urn:felix-apache.org:serviceId:PositionSensor:1",
+ "urn:felix-apache.org:service:PositionSensor:1",
+ "1",
+ myPositionSensorModel
+ )
+ );
+
+ services=(UPnPService[])servicesList.toArray(new UPnPService[]{});
+
+
+ // Embedded Device List
+
+ //children=new LinkedList();
+
+
+ }
+
+ protected void setupDeviceProperties(){
+ dictionary.put(UPnPDevice.TYPE,"urn:schemas-felix-apache.org:device:PositionDevice:1");
+ dictionary.put(UPnPDevice.FRIENDLY_NAME,"Generated Position UPnP Device");
+ dictionary.put(UPnPDevice.MANUFACTURER,"Didier Donsez (Felix team)");
+ dictionary.put(UPnPDevice.MANUFACTURER_URL,"http://www.apache.org/~donsez");
+ dictionary.put(UPnPDevice.MODEL_DESCRIPTION,"Generated Position UPnP Device");
+ dictionary.put(UPnPDevice.MODEL_NAME,"Position Device");
+ dictionary.put(UPnPDevice.MODEL_NUMBER,"123");
+ dictionary.put(UPnPDevice.MODEL_URL,"http://www.apache.org/~donsez/dev/osgi/upnpposition/readme.html");
+ dictionary.put(UPnPDevice.SERIAL_NUMBER,"123456789");
+ dictionary.put(UPnPDevice.UDN,getUDN());
+ dictionary.put(UPnPDevice.ID,dictionary.get(UPnPDevice.UDN));
+ dictionary.put(UPnPDevice.UPC,"upc:adele-position");
+ dictionary.put(UPnPDevice.PRESENTATION_URL,"http://www.apache.org/~donsez/dev/osgi/upnpposition/readme.html");
+
+ if(parent!=null) {
+ dictionary.put(UPnPDevice.PARENT_UDN,parent.getUDN());
+ }
+
+ if(children!=null && children.size()!=0){
+ String[] childrenUDN=new String[children.size()];
+ Iterator iter=children.iterator();
+ for(int i=0;iter.hasNext();i++){
+ childrenUDN[i]=((AbstractUPnPDevice)iter.next()).getUDN();
+ }
+ dictionary.put(UPnPDevice.CHILDREN_UDN,childrenUDN);
+ }
+
+ }
+}
Propchange: incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/position/device/PositionDevice.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/position/impl/PositionSensorModelImpl.java
URL: http://svn.apache.org/viewvc/incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/position/impl/PositionSensorModelImpl.java?view=auto&rev=533875
==============================================================================
--- incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/position/impl/PositionSensorModelImpl.java (added)
+++ incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/position/impl/PositionSensorModelImpl.java Mon Apr 30 16:15:05 2007
@@ -0,0 +1,123 @@
+
+/*
+__BANNER__
+*/
+// this file was generated at 1-May-2007 12:59 AM by ${author}
+package org.apache.felix.upnp.devicegen.position.impl;
+
+import org.apache.felix.upnp.devicegen.holder.*;
+import org.apache.felix.upnp.devicegen.position.model.*;
+
+
+public class PositionSensorModelImpl implements PositionSensorModel {
+
+ /**
+ * This method is "add description here"
+ * currentLatitude out parameter
+
+ * currentLongitude out parameter
+
+ * currentAltitude out parameter
+
+ * currentSpeed out parameter
+
+ * currentTrack out parameter
+
+ * timestamp out parameter
+
+
+ */
+ public void getCurrentPosition(
+ FloatHolder currentLatitude,
+
+FloatHolder currentLongitude,
+
+FloatHolder currentAltitude,
+
+FloatHolder currentSpeed,
+
+FloatHolder currentTrack,
+
+DateHolder timestamp
+ ) {
+ // TODO
+
+ }
+
+
+ /**
+ * This method is "add description here"
+ * currentName out parameter
+
+
+ */
+ public void getName(
+ StringHolder currentName
+ ) {
+ // TODO
+
+ }
+
+
+ /**
+ * This method is "add description here"
+ * newName in parameter
+
+
+ */
+ public void setName(
+ java.lang.String newName
+ ) {
+ // TODO
+
+ }
+
+
+ /**
+ * This method is "add description here"
+ * method out parameter
+
+
+ */
+ public void getMethod(
+ StringHolder method
+ ) {
+ // TODO
+
+ }
+
+
+
+ // Those getters are used for the first notification just after a subscription
+
+ public java.lang.Float getCurrentLatitudeStateVariableValue(){
+ // TODO
+ return null;
+ }
+
+ public java.lang.Float getCurrentLongitudeStateVariableValue(){
+ // TODO
+ return null;
+ }
+
+ public java.lang.Float getCurrentAltitudeStateVariableValue(){
+ // TODO
+ return null;
+ }
+
+ public java.lang.Float getCurrentSpeedStateVariableValue(){
+ // TODO
+ return null;
+ }
+
+ public java.lang.Float getCurrentTrackStateVariableValue(){
+ // TODO
+ return null;
+ }
+
+ public java.util.Date getTimestampStateVariableValue(){
+ // TODO
+ return null;
+ }
+
+}
Propchange: incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/position/impl/PositionSensorModelImpl.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/position/model/PositionSensorModel.java
URL: http://svn.apache.org/viewvc/incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/position/model/PositionSensorModel.java?view=auto&rev=533875
==============================================================================
--- incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/position/model/PositionSensorModel.java (added)
+++ incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/position/model/PositionSensorModel.java Mon Apr 30 16:15:05 2007
@@ -0,0 +1,96 @@
+
+/*
+__BANNER__
+*/
+// this file was generated at 1-May-2007 12:59 AM by ${author}
+package org.apache.felix.upnp.devicegen.position.model;
+
+import org.apache.felix.upnp.devicegen.holder.*;
+
+
+public interface PositionSensorModel {
+
+ /**
+ * This method is "add description here"
+ * currentLatitude out parameter
+
+ * currentLongitude out parameter
+
+ * currentAltitude out parameter
+
+ * currentSpeed out parameter
+
+ * currentTrack out parameter
+
+ * timestamp out parameter
+
+
+ */
+ public void getCurrentPosition(
+ FloatHolder currentLatitude,
+
+FloatHolder currentLongitude,
+
+FloatHolder currentAltitude,
+
+FloatHolder currentSpeed,
+
+FloatHolder currentTrack,
+
+DateHolder timestamp
+ );
+ // TODO return the type of the return argument when specified
+
+
+ /**
+ * This method is "add description here"
+ * currentName out parameter
+
+
+ */
+ public void getName(
+ StringHolder currentName
+ );
+ // TODO return the type of the return argument when specified
+
+
+ /**
+ * This method is "add description here"
+ * newName in parameter
+
+
+ */
+ public void setName(
+ java.lang.String newName
+ );
+ // TODO return the type of the return argument when specified
+
+
+ /**
+ * This method is "add description here"
+ * method out parameter
+
+
+ */
+ public void getMethod(
+ StringHolder method
+ );
+ // TODO return the type of the return argument when specified
+
+
+
+ // Those getters are used for the first notification just after a subscription
+
+ public java.lang.Float getCurrentLatitudeStateVariableValue();
+
+ public java.lang.Float getCurrentLongitudeStateVariableValue();
+
+ public java.lang.Float getCurrentAltitudeStateVariableValue();
+
+ public java.lang.Float getCurrentSpeedStateVariableValue();
+
+ public java.lang.Float getCurrentTrackStateVariableValue();
+
+ public java.util.Date getTimestampStateVariableValue();
+
+}
Propchange: incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/position/model/PositionSensorModel.java
------------------------------------------------------------------------------
svn:eol-style = native