Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.om2m.commons/src/main/java/org/eclipse/om2m/commons/resource/flexcontainerspec/ColourFlexContainer.java')
-rw-r--r--org.eclipse.om2m.commons/src/main/java/org/eclipse/om2m/commons/resource/flexcontainerspec/ColourFlexContainer.java33
1 files changed, 24 insertions, 9 deletions
diff --git a/org.eclipse.om2m.commons/src/main/java/org/eclipse/om2m/commons/resource/flexcontainerspec/ColourFlexContainer.java b/org.eclipse.om2m.commons/src/main/java/org/eclipse/om2m/commons/resource/flexcontainerspec/ColourFlexContainer.java
index 78477519..7d299419 100644
--- a/org.eclipse.om2m.commons/src/main/java/org/eclipse/om2m/commons/resource/flexcontainerspec/ColourFlexContainer.java
+++ b/org.eclipse.om2m.commons/src/main/java/org/eclipse/om2m/commons/resource/flexcontainerspec/ColourFlexContainer.java
@@ -1,6 +1,6 @@
/*
********************************************************************************
- * Copyright (c) 2014, 2017 Orange.
+ * Copyright (c) 2014, 2018 Orange.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -9,21 +9,20 @@
ModuleClass : Colour
-This ModuleClass provides the capabilities to set the value of Red, Green, Blue for the color device.
+This ModuleClass provides the capabilities to set the value of the Red, Green, and Blue colour channels for a colour device.
-Created: 2018-06-11 12:14:17
+Created: 2018-06-29 17:19:52
*/
package org.eclipse.om2m.commons.resource.flexcontainerspec;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
-import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
-import org.eclipse.om2m.commons.resource.AbstractFlexContainer;
-import org.eclipse.om2m.commons.resource.AbstractFlexContainerAnnc;
+import org.eclipse.om2m.commons.resource.AbstractFlexContainer;
+import org.eclipse.om2m.commons.resource.CustomAttribute;
@XmlRootElement(name = ColourFlexContainer.SHORT_NAME, namespace = "http://www.onem2m.org/xml/protocols/homedomain")
@XmlAccessorType(XmlAccessType.FIELD)
@@ -32,17 +31,33 @@ public class ColourFlexContainer extends AbstractFlexContainer {
public static final String LONG_NAME = "colour";
public static final String SHORT_NAME = "color";
-
+
public ColourFlexContainer () {
setContainerDefinition("org.onem2m.home.moduleclass." + ColourFlexContainer.LONG_NAME);
setLongName(LONG_NAME);
setShortName(SHORT_NAME);
+ CustomAttribute red = new CustomAttribute();
+ red.setLongName("red");
+ red.setShortName("red");
+ red.setType("xs:integer");
+ getCustomAttributes().add(red);
+ CustomAttribute green = new CustomAttribute();
+ green.setLongName("green");
+ green.setShortName("green");
+ green.setType("xs:integer");
+ getCustomAttributes().add(green);
+ CustomAttribute blue = new CustomAttribute();
+ blue.setLongName("blue");
+ blue.setShortName("blue");
+ blue.setType("xs:integer");
+ getCustomAttributes().add(blue);
}
-
+
+
public void finalizeSerialization() {
}
public void finalizeDeserialization() {
}
-} \ No newline at end of file
+}

Back to the top