felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From don...@apache.org
Subject svn commit: r533875 [11/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...
Date Mon, 30 Apr 2007 23:15:18 GMT
Added: incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/hvac/service/HVAC_SetpointSchedule.java
URL: http://svn.apache.org/viewvc/incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/hvac/service/HVAC_SetpointSchedule.java?view=auto&rev=533875
==============================================================================
--- incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/hvac/service/HVAC_SetpointSchedule.java (added)
+++ incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/hvac/service/HVAC_SetpointSchedule.java Mon Apr 30 16:15:05 2007
@@ -0,0 +1,662 @@
+
+/*
+__BANNER__
+*/
+// this file was generated at 1-May-2007 12:59 AM by ${author}
+package org.apache.felix.upnp.devicegen.hvac.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.hvac.model.*;
+import org.apache.felix.upnp.devicegen.hvac.impl.*;
+
+	
+
+public class HVAC_SetpointSchedule extends AbstractUPnPService {
+	
+		
+	private HVAC_SetpointScheduleModel model;	
+		
+	/**
+	 * constructor
+	 */
+	public HVAC_SetpointSchedule(
+		UPnPDevice upnpDevice,
+		String serviceId,
+		String serviceType,
+		String version,
+		HVAC_SetpointScheduleModel model
+	){
+		super(	
+			upnpDevice,
+			serviceId,
+			serviceType,
+			version
+		);
+		this.model=model;
+	
+		
+	stateVariables=new HashMap();
+	
+
+	
+	stateVariables.put(
+		"A_ARG_TYPE_DayOfWeek",
+		new A_ARG_TYPE_DayOfWeekStateVariable(this,model)
+	);
+
+
+	
+	stateVariables.put(
+		"A_ARG_TYPE_EventName",
+		new A_ARG_TYPE_EventNameStateVariable(this,model)
+	);
+
+
+	
+	stateVariables.put(
+		"A_ARG_TYPE_StartTime",
+		new A_ARG_TYPE_StartTimeStateVariable(this,model)
+	);
+
+
+	
+	stateVariables.put(
+		"A_ARG_TYPE_HeatingSetpoint",
+		new A_ARG_TYPE_HeatingSetpointStateVariable(this,model)
+	);
+
+
+	
+	stateVariables.put(
+		"A_ARG_TYPE_CoolingSetpoint",
+		new A_ARG_TYPE_CoolingSetpointStateVariable(this,model)
+	);
+
+
+	
+	stateVariables.put(
+		"EventsPerDay",
+		new EventsPerDayStateVariable(this,model)
+	);
+
+	actions=new HashMap();
+	
+
+
+	actions.put(
+		"SetEventParameters",
+		new SetEventParametersAction(this,model)
+	);
+
+
+
+	actions.put(
+		"GetEventsPerDay",
+		new GetEventsPerDayAction(this,model)
+	);
+	
+	}
+
+	// UPnPStateVariable classes
+	
+	
+
+// class A_ARG_TYPE_DayOfWeekStateVariable
+public class A_ARG_TYPE_DayOfWeekStateVariable
+  extends AbstractUPnPStateVariable
+			
+	{
+
+	public final static String NAME="A_ARG_TYPE_DayOfWeek";
+	public final static String DATATYPE="string";
+	
+	// HERE specific state variable members
+	private HVAC_SetpointScheduleModel model;
+	
+	public A_ARG_TYPE_DayOfWeekStateVariable(
+		UPnPService upnpService,
+		HVAC_SetpointScheduleModel model
+	){	
+		super(
+					upnpService,
+					NAME,
+					DATATYPE,
+					null, // TODO defaultValue changed for All
+					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","Sun"));
+
+		allowedValueList.add(UPnPDataTypeUtil.instanciateObject("string","Mon"));
+
+		allowedValueList.add(UPnPDataTypeUtil.instanciateObject("string","Tue"));
+
+		allowedValueList.add(UPnPDataTypeUtil.instanciateObject("string","Wed"));
+
+		allowedValueList.add(UPnPDataTypeUtil.instanciateObject("string","Thu"));
+
+		allowedValueList.add(UPnPDataTypeUtil.instanciateObject("string","Fri"));
+
+		allowedValueList.add(UPnPDataTypeUtil.instanciateObject("string","Sat"));
+
+		allowedValueList.add(UPnPDataTypeUtil.instanciateObject("string","All"));
+
+		allowedValueList.add(UPnPDataTypeUtil.instanciateObject("string","Weekdays"));
+
+		allowedValueList.add(UPnPDataTypeUtil.instanciateObject("string","Weekend"));
+
+		allowedValueList.add(UPnPDataTypeUtil.instanciateObject("string","Standby"));
+
+		allowedValueList.add(UPnPDataTypeUtil.instanciateObject("string","*"));
+
+		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_EventNameStateVariable
+public class A_ARG_TYPE_EventNameStateVariable
+  extends AbstractUPnPStateVariable
+			
+	{
+
+	public final static String NAME="A_ARG_TYPE_EventName";
+	public final static String DATATYPE="string";
+	
+	// HERE specific state variable members
+	private HVAC_SetpointScheduleModel model;
+	
+	public A_ARG_TYPE_EventNameStateVariable(
+		UPnPService upnpService,
+		HVAC_SetpointScheduleModel model
+	){	
+		super(
+					upnpService,
+					NAME,
+					DATATYPE,
+					null, // TODO defaultValue changed for Home
+					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","Home"));
+
+		allowedValueList.add(UPnPDataTypeUtil.instanciateObject("string","Wake"));
+
+		allowedValueList.add(UPnPDataTypeUtil.instanciateObject("string","Sleep"));
+
+		allowedValueList.add(UPnPDataTypeUtil.instanciateObject("string","Away"));
+
+		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_StartTimeStateVariable
+public class A_ARG_TYPE_StartTimeStateVariable
+  extends AbstractUPnPStateVariable
+			
+	{
+
+	public final static String NAME="A_ARG_TYPE_StartTime";
+	public final static String DATATYPE="ui2";
+	
+	// HERE specific state variable members
+	private HVAC_SetpointScheduleModel model;
+	
+	public A_ARG_TYPE_StartTimeStateVariable(
+		UPnPService upnpService,
+		HVAC_SetpointScheduleModel model
+	){	
+		super(
+					upnpService,
+					NAME,
+					DATATYPE,
+					null, // TODO defaultValue changed for 0
+					null, // TODO step changed for 
+					null, // TODO step changed for 
+					null, // TODO minimum changed for 0
+					null, // TODO maximum changed for 1439
+					// 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_HeatingSetpointStateVariable
+public class A_ARG_TYPE_HeatingSetpointStateVariable
+  extends AbstractUPnPStateVariable
+			
+	{
+
+	public final static String NAME="A_ARG_TYPE_HeatingSetpoint";
+	public final static String DATATYPE="i4";
+	
+	// HERE specific state variable members
+	private HVAC_SetpointScheduleModel model;
+	
+	public A_ARG_TYPE_HeatingSetpointStateVariable(
+		UPnPService upnpService,
+		HVAC_SetpointScheduleModel model
+	){	
+		super(
+					upnpService,
+					NAME,
+					DATATYPE,
+					null, // TODO defaultValue changed for 1500
+					null, // TODO step changed for 
+					null, // TODO step changed for 
+					null, // TODO minimum changed for 0
+					null, // TODO maximum changed for 3500
+					// 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_CoolingSetpointStateVariable
+public class A_ARG_TYPE_CoolingSetpointStateVariable
+  extends AbstractUPnPStateVariable
+			
+	{
+
+	public final static String NAME="A_ARG_TYPE_CoolingSetpoint";
+	public final static String DATATYPE="i4";
+	
+	// HERE specific state variable members
+	private HVAC_SetpointScheduleModel model;
+	
+	public A_ARG_TYPE_CoolingSetpointStateVariable(
+		UPnPService upnpService,
+		HVAC_SetpointScheduleModel model
+	){	
+		super(
+					upnpService,
+					NAME,
+					DATATYPE,
+					null, // TODO defaultValue changed for 2500
+					null, // TODO step changed for 
+					null, // TODO step changed for 
+					null, // TODO minimum changed for 0
+					null, // TODO maximum changed for 3500
+					// 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 EventsPerDayStateVariable
+public class EventsPerDayStateVariable
+  extends AbstractUPnPStateVariable
+			
+	  implements UPnPStateVariableDescriptor{
+
+	public final static String NAME="EventsPerDay";
+	public final static String DATATYPE="string";
+	
+	// HERE specific state variable members
+	private HVAC_SetpointScheduleModel model;
+	
+	public EventsPerDayStateVariable(
+		UPnPService upnpService,
+		HVAC_SetpointScheduleModel 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.getEventsPerDayStateVariableValue();
+		
+	}
+};
+	
+
+	// UPnPAction classes
+	
+	
+
+public class SetEventParametersAction extends AbstractUPnPAction {
+
+	HVAC_SetpointScheduleModel model;
+	
+	// HERE specific action members
+	
+	public SetEventParametersAction(
+	    UPnPService upnpService,
+		HVAC_SetpointScheduleModel model
+	){
+		super(
+			upnpService,
+			"SetEventParameters",
+			""
+		);
+		this.model=model;
+		
+			addInArg(
+				"SubmittedDayOfWeek",
+				upnpService.getStateVariable("A_ARG_TYPE_DayOfWeek")
+			);
+		
+			addInArg(
+				"SubmittedEventName",
+				upnpService.getStateVariable("A_ARG_TYPE_EventName")
+			);
+		
+			addInArg(
+				"NewStartTime",
+				upnpService.getStateVariable("A_ARG_TYPE_StartTime")
+			);
+		
+			addInArg(
+				"NewHeatingSetpoint",
+				upnpService.getStateVariable("A_ARG_TYPE_HeatingSetpoint")
+			);
+		
+			addInArg(
+				"NewCoolingSetpoint",
+				upnpService.getStateVariable("A_ARG_TYPE_CoolingSetpoint")
+			);
+		
+	}
+
+	/**
+	 * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+	 */
+	public Dictionary invoke(Dictionary _args) throws Exception {
+
+	java.lang.String submittedDayOfWeek = (java.lang.String) _args.get("SubmittedDayOfWeek");
+		java.lang.String submittedEventName = (java.lang.String) _args.get("SubmittedEventName");
+		java.lang.Integer newStartTime = (java.lang.Integer) _args.get("NewStartTime");
+		java.lang.Integer newHeatingSetpoint = (java.lang.Integer) _args.get("NewHeatingSetpoint");
+		java.lang.Integer newCoolingSetpoint = (java.lang.Integer) _args.get("NewCoolingSetpoint");
+		
+
+		// invoke model
+		
+		 model.setEventParameters(
+			StringHolder.toValue(
+			submittedDayOfWeek)
+		,
+
+StringHolder.toValue(
+			submittedEventName)
+		,
+
+IntegerHolder.toValue(
+			newStartTime)
+		,
+
+IntegerHolder.toValue(
+			newHeatingSetpoint)
+		,
+
+IntegerHolder.toValue(
+			newCoolingSetpoint)
+		
+		 );
+		
+		// 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 GetEventsPerDayAction extends AbstractUPnPAction {
+
+	HVAC_SetpointScheduleModel model;
+	
+	// HERE specific action members
+	
+	public GetEventsPerDayAction(
+	    UPnPService upnpService,
+		HVAC_SetpointScheduleModel model
+	){
+		super(
+			upnpService,
+			"GetEventsPerDay",
+			""
+		);
+		this.model=model;
+		
+			addInArg(
+				"SubmittedDayOfWeek",
+				upnpService.getStateVariable("A_ARG_TYPE_DayOfWeek")
+			);
+		
+			addOutArg(
+				"CurrentEventsPerDay",
+				upnpService.getStateVariable("EventsPerDay")
+			);
+		
+	}
+
+	/**
+	 * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+	 */
+	public Dictionary invoke(Dictionary _args) throws Exception {
+
+	java.lang.String submittedDayOfWeek = (java.lang.String) _args.get("SubmittedDayOfWeek");
+		StringHolder currentEventsPerDay = new StringHolder();
+		
+
+		// invoke model
+		
+		 model.getEventsPerDay(
+			StringHolder.toValue(
+			submittedDayOfWeek)
+		,
+
+currentEventsPerDay
+		 );
+		
+		// build returned Dictionary		
+		Dictionary _result = new Hashtable();
+		
+			_result.put("CurrentEventsPerDay",currentEventsPerDay.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/hvac/service/HVAC_SetpointSchedule.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/hvac/service/HVAC_UserOperatingMode.java
URL: http://svn.apache.org/viewvc/incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/hvac/service/HVAC_UserOperatingMode.java?view=auto&rev=533875
==============================================================================
--- incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/hvac/service/HVAC_UserOperatingMode.java (added)
+++ incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/hvac/service/HVAC_UserOperatingMode.java Mon Apr 30 16:15:05 2007
@@ -0,0 +1,635 @@
+
+/*
+__BANNER__
+*/
+// this file was generated at 1-May-2007 12:59 AM by ${author}
+package org.apache.felix.upnp.devicegen.hvac.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.hvac.model.*;
+import org.apache.felix.upnp.devicegen.hvac.impl.*;
+
+	
+
+public class HVAC_UserOperatingMode extends AbstractUPnPService {
+	
+		
+	private HVAC_UserOperatingModeModel model;	
+		
+	/**
+	 * constructor
+	 */
+	public HVAC_UserOperatingMode(
+		UPnPDevice upnpDevice,
+		String serviceId,
+		String serviceType,
+		String version,
+		HVAC_UserOperatingModeModel model
+	){
+		super(	
+			upnpDevice,
+			serviceId,
+			serviceType,
+			version
+		);
+		this.model=model;
+	
+		
+	stateVariables=new HashMap();
+	
+
+	
+	stateVariables.put(
+		"ModeTarget",
+		new ModeTargetStateVariable(this,model)
+	);
+
+
+	
+	stateVariables.put(
+		"ModeStatus",
+		new ModeStatusStateVariable(this,model)
+	);
+
+
+	
+	stateVariables.put(
+		"Name",
+		new NameStateVariable(this,model)
+	);
+
+	actions=new HashMap();
+	
+
+
+	actions.put(
+		"SetModeTarget",
+		new SetModeTargetAction(this,model)
+	);
+
+
+
+	actions.put(
+		"GetModeTarget",
+		new GetModeTargetAction(this,model)
+	);
+
+
+
+	actions.put(
+		"GetModeStatus",
+		new GetModeStatusAction(this,model)
+	);
+
+
+
+	actions.put(
+		"GetName",
+		new GetNameAction(this,model)
+	);
+
+
+
+	actions.put(
+		"SetName",
+		new SetNameAction(this,model)
+	);
+	
+	}
+
+	// UPnPStateVariable classes
+	
+	
+
+// class ModeTargetStateVariable
+public class ModeTargetStateVariable
+  extends AbstractUPnPStateVariable
+			
+	  implements UPnPStateVariableDescriptor{
+
+	public final static String NAME="ModeTarget";
+	public final static String DATATYPE="string";
+	
+	// HERE specific state variable members
+	private HVAC_UserOperatingModeModel model;
+	
+	public ModeTargetStateVariable(
+		UPnPService upnpService,
+		HVAC_UserOperatingModeModel model
+	){	
+		super(
+					upnpService,
+					NAME,
+					DATATYPE,
+					null, // TODO defaultValue changed for Off
+					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;
+
+		
+	/*
+		List allowedValueList=new LinkedList();
+		
+		allowedValueList.add(UPnPDataTypeUtil.instanciateObject("string","Off"));
+
+		allowedValueList.add(UPnPDataTypeUtil.instanciateObject("string","HeatOn"));
+
+		allowedValueList.add(UPnPDataTypeUtil.instanciateObject("string","CoolOn"));
+
+		allowedValueList.add(UPnPDataTypeUtil.instanciateObject("string","AutoChangeOver"));
+
+		allowedValueList.add(UPnPDataTypeUtil.instanciateObject("string","AuxHeatOn"));
+
+		allowedValueList.add(UPnPDataTypeUtil.instanciateObject("string","EconomyHeatOn"));
+
+		allowedValueList.add(UPnPDataTypeUtil.instanciateObject("string","EmergencyHeatOn"));
+
+		allowedValueList.add(UPnPDataTypeUtil.instanciateObject("string","AuxCoolOn"));
+
+		allowedValueList.add(UPnPDataTypeUtil.instanciateObject("string","EconomyCoolOn"));
+
+		allowedValueList.add(UPnPDataTypeUtil.instanciateObject("string","BuildingProtection"));
+
+		allowedValueList.add(UPnPDataTypeUtil.instanciateObject("string","EnergySavingsMode"));
+
+		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 model.getModeTargetStateVariableValue();
+		
+	}
+};
+
+
+// class ModeStatusStateVariable
+public class ModeStatusStateVariable
+  extends AbstractUPnPStateVariable
+			
+	  implements UPnPStateVariableDescriptor{
+
+	public final static String NAME="ModeStatus";
+	public final static String DATATYPE="string";
+	
+	// HERE specific state variable members
+	private HVAC_UserOperatingModeModel model;
+	
+	public ModeStatusStateVariable(
+		UPnPService upnpService,
+		HVAC_UserOperatingModeModel model
+	){	
+		super(
+					upnpService,
+					NAME,
+					DATATYPE,
+					null, // TODO defaultValue changed for Off
+					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;
+
+		
+	/*
+		List allowedValueList=new LinkedList();
+		
+		allowedValueList.add(UPnPDataTypeUtil.instanciateObject("string","Off"));
+
+		allowedValueList.add(UPnPDataTypeUtil.instanciateObject("string","InDeadBand"));
+
+		allowedValueList.add(UPnPDataTypeUtil.instanciateObject("string","HeatOn"));
+
+		allowedValueList.add(UPnPDataTypeUtil.instanciateObject("string","CoolOn"));
+
+		allowedValueList.add(UPnPDataTypeUtil.instanciateObject("string","AutoChangeOver"));
+
+		allowedValueList.add(UPnPDataTypeUtil.instanciateObject("string","AuxHeatOn"));
+
+		allowedValueList.add(UPnPDataTypeUtil.instanciateObject("string","EconomyHeatOn"));
+
+		allowedValueList.add(UPnPDataTypeUtil.instanciateObject("string","EmergencyHeatOn"));
+
+		allowedValueList.add(UPnPDataTypeUtil.instanciateObject("string","AuxCoolOn"));
+
+		allowedValueList.add(UPnPDataTypeUtil.instanciateObject("string","EconomyCoolOn"));
+
+		allowedValueList.add(UPnPDataTypeUtil.instanciateObject("string","BuildingProtection"));
+
+		allowedValueList.add(UPnPDataTypeUtil.instanciateObject("string","EnergySavingsHeating"));
+
+		allowedValueList.add(UPnPDataTypeUtil.instanciateObject("string","EnergySavingsCooling"));
+
+		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 model.getModeStatusStateVariableValue();
+		
+	}
+};
+
+
+// class NameStateVariable
+public class NameStateVariable
+  extends AbstractUPnPStateVariable
+			
+	  implements UPnPStateVariableDescriptor{
+
+	public final static String NAME="Name";
+	public final static String DATATYPE="string";
+	
+	// HERE specific state variable members
+	private HVAC_UserOperatingModeModel model;
+	
+	public NameStateVariable(
+		UPnPService upnpService,
+		HVAC_UserOperatingModeModel 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.getNameStateVariableValue();
+		
+	}
+};
+	
+
+	// UPnPAction classes
+	
+	
+
+public class SetModeTargetAction extends AbstractUPnPAction {
+
+	HVAC_UserOperatingModeModel model;
+	
+	// HERE specific action members
+	
+	public SetModeTargetAction(
+	    UPnPService upnpService,
+		HVAC_UserOperatingModeModel model
+	){
+		super(
+			upnpService,
+			"SetModeTarget",
+			""
+		);
+		this.model=model;
+		
+			addInArg(
+				"NewModeTarget",
+				upnpService.getStateVariable("ModeTarget")
+			);
+		
+	}
+
+	/**
+	 * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+	 */
+	public Dictionary invoke(Dictionary _args) throws Exception {
+
+	java.lang.String newModeTarget = (java.lang.String) _args.get("NewModeTarget");
+		
+
+		// invoke model
+		
+		 model.setModeTarget(
+			StringHolder.toValue(
+			newModeTarget)
+		
+		 );
+		
+		// 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 GetModeTargetAction extends AbstractUPnPAction {
+
+	HVAC_UserOperatingModeModel model;
+	
+	// HERE specific action members
+	
+	public GetModeTargetAction(
+	    UPnPService upnpService,
+		HVAC_UserOperatingModeModel model
+	){
+		super(
+			upnpService,
+			"GetModeTarget",
+			""
+		);
+		this.model=model;
+		
+			addOutArg(
+				"CurrentModeTarget",
+				upnpService.getStateVariable("ModeTarget")
+			);
+		
+	}
+
+	/**
+	 * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+	 */
+	public Dictionary invoke(Dictionary _args) throws Exception {
+
+	StringHolder currentModeTarget = new StringHolder();
+		
+
+		// invoke model
+		
+		 model.getModeTarget(
+			currentModeTarget
+		 );
+		
+		// build returned Dictionary		
+		Dictionary _result = new Hashtable();
+		
+			_result.put("CurrentModeTarget",currentModeTarget.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 GetModeStatusAction extends AbstractUPnPAction {
+
+	HVAC_UserOperatingModeModel model;
+	
+	// HERE specific action members
+	
+	public GetModeStatusAction(
+	    UPnPService upnpService,
+		HVAC_UserOperatingModeModel model
+	){
+		super(
+			upnpService,
+			"GetModeStatus",
+			""
+		);
+		this.model=model;
+		
+			addOutArg(
+				"CurrentModeStatus",
+				upnpService.getStateVariable("ModeStatus")
+			);
+		
+	}
+
+	/**
+	 * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+	 */
+	public Dictionary invoke(Dictionary _args) throws Exception {
+
+	StringHolder currentModeStatus = new StringHolder();
+		
+
+		// invoke model
+		
+		 model.getModeStatus(
+			currentModeStatus
+		 );
+		
+		// build returned Dictionary		
+		Dictionary _result = new Hashtable();
+		
+			_result.put("CurrentModeStatus",currentModeStatus.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 GetNameAction extends AbstractUPnPAction {
+
+	HVAC_UserOperatingModeModel model;
+	
+	// HERE specific action members
+	
+	public GetNameAction(
+	    UPnPService upnpService,
+		HVAC_UserOperatingModeModel model
+	){
+		super(
+			upnpService,
+			"GetName",
+			""
+		);
+		this.model=model;
+		
+			addOutArg(
+				"CurrentName",
+				upnpService.getStateVariable("Name")
+			);
+		
+	}
+
+	/**
+	 * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+	 */
+	public Dictionary invoke(Dictionary _args) throws Exception {
+
+	StringHolder currentName = new StringHolder();
+		
+
+		// invoke model
+		
+		 model.getName(
+			currentName
+		 );
+		
+		// build returned Dictionary		
+		Dictionary _result = new Hashtable();
+		
+			_result.put("CurrentName",currentName.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 SetNameAction extends AbstractUPnPAction {
+
+	HVAC_UserOperatingModeModel model;
+	
+	// HERE specific action members
+	
+	public SetNameAction(
+	    UPnPService upnpService,
+		HVAC_UserOperatingModeModel model
+	){
+		super(
+			upnpService,
+			"SetName",
+			""
+		);
+		this.model=model;
+		
+			addInArg(
+				"NewName",
+				upnpService.getStateVariable("Name")
+			);
+		
+	}
+
+	/**
+	 * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+	 */
+	public Dictionary invoke(Dictionary _args) throws Exception {
+
+	java.lang.String newName = (java.lang.String) _args.get("NewName");
+		
+
+		// invoke model
+		
+		 model.setName(
+			StringHolder.toValue(
+			newName)
+		
+		 );
+		
+		// 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
+	}
+};
+	
+}

Propchange: incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/hvac/service/HVAC_UserOperatingMode.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/hvac/service/TemperatureSensor.java
URL: http://svn.apache.org/viewvc/incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/hvac/service/TemperatureSensor.java?view=auto&rev=533875
==============================================================================
--- incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/hvac/service/TemperatureSensor.java (added)
+++ incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/hvac/service/TemperatureSensor.java Mon Apr 30 16:15:05 2007
@@ -0,0 +1,589 @@
+
+/*
+__BANNER__
+*/
+// this file was generated at 1-May-2007 12:59 AM by ${author}
+package org.apache.felix.upnp.devicegen.hvac.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.hvac.model.*;
+import org.apache.felix.upnp.devicegen.hvac.impl.*;
+
+	
+
+public class TemperatureSensor extends AbstractUPnPService {
+	
+		
+	private TemperatureSensorModel model;	
+		
+	/**
+	 * constructor
+	 */
+	public TemperatureSensor(
+		UPnPDevice upnpDevice,
+		String serviceId,
+		String serviceType,
+		String version,
+		TemperatureSensorModel model
+	){
+		super(	
+			upnpDevice,
+			serviceId,
+			serviceType,
+			version
+		);
+		this.model=model;
+	
+		
+	stateVariables=new HashMap();
+	
+
+	
+	stateVariables.put(
+		"CurrentTemperature",
+		new CurrentTemperatureStateVariable(this,model)
+	);
+
+
+	
+	stateVariables.put(
+		"Application",
+		new ApplicationStateVariable(this,model)
+	);
+
+
+	
+	stateVariables.put(
+		"Name",
+		new NameStateVariable(this,model)
+	);
+
+	actions=new HashMap();
+	
+
+
+	actions.put(
+		"GetApplication",
+		new GetApplicationAction(this,model)
+	);
+
+
+
+	actions.put(
+		"SetApplication",
+		new SetApplicationAction(this,model)
+	);
+
+
+
+	actions.put(
+		"GetCurrentTemperature",
+		new GetCurrentTemperatureAction(this,model)
+	);
+
+
+
+	actions.put(
+		"GetName",
+		new GetNameAction(this,model)
+	);
+
+
+
+	actions.put(
+		"SetName",
+		new SetNameAction(this,model)
+	);
+	
+	}
+
+	// UPnPStateVariable classes
+	
+	
+
+// class CurrentTemperatureStateVariable
+public class CurrentTemperatureStateVariable
+  extends AbstractUPnPStateVariable
+			
+	  implements UPnPStateVariableDescriptor{
+
+	public final static String NAME="CurrentTemperature";
+	public final static String DATATYPE="i4";
+	
+	// HERE specific state variable members
+	private TemperatureSensorModel model;
+	
+	public CurrentTemperatureStateVariable(
+		UPnPService upnpService,
+		TemperatureSensorModel model
+	){	
+		super(
+					upnpService,
+					NAME,
+					DATATYPE,
+					null, // TODO defaultValue changed for 2000
+					null, // TODO step changed for 
+					null, // TODO step changed for 
+					null, // TODO minimum changed for 0
+					null, // TODO maximum changed for 4000
+					// 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.getCurrentTemperatureStateVariableValue();
+		
+	}
+};
+
+
+// class ApplicationStateVariable
+public class ApplicationStateVariable
+  extends AbstractUPnPStateVariable
+			
+	  implements UPnPStateVariableDescriptor{
+
+	public final static String NAME="Application";
+	public final static String DATATYPE="string";
+	
+	// HERE specific state variable members
+	private TemperatureSensorModel model;
+	
+	public ApplicationStateVariable(
+		UPnPService upnpService,
+		TemperatureSensorModel model
+	){	
+		super(
+					upnpService,
+					NAME,
+					DATATYPE,
+					null, // TODO defaultValue changed for Room
+					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;
+
+		
+	/*
+		List allowedValueList=new LinkedList();
+		
+		allowedValueList.add(UPnPDataTypeUtil.instanciateObject("string","Room"));
+
+		allowedValueList.add(UPnPDataTypeUtil.instanciateObject("string","Outdoor"));
+
+		allowedValueList.add(UPnPDataTypeUtil.instanciateObject("string","Pipe"));
+
+		allowedValueList.add(UPnPDataTypeUtil.instanciateObject("string","AirDuct"));
+
+		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 model.getApplicationStateVariableValue();
+		
+	}
+};
+
+
+// class NameStateVariable
+public class NameStateVariable
+  extends AbstractUPnPStateVariable
+			
+	  implements UPnPStateVariableDescriptor{
+
+	public final static String NAME="Name";
+	public final static String DATATYPE="string";
+	
+	// HERE specific state variable members
+	private TemperatureSensorModel model;
+	
+	public NameStateVariable(
+		UPnPService upnpService,
+		TemperatureSensorModel 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.getNameStateVariableValue();
+		
+	}
+};
+	
+
+	// UPnPAction classes
+	
+	
+
+public class GetApplicationAction extends AbstractUPnPAction {
+
+	TemperatureSensorModel model;
+	
+	// HERE specific action members
+	
+	public GetApplicationAction(
+	    UPnPService upnpService,
+		TemperatureSensorModel model
+	){
+		super(
+			upnpService,
+			"GetApplication",
+			""
+		);
+		this.model=model;
+		
+			addOutArg(
+				"CurrentApplication",
+				upnpService.getStateVariable("Application")
+			);
+		
+	}
+
+	/**
+	 * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+	 */
+	public Dictionary invoke(Dictionary _args) throws Exception {
+
+	StringHolder currentApplication = new StringHolder();
+		
+
+		// invoke model
+		
+		 model.getApplication(
+			currentApplication
+		 );
+		
+		// build returned Dictionary		
+		Dictionary _result = new Hashtable();
+		
+			_result.put("CurrentApplication",currentApplication.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 SetApplicationAction extends AbstractUPnPAction {
+
+	TemperatureSensorModel model;
+	
+	// HERE specific action members
+	
+	public SetApplicationAction(
+	    UPnPService upnpService,
+		TemperatureSensorModel model
+	){
+		super(
+			upnpService,
+			"SetApplication",
+			""
+		);
+		this.model=model;
+		
+			addInArg(
+				"NewApplication",
+				upnpService.getStateVariable("Application")
+			);
+		
+	}
+
+	/**
+	 * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+	 */
+	public Dictionary invoke(Dictionary _args) throws Exception {
+
+	java.lang.String newApplication = (java.lang.String) _args.get("NewApplication");
+		
+
+		// invoke model
+		
+		 model.setApplication(
+			StringHolder.toValue(
+			newApplication)
+		
+		 );
+		
+		// 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 GetCurrentTemperatureAction extends AbstractUPnPAction {
+
+	TemperatureSensorModel model;
+	
+	// HERE specific action members
+	
+	public GetCurrentTemperatureAction(
+	    UPnPService upnpService,
+		TemperatureSensorModel model
+	){
+		super(
+			upnpService,
+			"GetCurrentTemperature",
+			""
+		);
+		this.model=model;
+		
+			addOutArg(
+				"CurrentTemp",
+				upnpService.getStateVariable("CurrentTemperature")
+			);
+		
+	}
+
+	/**
+	 * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+	 */
+	public Dictionary invoke(Dictionary _args) throws Exception {
+
+	IntegerHolder currentTemp = new IntegerHolder();
+		
+
+		// invoke model
+		
+		 model.getCurrentTemperature(
+			currentTemp
+		 );
+		
+		// build returned Dictionary		
+		Dictionary _result = new Hashtable();
+		
+			_result.put("CurrentTemp",currentTemp.getObject());
+			// java.lang.Integer
+		return _result.isEmpty()?null:_result;
+	}
+
+
+	public void start(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+	
+	public void stop(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+};
+
+
+public class GetNameAction extends AbstractUPnPAction {
+
+	TemperatureSensorModel model;
+	
+	// HERE specific action members
+	
+	public GetNameAction(
+	    UPnPService upnpService,
+		TemperatureSensorModel model
+	){
+		super(
+			upnpService,
+			"GetName",
+			""
+		);
+		this.model=model;
+		
+			addOutArg(
+				"CurrentName",
+				upnpService.getStateVariable("Name")
+			);
+		
+	}
+
+	/**
+	 * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+	 */
+	public Dictionary invoke(Dictionary _args) throws Exception {
+
+	StringHolder currentName = new StringHolder();
+		
+
+		// invoke model
+		
+		 model.getName(
+			currentName
+		 );
+		
+		// build returned Dictionary		
+		Dictionary _result = new Hashtable();
+		
+			_result.put("CurrentName",currentName.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 SetNameAction extends AbstractUPnPAction {
+
+	TemperatureSensorModel model;
+	
+	// HERE specific action members
+	
+	public SetNameAction(
+	    UPnPService upnpService,
+		TemperatureSensorModel model
+	){
+		super(
+			upnpService,
+			"SetName",
+			""
+		);
+		this.model=model;
+		
+			addInArg(
+				"NewName",
+				upnpService.getStateVariable("Name")
+			);
+		
+	}
+
+	/**
+	 * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+	 */
+	public Dictionary invoke(Dictionary _args) throws Exception {
+
+	java.lang.String newName = (java.lang.String) _args.get("NewName");
+		
+
+		// invoke model
+		
+		 model.setName(
+			StringHolder.toValue(
+			newName)
+		
+		 );
+		
+		// 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
+	}
+};
+	
+}

Propchange: incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/hvac/service/TemperatureSensor.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/hvac/service/TemperatureSetpoint.java
URL: http://svn.apache.org/viewvc/incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/hvac/service/TemperatureSetpoint.java?view=auto&rev=533875
==============================================================================
--- incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/hvac/service/TemperatureSetpoint.java (added)
+++ incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/hvac/service/TemperatureSetpoint.java Mon Apr 30 16:15:05 2007
@@ -0,0 +1,768 @@
+
+/*
+__BANNER__
+*/
+// this file was generated at 1-May-2007 12:59 AM by ${author}
+package org.apache.felix.upnp.devicegen.hvac.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.hvac.model.*;
+import org.apache.felix.upnp.devicegen.hvac.impl.*;
+
+	
+
+public class TemperatureSetpoint extends AbstractUPnPService {
+	
+		
+	private TemperatureSetpointModel model;	
+		
+	/**
+	 * constructor
+	 */
+	public TemperatureSetpoint(
+		UPnPDevice upnpDevice,
+		String serviceId,
+		String serviceType,
+		String version,
+		TemperatureSetpointModel model
+	){
+		super(	
+			upnpDevice,
+			serviceId,
+			serviceType,
+			version
+		);
+		this.model=model;
+	
+		
+	stateVariables=new HashMap();
+	
+
+	
+	stateVariables.put(
+		"Application",
+		new ApplicationStateVariable(this,model)
+	);
+
+
+	
+	stateVariables.put(
+		"CurrentSetpoint",
+		new CurrentSetpointStateVariable(this,model)
+	);
+
+
+	
+	stateVariables.put(
+		"SetpointAchieved",
+		new SetpointAchievedStateVariable(this,model)
+	);
+
+
+	
+	stateVariables.put(
+		"Name",
+		new NameStateVariable(this,model)
+	);
+
+	actions=new HashMap();
+	
+
+
+	actions.put(
+		"GetApplication",
+		new GetApplicationAction(this,model)
+	);
+
+
+
+	actions.put(
+		"SetApplication",
+		new SetApplicationAction(this,model)
+	);
+
+
+
+	actions.put(
+		"SetCurrentSetpoint",
+		new SetCurrentSetpointAction(this,model)
+	);
+
+
+
+	actions.put(
+		"GetCurrentSetpoint",
+		new GetCurrentSetpointAction(this,model)
+	);
+
+
+
+	actions.put(
+		"GetSetpointAchieved",
+		new GetSetpointAchievedAction(this,model)
+	);
+
+
+
+	actions.put(
+		"GetName",
+		new GetNameAction(this,model)
+	);
+
+
+
+	actions.put(
+		"SetName",
+		new SetNameAction(this,model)
+	);
+	
+	}
+
+	// UPnPStateVariable classes
+	
+	
+
+// class ApplicationStateVariable
+public class ApplicationStateVariable
+  extends AbstractUPnPStateVariable
+			
+	  implements UPnPStateVariableDescriptor{
+
+	public final static String NAME="Application";
+	public final static String DATATYPE="string";
+	
+	// HERE specific state variable members
+	private TemperatureSetpointModel model;
+	
+	public ApplicationStateVariable(
+		UPnPService upnpService,
+		TemperatureSetpointModel 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.getApplicationStateVariableValue();
+		
+	}
+};
+
+
+// class CurrentSetpointStateVariable
+public class CurrentSetpointStateVariable
+  extends AbstractUPnPStateVariable
+			
+	  implements UPnPStateVariableDescriptor{
+
+	public final static String NAME="CurrentSetpoint";
+	public final static String DATATYPE="i4";
+	
+	// HERE specific state variable members
+	private TemperatureSetpointModel model;
+	
+	public CurrentSetpointStateVariable(
+		UPnPService upnpService,
+		TemperatureSetpointModel 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.getCurrentSetpointStateVariableValue();
+		
+	}
+};
+
+
+// class SetpointAchievedStateVariable
+public class SetpointAchievedStateVariable
+  extends AbstractUPnPStateVariable
+			
+	  implements UPnPStateVariableDescriptor{
+
+	public final static String NAME="SetpointAchieved";
+	public final static String DATATYPE="boolean";
+	
+	// HERE specific state variable members
+	private TemperatureSetpointModel model;
+	
+	public SetpointAchievedStateVariable(
+		UPnPService upnpService,
+		TemperatureSetpointModel model
+	){	
+		super(
+					upnpService,
+					NAME,
+					DATATYPE,
+					null, // TODO defaultValue changed for 0
+					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.getSetpointAchievedStateVariableValue();
+		
+	}
+};
+
+
+// class NameStateVariable
+public class NameStateVariable
+  extends AbstractUPnPStateVariable
+			
+	  implements UPnPStateVariableDescriptor{
+
+	public final static String NAME="Name";
+	public final static String DATATYPE="string";
+	
+	// HERE specific state variable members
+	private TemperatureSetpointModel model;
+	
+	public NameStateVariable(
+		UPnPService upnpService,
+		TemperatureSetpointModel 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.getNameStateVariableValue();
+		
+	}
+};
+	
+
+	// UPnPAction classes
+	
+	
+
+public class GetApplicationAction extends AbstractUPnPAction {
+
+	TemperatureSetpointModel model;
+	
+	// HERE specific action members
+	
+	public GetApplicationAction(
+	    UPnPService upnpService,
+		TemperatureSetpointModel model
+	){
+		super(
+			upnpService,
+			"GetApplication",
+			""
+		);
+		this.model=model;
+		
+			addOutArg(
+				"CurrentApplication",
+				upnpService.getStateVariable("Application")
+			);
+		
+	}
+
+	/**
+	 * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+	 */
+	public Dictionary invoke(Dictionary _args) throws Exception {
+
+	StringHolder currentApplication = new StringHolder();
+		
+
+		// invoke model
+		
+		 model.getApplication(
+			currentApplication
+		 );
+		
+		// build returned Dictionary		
+		Dictionary _result = new Hashtable();
+		
+			_result.put("CurrentApplication",currentApplication.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 SetApplicationAction extends AbstractUPnPAction {
+
+	TemperatureSetpointModel model;
+	
+	// HERE specific action members
+	
+	public SetApplicationAction(
+	    UPnPService upnpService,
+		TemperatureSetpointModel model
+	){
+		super(
+			upnpService,
+			"SetApplication",
+			""
+		);
+		this.model=model;
+		
+			addInArg(
+				"NewApplication",
+				upnpService.getStateVariable("Application")
+			);
+		
+	}
+
+	/**
+	 * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+	 */
+	public Dictionary invoke(Dictionary _args) throws Exception {
+
+	java.lang.String newApplication = (java.lang.String) _args.get("NewApplication");
+		
+
+		// invoke model
+		
+		 model.setApplication(
+			StringHolder.toValue(
+			newApplication)
+		
+		 );
+		
+		// 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 SetCurrentSetpointAction extends AbstractUPnPAction {
+
+	TemperatureSetpointModel model;
+	
+	// HERE specific action members
+	
+	public SetCurrentSetpointAction(
+	    UPnPService upnpService,
+		TemperatureSetpointModel model
+	){
+		super(
+			upnpService,
+			"SetCurrentSetpoint",
+			""
+		);
+		this.model=model;
+		
+			addInArg(
+				"NewCurrentSetpoint",
+				upnpService.getStateVariable("CurrentSetpoint")
+			);
+		
+	}
+
+	/**
+	 * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+	 */
+	public Dictionary invoke(Dictionary _args) throws Exception {
+
+	java.lang.Integer newCurrentSetpoint = (java.lang.Integer) _args.get("NewCurrentSetpoint");
+		
+
+		// invoke model
+		
+		 model.setCurrentSetpoint(
+			IntegerHolder.toValue(
+			newCurrentSetpoint)
+		
+		 );
+		
+		// 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 GetCurrentSetpointAction extends AbstractUPnPAction {
+
+	TemperatureSetpointModel model;
+	
+	// HERE specific action members
+	
+	public GetCurrentSetpointAction(
+	    UPnPService upnpService,
+		TemperatureSetpointModel model
+	){
+		super(
+			upnpService,
+			"GetCurrentSetpoint",
+			""
+		);
+		this.model=model;
+		
+			addOutArg(
+				"CurrentSP",
+				upnpService.getStateVariable("CurrentSetpoint")
+			);
+		
+	}
+
+	/**
+	 * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+	 */
+	public Dictionary invoke(Dictionary _args) throws Exception {
+
+	IntegerHolder currentSP = new IntegerHolder();
+		
+
+		// invoke model
+		
+		 model.getCurrentSetpoint(
+			currentSP
+		 );
+		
+		// build returned Dictionary		
+		Dictionary _result = new Hashtable();
+		
+			_result.put("CurrentSP",currentSP.getObject());
+			// java.lang.Integer
+		return _result.isEmpty()?null:_result;
+	}
+
+
+	public void start(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+	
+	public void stop(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+};
+
+
+public class GetSetpointAchievedAction extends AbstractUPnPAction {
+
+	TemperatureSetpointModel model;
+	
+	// HERE specific action members
+	
+	public GetSetpointAchievedAction(
+	    UPnPService upnpService,
+		TemperatureSetpointModel model
+	){
+		super(
+			upnpService,
+			"GetSetpointAchieved",
+			""
+		);
+		this.model=model;
+		
+			addOutArg(
+				"CurrentSPA",
+				upnpService.getStateVariable("SetpointAchieved")
+			);
+		
+	}
+
+	/**
+	 * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+	 */
+	public Dictionary invoke(Dictionary _args) throws Exception {
+
+	BooleanHolder currentSPA = new BooleanHolder();
+		
+
+		// invoke model
+		
+		 model.getSetpointAchieved(
+			currentSPA
+		 );
+		
+		// build returned Dictionary		
+		Dictionary _result = new Hashtable();
+		
+			_result.put("CurrentSPA",currentSPA.getObject());
+			// java.lang.Boolean
+		return _result.isEmpty()?null:_result;
+	}
+
+
+	public void start(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+	
+	public void stop(BundleContext bundleContext) throws Exception {
+		// TODO
+	}
+};
+
+
+public class GetNameAction extends AbstractUPnPAction {
+
+	TemperatureSetpointModel model;
+	
+	// HERE specific action members
+	
+	public GetNameAction(
+	    UPnPService upnpService,
+		TemperatureSetpointModel model
+	){
+		super(
+			upnpService,
+			"GetName",
+			""
+		);
+		this.model=model;
+		
+			addOutArg(
+				"CurrentName",
+				upnpService.getStateVariable("Name")
+			);
+		
+	}
+
+	/**
+	 * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+	 */
+	public Dictionary invoke(Dictionary _args) throws Exception {
+
+	StringHolder currentName = new StringHolder();
+		
+
+		// invoke model
+		
+		 model.getName(
+			currentName
+		 );
+		
+		// build returned Dictionary		
+		Dictionary _result = new Hashtable();
+		
+			_result.put("CurrentName",currentName.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 SetNameAction extends AbstractUPnPAction {
+
+	TemperatureSetpointModel model;
+	
+	// HERE specific action members
+	
+	public SetNameAction(
+	    UPnPService upnpService,
+		TemperatureSetpointModel model
+	){
+		super(
+			upnpService,
+			"SetName",
+			""
+		);
+		this.model=model;
+		
+			addInArg(
+				"NewName",
+				upnpService.getStateVariable("Name")
+			);
+		
+	}
+
+	/**
+	 * @see org.osgi.service.upnp.UPnPAction#invoke(java.util.Dictionary)
+	 */
+	public Dictionary invoke(Dictionary _args) throws Exception {
+
+	java.lang.String newName = (java.lang.String) _args.get("NewName");
+		
+
+		// invoke model
+		
+		 model.setName(
+			StringHolder.toValue(
+			newName)
+		
+		 );
+		
+		// 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
+	}
+};
+	
+}

Propchange: incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/hvac/service/TemperatureSetpoint.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/igd/device/InternetGatewayDevice.java
URL: http://svn.apache.org/viewvc/incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/igd/device/InternetGatewayDevice.java?view=auto&rev=533875
==============================================================================
--- incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/igd/device/InternetGatewayDevice.java (added)
+++ incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/igd/device/InternetGatewayDevice.java Mon Apr 30 16:15:05 2007
@@ -0,0 +1,120 @@
+
+/*
+__BANNER__
+*/
+// this file was generated at 1-May-2007 12:59 AM by ${author}
+package org.apache.felix.upnp.devicegen.igd.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.igd.model.*;
+import org.apache.felix.upnp.devicegen.igd.service.*;
+import org.apache.felix.upnp.devicegen.igd.impl.*;
+
+
+	
+
+public class InternetGatewayDevice extends AbstractUPnPDevice {
+
+	public InternetGatewayDevice(BundleContext context, AbstractUPnPDevice parent) {
+		super(context,parent);
+
+		DEVICE_ID="uuid:adele-internet-gateway-device";
+
+		// ServiceModel Declaration List
+		Layer3ForwardingModel myLayer3ForwardingModel=null; // TODO initialise it
+
+		
+		// Icon Lists
+		
+		List iconsList=new LinkedList();
+	
+		iconsList.add(
+				new DeviceIcon(
+					"image/png", // MimeType
+					48, //Width
+					48, // Height
+					0, // ??
+					16, // Depth
+					"/icon/igd.png", // URL
+					InternetGatewayDevice.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 Layer3Forwarding(
+						this,
+						"urn:upnp-org:serviceId:Layer3Forwarding:1",
+						"urn:schemas-upnp-org:service:Layer3Forwarding:1",
+						"1",
+						myLayer3ForwardingModel									
+				)
+			);				
+
+		services=(UPnPService[])servicesList.toArray(new UPnPService[]{});
+
+
+		// Embedded Device List
+			
+		//children=new LinkedList();
+		
+		addChild(new WANDevice(bundleContext,this));
+
+		addChild(new LANDevice(bundleContext,this));
+
+	
+	}
+	
+	protected void setupDeviceProperties(){	
+		dictionary.put(UPnPDevice.TYPE,"urn:schemas-upnp-org:device:InternetGatewayDevice:1");
+		dictionary.put(UPnPDevice.FRIENDLY_NAME,"Generated Internet Gateway Device 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 Internet Gateway Device UPnP Device");
+		dictionary.put(UPnPDevice.MODEL_NAME,"Internet Gateway Device");
+		dictionary.put(UPnPDevice.MODEL_NUMBER,"123");
+		dictionary.put(UPnPDevice.MODEL_URL,"http://www.apache.org/~donsez/dev/osgi/upnp.devicegen/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-internet-gateway-device");
+		dictionary.put(UPnPDevice.PRESENTATION_URL,"http://www.apache.org/~donsez/dev/osgi/upnp.devicegen/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/igd/device/InternetGatewayDevice.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/igd/device/LANDevice.java
URL: http://svn.apache.org/viewvc/incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/igd/device/LANDevice.java?view=auto&rev=533875
==============================================================================
--- incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/igd/device/LANDevice.java (added)
+++ incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/igd/device/LANDevice.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.igd.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.igd.model.*;
+import org.apache.felix.upnp.devicegen.igd.service.*;
+import org.apache.felix.upnp.devicegen.igd.impl.*;
+
+
+	
+
+public class LANDevice extends AbstractUPnPDevice {
+
+	public LANDevice(BundleContext context, AbstractUPnPDevice parent) {
+		super(context,parent);
+
+		DEVICE_ID="uuid:adele-lan-device";
+
+		// ServiceModel Declaration List
+		LANHostConfigManagementModel myLANHostConfigManagementModel=null; // TODO initialise it
+
+		
+		// Icon Lists
+		
+		List iconsList=new LinkedList();
+	
+		iconsList.add(
+				new DeviceIcon(
+					"image/png", // MimeType
+					48, //Width
+					48, // Height
+					0, // ??
+					16, // Depth
+					"/icon/igd.png", // URL
+					LANDevice.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 LANHostConfigManagement(
+						this,
+						"urn:upnp-org:serviceId:LANHostConfigManagement:1",
+						"urn:schemas-upnp-org:service:LANHostConfigManagement:1",
+						"1",
+						myLANHostConfigManagementModel									
+				)
+			);				
+
+		services=(UPnPService[])servicesList.toArray(new UPnPService[]{});
+
+
+		// Embedded Device List
+			
+		//children=new LinkedList();
+		
+	
+	}
+	
+	protected void setupDeviceProperties(){	
+		dictionary.put(UPnPDevice.TYPE,"urn:schemas-upnp-org:device:LANDevice:1");
+		dictionary.put(UPnPDevice.FRIENDLY_NAME,"Generated LAN Device 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 LAN Device UPnP Device");
+		dictionary.put(UPnPDevice.MODEL_NAME,"LAN Device");
+		dictionary.put(UPnPDevice.MODEL_NUMBER,"123");
+		dictionary.put(UPnPDevice.MODEL_URL,"http://www.apache.org/~donsez/dev/osgi/upnp.devicegen/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-lan-device");
+		dictionary.put(UPnPDevice.PRESENTATION_URL,"http://www.apache.org/~donsez/dev/osgi/upnp.devicegen/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/igd/device/LANDevice.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/igd/device/WANConnectionDevice.java
URL: http://svn.apache.org/viewvc/incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/igd/device/WANConnectionDevice.java?view=auto&rev=533875
==============================================================================
--- incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/igd/device/WANConnectionDevice.java (added)
+++ incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/igd/device/WANConnectionDevice.java Mon Apr 30 16:15:05 2007
@@ -0,0 +1,201 @@
+
+/*
+__BANNER__
+*/
+// this file was generated at 1-May-2007 12:59 AM by ${author}
+package org.apache.felix.upnp.devicegen.igd.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.igd.model.*;
+import org.apache.felix.upnp.devicegen.igd.service.*;
+import org.apache.felix.upnp.devicegen.igd.impl.*;
+
+
+	
+
+public class WANConnectionDevice extends AbstractUPnPDevice {
+
+	public WANConnectionDevice(BundleContext context, AbstractUPnPDevice parent) {
+		super(context,parent);
+
+		DEVICE_ID="uuid:adele-wan-connection-device";
+
+		// ServiceModel Declaration List
+		WANPOTSLinkConfigModel myWANPOTSLinkConfigModel=null; // TODO initialise it
+WANDSLLinkConfigModel myWANDSLLinkConfigModel=null; // TODO initialise it
+WANCableLinkConfigModel myWANCableLinkConfigModel=null; // TODO initialise it
+WANEthernetLinkConfigModel myWANEthernetLinkConfigModel=null; // TODO initialise it
+WANPPPConnectionModel myWANPPPConnectionModel=null; // TODO initialise it
+WANIPConnectionModel myWANIPConnectionModel=null; // TODO initialise it
+
+		
+		// Icon Lists
+		
+		List iconsList=new LinkedList();
+	
+		iconsList.add(
+				new DeviceIcon(
+					"image/png", // MimeType
+					48, //Width
+					48, // Height
+					0, // ??
+					16, // Depth
+					"/icon/igd.png", // URL
+					WANConnectionDevice.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 WANPOTSLinkConfig(
+						this,
+						"urn:upnp-org:serviceId:WANPOTSLinkConfig:1",
+						"urn:schemas-upnp-org:service:WANPOTSLinkConfig:1",
+						"1",
+						myWANPOTSLinkConfigModel									
+				)
+			);				
+
+	
+		/*
+				SCPDURL=URL to service description
+				controlURL=URL for control
+				eventSubURL=URL for eventing
+		*/
+		servicesList.add(
+				new WANDSLLinkConfig(
+						this,
+						"urn:upnp-org:serviceId:WANDSLLinkConfig:1",
+						"urn:schemas-upnp-org:service:WANDSLLinkConfig:1",
+						"1",
+						myWANDSLLinkConfigModel									
+				)
+			);				
+
+	
+		/*
+				SCPDURL=URL to service description
+				controlURL=URL for control
+				eventSubURL=URL for eventing
+		*/
+		servicesList.add(
+				new WANCableLinkConfig(
+						this,
+						"urn:upnp-org:serviceId:WANCableLinkConfig:1",
+						"urn:schemas-upnp-org:service:WANCableLinkConfig:1",
+						"1",
+						myWANCableLinkConfigModel									
+				)
+			);				
+
+	
+		/*
+				SCPDURL=URL to service description
+				controlURL=URL for control
+				eventSubURL=URL for eventing
+		*/
+		servicesList.add(
+				new WANEthernetLinkConfig(
+						this,
+						"urn:upnp-org:serviceId:WANEthernetLinkConfig:1",
+						"urn:schemas-upnp-org:service:WANEthernetLinkConfig:1",
+						"1",
+						myWANEthernetLinkConfigModel									
+				)
+			);				
+
+	
+		/*
+				SCPDURL=URL to service description
+				controlURL=URL for control
+				eventSubURL=URL for eventing
+		*/
+		servicesList.add(
+				new WANPPPConnection(
+						this,
+						"urn:upnp-org:serviceId:WANPPPConnection:1",
+						"urn:schemas-upnp-org:service:WANPPPConnection:1",
+						"1",
+						myWANPPPConnectionModel									
+				)
+			);				
+
+	
+		/*
+				SCPDURL=URL to service description
+				controlURL=URL for control
+				eventSubURL=URL for eventing
+		*/
+		servicesList.add(
+				new WANIPConnection(
+						this,
+						"urn:upnp-org:serviceId:WANIPConnection:1",
+						"urn:schemas-upnp-org:service:WANIPConnection:1",
+						"1",
+						myWANIPConnectionModel									
+				)
+			);				
+
+		services=(UPnPService[])servicesList.toArray(new UPnPService[]{});
+
+
+		// Embedded Device List
+			
+		//children=new LinkedList();
+		
+	
+	}
+	
+	protected void setupDeviceProperties(){	
+		dictionary.put(UPnPDevice.TYPE,"urn:schemas-upnp-org:device:WANConnectionDevice:1");
+		dictionary.put(UPnPDevice.FRIENDLY_NAME,"Generated WAN Connection Device 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 WAN Connection Device UPnP Device");
+		dictionary.put(UPnPDevice.MODEL_NAME,"WAN Connection Device");
+		dictionary.put(UPnPDevice.MODEL_NUMBER,"123");
+		dictionary.put(UPnPDevice.MODEL_URL,"http://www.apache.org/~donsez/dev/osgi/upnp.devicegen/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-wan-connection-device");
+		dictionary.put(UPnPDevice.PRESENTATION_URL,"http://www.apache.org/~donsez/dev/osgi/upnp.devicegen/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/igd/device/WANConnectionDevice.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/igd/device/WANDevice.java
URL: http://svn.apache.org/viewvc/incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/igd/device/WANDevice.java?view=auto&rev=533875
==============================================================================
--- incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/igd/device/WANDevice.java (added)
+++ incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/igd/device/WANDevice.java Mon Apr 30 16:15:05 2007
@@ -0,0 +1,118 @@
+
+/*
+__BANNER__
+*/
+// this file was generated at 1-May-2007 12:59 AM by ${author}
+package org.apache.felix.upnp.devicegen.igd.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.igd.model.*;
+import org.apache.felix.upnp.devicegen.igd.service.*;
+import org.apache.felix.upnp.devicegen.igd.impl.*;
+
+
+	
+
+public class WANDevice extends AbstractUPnPDevice {
+
+	public WANDevice(BundleContext context, AbstractUPnPDevice parent) {
+		super(context,parent);
+
+		DEVICE_ID="uuid:adele-wan-device";
+
+		// ServiceModel Declaration List
+		WANCommonInterfaceConfigModel myWANCommonInterfaceConfigModel=null; // TODO initialise it
+
+		
+		// Icon Lists
+		
+		List iconsList=new LinkedList();
+	
+		iconsList.add(
+				new DeviceIcon(
+					"image/png", // MimeType
+					48, //Width
+					48, // Height
+					0, // ??
+					16, // Depth
+					"/icon/igd.png", // URL
+					WANDevice.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 WANCommonInterfaceConfig(
+						this,
+						"urn:upnp-org:serviceId:WANCommonInterfaceConfig:1",
+						"urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1",
+						"1",
+						myWANCommonInterfaceConfigModel									
+				)
+			);				
+
+		services=(UPnPService[])servicesList.toArray(new UPnPService[]{});
+
+
+		// Embedded Device List
+			
+		//children=new LinkedList();
+		
+		addChild(new WANConnectionDevice(bundleContext,this));
+
+	
+	}
+	
+	protected void setupDeviceProperties(){	
+		dictionary.put(UPnPDevice.TYPE,"urn:schemas-upnp-org:device:WANDevice:1");
+		dictionary.put(UPnPDevice.FRIENDLY_NAME,"Generated WAN Device 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 WAN Device UPnP Device");
+		dictionary.put(UPnPDevice.MODEL_NAME,"WAN Device");
+		dictionary.put(UPnPDevice.MODEL_NUMBER,"123");
+		dictionary.put(UPnPDevice.MODEL_URL,"http://www.apache.org/~donsez/dev/osgi/upnp.devicegen/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-wan-device");
+		dictionary.put(UPnPDevice.PRESENTATION_URL,"http://www.apache.org/~donsez/dev/osgi/upnp.devicegen/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/igd/device/WANDevice.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/igd/device/WLANAccessPointDevice.java
URL: http://svn.apache.org/viewvc/incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/igd/device/WLANAccessPointDevice.java?view=auto&rev=533875
==============================================================================
--- incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/igd/device/WLANAccessPointDevice.java (added)
+++ incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/igd/device/WLANAccessPointDevice.java Mon Apr 30 16:15:05 2007
@@ -0,0 +1,150 @@
+
+/*
+__BANNER__
+*/
+// this file was generated at 1-May-2007 12:59 AM by ${author}
+package org.apache.felix.upnp.devicegen.igd.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.igd.model.*;
+import org.apache.felix.upnp.devicegen.igd.service.*;
+import org.apache.felix.upnp.devicegen.igd.impl.*;
+
+
+	
+
+public class WLANAccessPointDevice extends AbstractUPnPDevice {
+
+	public WLANAccessPointDevice(BundleContext context, AbstractUPnPDevice parent) {
+		super(context,parent);
+
+		DEVICE_ID="uuid:adele-wlan-access-point-device";
+
+		// ServiceModel Declaration List
+		WLANConfigurationModel myWLANConfigurationModel=null; // TODO initialise it
+RadiusClientModel myRadiusClientModel=null; // TODO initialise it
+LinkAuthenticationModel myLinkAuthenticationModel=null; // TODO initialise it
+
+		
+		// Icon Lists
+		
+		List iconsList=new LinkedList();
+	
+		iconsList.add(
+				new DeviceIcon(
+					"image/png", // MimeType
+					48, //Width
+					48, // Height
+					0, // ??
+					16, // Depth
+					"/icon/igd.png", // URL
+					WLANAccessPointDevice.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 WLANConfiguration(
+						this,
+						"urn:upnp-org:serviceId:WLANConfiguration:1",
+						"urn:schemas-upnp-org:service:WLANConfiguration:1",
+						"1",
+						myWLANConfigurationModel									
+				)
+			);				
+
+	
+		/*
+				SCPDURL=URL to service description
+				controlURL=URL for control
+				eventSubURL=URL for eventing
+		*/
+		servicesList.add(
+				new RadiusClient(
+						this,
+						"urn:upnp-org:serviceId:RadiusClient:1",
+						"urn:schemas-upnp-org:service:RadiusClient:1",
+						"1",
+						myRadiusClientModel									
+				)
+			);				
+
+	
+		/*
+				SCPDURL=URL to service description
+				controlURL=URL for control
+				eventSubURL=URL for eventing
+		*/
+		servicesList.add(
+				new LinkAuthentication(
+						this,
+						"urn:upnp-org:serviceId:LinkAuthentication:1",
+						"urn:schemas-upnp-org:service:LinkAuthentication:1",
+						"1",
+						myLinkAuthenticationModel									
+				)
+			);				
+
+		services=(UPnPService[])servicesList.toArray(new UPnPService[]{});
+
+
+		// Embedded Device List
+			
+		//children=new LinkedList();
+		
+	
+	}
+	
+	protected void setupDeviceProperties(){	
+		dictionary.put(UPnPDevice.TYPE,"urn:schemas-upnp-org:device:WLANAccessPointDevice:1");
+		dictionary.put(UPnPDevice.FRIENDLY_NAME,"Generated WLAN Access Point Device 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 WLAN Access Point Device UPnP Device");
+		dictionary.put(UPnPDevice.MODEL_NAME,"WLAN Access Point Device");
+		dictionary.put(UPnPDevice.MODEL_NUMBER,"123");
+		dictionary.put(UPnPDevice.MODEL_URL,"http://www.apache.org/~donsez/dev/osgi/upnp.devicegen/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-wlan-access-point-device");
+		dictionary.put(UPnPDevice.PRESENTATION_URL,"http://www.apache.org/~donsez/dev/osgi/upnp.devicegen/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/igd/device/WLANAccessPointDevice.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/igd/impl/LANHostConfigManagementModelImpl.java
URL: http://svn.apache.org/viewvc/incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/igd/impl/LANHostConfigManagementModelImpl.java?view=auto&rev=533875
==============================================================================
--- incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/igd/impl/LANHostConfigManagementModelImpl.java (added)
+++ incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/igd/impl/LANHostConfigManagementModelImpl.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.igd.impl;
+
+import org.apache.felix.upnp.devicegen.holder.*;
+import org.apache.felix.upnp.devicegen.igd.model.*;
+
+	
+public class LANHostConfigManagementModelImpl implements LANHostConfigManagementModel {		
+	
+	/**
+	 * This method is "add description here"	
+ * newDHCPServerConfigurable in  parameter
+
+
+	 */
+	public void setDHCPServerConfigurable(
+		boolean newDHCPServerConfigurable
+	) {
+		// TODO
+	
+	}
+
+
+	/**
+	 * This method is "add description here"	
+ * newDHCPServerConfigurable out  parameter
+
+
+	 */
+	public void getDHCPServerConfigurable(
+		BooleanHolder newDHCPServerConfigurable
+	) {
+		// TODO
+	
+	}
+
+
+	/**
+	 * This method is "add description here"	
+ * newDHCPRelay in  parameter
+
+
+	 */
+	public void setDHCPRelay(
+		boolean newDHCPRelay
+	) {
+		// TODO
+	
+	}
+
+
+	/**
+	 * This method is "add description here"	
+ * newDHCPRelay out  parameter
+
+
+	 */
+	public void getDHCPRelay(
+		BooleanHolder newDHCPRelay
+	) {
+		// TODO
+	
+	}
+
+
+	/**
+	 * This method is "add description here"	
+ * newSubnetMask in  parameter
+
+
+	 */
+	public void setSubnetMask(
+		java.lang.String newSubnetMask
+	) {
+		// TODO
+	
+	}
+
+
+	/**
+	 * This method is "add description here"	
+ * newSubnetMask out  parameter
+
+
+	 */
+	public void getSubnetMask(
+		StringHolder newSubnetMask
+	) {
+		// TODO
+	
+	}
+
+
+	/**
+	 * This method is "add description here"	
+ * newIPRouters in  parameter
+
+
+	 */
+	public void setIPRouter(
+		java.lang.String newIPRouters
+	) {
+		// TODO
+	
+	}
+
+
+	/**
+	 * This method is "add description here"	
+ * newIPRouters in  parameter
+
+
+	 */
+	public void deleteIPRouter(
+		java.lang.String newIPRouters
+	) {
+		// TODO
+	
+	}
+
+
+	/**
+	 * This method is "add description here"	
+ * newIPRouters out  parameter
+
+
+	 */
+	public void getIPRoutersList(
+		StringHolder newIPRouters
+	) {
+		// TODO
+	
+	}
+
+
+	/**
+	 * This method is "add description here"	
+ * newDomainName in  parameter
+
+
+	 */
+	public void setDomainName(
+		java.lang.String newDomainName
+	) {
+		// TODO
+	
+	}
+
+
+	/**
+	 * This method is "add description here"	
+ * newDomainName out  parameter
+
+
+	 */
+	public void getDomainName(
+		StringHolder newDomainName
+	) {
+		// TODO
+	
+	}
+
+
+	/**
+	 * This method is "add description here"	
+ * newMinAddress in  parameter
+
+ * newMaxAddress in  parameter
+
+
+	 */
+	public void setAddressRange(
+		java.lang.String newMinAddress,
+
+java.lang.String newMaxAddress
+	) {
+		// TODO
+	
+	}
+
+
+	/**
+	 * This method is "add description here"	
+ * newMinAddress out  parameter
+
+ * newMaxAddress out  parameter
+
+
+	 */
+	public void getAddressRange(
+		StringHolder newMinAddress,
+
+StringHolder newMaxAddress
+	) {
+		// TODO
+	
+	}
+
+
+	/**
+	 * This method is "add description here"	
+ * newReservedAddresses in  parameter
+
+
+	 */
+	public void setReservedAddress(
+		java.lang.String newReservedAddresses
+	) {
+		// TODO
+	
+	}
+
+
+	/**
+	 * This method is "add description here"	
+ * newReservedAddresses in  parameter
+
+
+	 */
+	public void deleteReservedAddress(
+		java.lang.String newReservedAddresses
+	) {
+		// TODO
+	
+	}
+
+
+	/**
+	 * This method is "add description here"	
+ * newReservedAddresses out  parameter
+
+
+	 */
+	public void getReservedAddresses(
+		StringHolder newReservedAddresses
+	) {
+		// TODO
+	
+	}
+
+
+	/**
+	 * This method is "add description here"	
+ * newDNSServers in  parameter
+
+
+	 */
+	public void setDNSServer(
+		java.lang.String newDNSServers
+	) {
+		// TODO
+	
+	}
+
+
+	/**
+	 * This method is "add description here"	
+ * newDNSServers in  parameter
+
+
+	 */
+	public void deleteDNSServer(
+		java.lang.String newDNSServers
+	) {
+		// TODO
+	
+	}
+
+
+	/**
+	 * This method is "add description here"	
+ * newDNSServers out  parameter
+
+
+	 */
+	public void getDNSServers(
+		StringHolder newDNSServers
+	) {
+		// TODO
+	
+	}
+
+	
+
+	// Those getters are used for the first notification just after a subscription
+		
+}

Propchange: incubator/felix/sandbox/donsez/upnp.devicegen/src/main/java/org/apache/felix/upnp/devicegen/igd/impl/LANHostConfigManagementModelImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message