Skip to content

Commit

Permalink
Change namespace into org.eclipse.smarthome.documentation (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
kummerer94 committed Sep 12, 2015
1 parent 34b8190 commit 8cc480a
Show file tree
Hide file tree
Showing 61 changed files with 137 additions and 137 deletions.
2 changes: 1 addition & 1 deletion .idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.openhab</groupId>
<artifactId>binding-docu-generator</artifactId>
<version>0.1.2-SNAPSHOT</version>
<version>0.1.3-SNAPSHOT</version>

<packaging>maven-plugin</packaging>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* which accompanies this distribution.
*/

package org.openhab;
package org.eclipse.smarthome.documentation;

import com.github.mustachejava.DefaultMustacheFactory;
import com.github.mustachejava.Mustache;
Expand All @@ -18,11 +18,11 @@
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;
import org.openhab.data.*;
import org.openhab.models.Binding;
import org.openhab.schemas.config_description.v1_0.ConfigDescription;
import org.openhab.schemas.config_description.v1_0.ConfigDescriptions;
import org.openhab.schemas.thing_description.v1_0.*;
import org.eclipse.smarthome.documentation.data.*;
import org.eclipse.smarthome.documentation.models.Binding;
import org.eclipse.smarthome.documentation.schemas.config_description.v1_0.ConfigDescription;
import org.eclipse.smarthome.documentation.schemas.config_description.v1_0.ConfigDescriptions;
import org.eclipse.smarthome.documentation.schemas.thing_description.v1_0.*;

import javax.xml.bind.JAXBContext;
import javax.xml.bind.Unmarshaller;
Expand Down Expand Up @@ -276,10 +276,10 @@ private void parseConfigDescriptions(File file) {
*/
private void parseBindingDescription(File file) {
try {
JAXBContext jc = JAXBContext.newInstance(org.openhab.schemas.binding.v1_0.Binding.class);
JAXBContext jc = JAXBContext.newInstance(org.eclipse.smarthome.documentation.schemas.binding.v1_0.Binding.class);

Unmarshaller unmarshaller = jc.createUnmarshaller();
binding = new Binding((org.openhab.schemas.binding.v1_0.Binding) unmarshaller.unmarshal(file));
binding = new Binding((org.eclipse.smarthome.documentation.schemas.binding.v1_0.Binding) unmarshaller.unmarshal(file));
} catch (Exception e) {
getLog().error(e);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
* which accompanies this distribution.
*/

package org.openhab;
package org.eclipse.smarthome.documentation;

import org.apache.commons.lang3.StringUtils;
import org.openhab.schemas.config_description.v1_0.ConfigDescription;
import org.openhab.schemas.config_description.v1_0.Parameter;
import org.openhab.schemas.thing_description.v1_0.*;
import org.eclipse.smarthome.documentation.schemas.config_description.v1_0.ConfigDescription;
import org.eclipse.smarthome.documentation.schemas.config_description.v1_0.Parameter;
import org.eclipse.smarthome.documentation.schemas.thing_description.v1_0.*;

import java.util.Arrays;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* which accompanies this distribution.
*/

package org.openhab;
package org.eclipse.smarthome.documentation;

/**
* Created by Alexander on 26.08.2015.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
* which accompanies this distribution.
*/

package org.openhab.data;
package org.eclipse.smarthome.documentation.data;

import org.openhab.models.Bridge;
import org.eclipse.smarthome.documentation.models.Bridge;

/**
* Created by Alexander on 22.08.2015.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
* which accompanies this distribution.
*/

package org.openhab.data;
package org.eclipse.smarthome.documentation.data;

import org.openhab.models.ChannelGroup;
import org.eclipse.smarthome.documentation.models.ChannelGroup;

/**
* Created by Alexander on 22.08.2015.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
* which accompanies this distribution.
*/

package org.openhab.data;
package org.eclipse.smarthome.documentation.data;

import org.openhab.models.ChannelGroupRef;
import org.eclipse.smarthome.documentation.models.ChannelGroupRef;

/**
* Created by Alexander on 23.08.2015.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
* which accompanies this distribution.
*/

package org.openhab.data;
package org.eclipse.smarthome.documentation.data;

import org.openhab.models.Channel;
import org.eclipse.smarthome.documentation.models.Channel;

/**
* Created by Alexander on 22.08.2015.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
* which accompanies this distribution.
*/

package org.openhab.data;
package org.eclipse.smarthome.documentation.data;

import org.openhab.models.ChannelRef;
import org.eclipse.smarthome.documentation.models.ChannelRef;

/**
* Created by Alexander on 23.08.2015.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
* which accompanies this distribution.
*/

package org.openhab.data;
package org.eclipse.smarthome.documentation.data;

import org.openhab.models.ConfigDescription;
import org.eclipse.smarthome.documentation.models.ConfigDescription;

/**
* Created by Alexander on 22.08.2015.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
* which accompanies this distribution.
*/

package org.openhab.data;
package org.eclipse.smarthome.documentation.data;

import org.openhab.models.Model;
import org.eclipse.smarthome.documentation.models.Model;

/**
* Created by Alexander on 23.08.2015.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
* which accompanies this distribution.
*/

package org.openhab.data;
package org.eclipse.smarthome.documentation.data;

import org.openhab.models.Model;
import org.eclipse.smarthome.documentation.models.Model;

import java.util.ArrayList;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
* which accompanies this distribution.
*/

package org.openhab.data;
package org.eclipse.smarthome.documentation.data;

import org.openhab.models.Option;
import org.eclipse.smarthome.documentation.models.Option;

/**
* Created by Alexander on 26.08.2015.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
* which accompanies this distribution.
*/

package org.openhab.data;
package org.eclipse.smarthome.documentation.data;

import org.openhab.models.Parameter;
import org.eclipse.smarthome.documentation.models.Parameter;

/**
* Created by Alexander on 26.08.2015.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
* which accompanies this distribution.
*/

package org.openhab.data;
package org.eclipse.smarthome.documentation.data;

import org.openhab.models.Thing;
import org.eclipse.smarthome.documentation.models.Thing;

/**
* Created by Alexander on 22.08.2015.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
* which accompanies this distribution.
*/

package org.openhab.models;
package org.eclipse.smarthome.documentation.models;

public class Binding implements Model<org.openhab.schemas.binding.v1_0.Binding> {
public class Binding implements Model<org.eclipse.smarthome.documentation.schemas.binding.v1_0.Binding> {
/**
* The attribute holding the original instance from the XML parser.
*/
private org.openhab.schemas.binding.v1_0.Binding binding;
private org.eclipse.smarthome.documentation.schemas.binding.v1_0.Binding binding;

/**
* Default constructor.
Expand All @@ -26,21 +26,21 @@ public Binding() {
*
* @param binding The real binding object.
*/
public Binding(org.openhab.schemas.binding.v1_0.Binding binding) {
public Binding(org.eclipse.smarthome.documentation.schemas.binding.v1_0.Binding binding) {
setModel(binding);
}

/**
* @return Returns the instance of the concrete implementation.
*/
public org.openhab.schemas.binding.v1_0.Binding getRealImpl() {
public org.eclipse.smarthome.documentation.schemas.binding.v1_0.Binding getRealImpl() {
return binding;
}

/**
* @param binding Set the concrete implementation instance.
*/
public void setModel(org.openhab.schemas.binding.v1_0.Binding binding) {
public void setModel(org.eclipse.smarthome.documentation.schemas.binding.v1_0.Binding binding) {
this.binding = binding;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
* which accompanies this distribution.
*/

package org.openhab.models;
package org.eclipse.smarthome.documentation.models;

import org.openhab.schemas.thing_description.v1_0.BridgeType;
import org.openhab.schemas.thing_description.v1_0.BridgeTypeRef;
import org.eclipse.smarthome.documentation.schemas.thing_description.v1_0.BridgeType;
import org.eclipse.smarthome.documentation.schemas.thing_description.v1_0.BridgeTypeRef;

import java.util.ArrayList;
import java.util.List;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
* which accompanies this distribution.
*/

package org.openhab.models;
package org.eclipse.smarthome.documentation.models;

import org.openhab.schemas.thing_description.v1_0.ChannelType;
import org.eclipse.smarthome.documentation.schemas.thing_description.v1_0.ChannelType;

/**
* Created by Alexander on 21.08.2015.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@
* which accompanies this distribution.
*/

package org.openhab.models;
package org.eclipse.smarthome.documentation.models;

import org.openhab.data.ChannelRefList;
import org.openhab.schemas.thing_description.v1_0.ChannelGroupType;
import org.eclipse.smarthome.documentation.data.ChannelRefList;
import org.eclipse.smarthome.documentation.schemas.thing_description.v1_0.ChannelGroupType;

/**
* Created by Alexander on 22.08.2015.
*
* Wrapper class to not fully depend on the existing models.
*/
public class ChannelGroup implements Model<org.openhab.schemas.thing_description.v1_0.ChannelGroupType> {
public class ChannelGroup implements Model<ChannelGroupType> {
/**
* The attribute holding the original instance from the XML parser.
*/
Expand Down Expand Up @@ -80,7 +80,7 @@ public String label() {
public ChannelRefList channels() {
ChannelRefList channelRefs = new ChannelRefList();
if (channel.getChannels() != null) {
for (org.openhab.schemas.thing_description.v1_0.Channel ch : channel.getChannels().getChannel()) {
for (org.eclipse.smarthome.documentation.schemas.thing_description.v1_0.Channel ch : channel.getChannels().getChannel()) {
channelRefs.put(ch);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
* which accompanies this distribution.
*/

package org.openhab.models;
package org.eclipse.smarthome.documentation.models;

import org.openhab.schemas.thing_description.v1_0.ChannelGroup;
import org.eclipse.smarthome.documentation.schemas.thing_description.v1_0.ChannelGroup;

public class ChannelGroupRef implements Model<ChannelGroup> {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
* which accompanies this distribution.
*/

package org.openhab.models;
package org.eclipse.smarthome.documentation.models;

import org.openhab.schemas.thing_description.v1_0.Channel;
import org.eclipse.smarthome.documentation.schemas.thing_description.v1_0.Channel;

public class ChannelRef implements Model<Channel> {
public class ChannelRef implements Model<org.eclipse.smarthome.documentation.schemas.thing_description.v1_0.Channel> {
/**
* Instance from the XML parser.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,15 @@
* which accompanies this distribution.
*/

package org.openhab.models;
package org.eclipse.smarthome.documentation.models;

import org.openhab.data.ParameterList;
import org.openhab.schemas.config_description.v1_0.Parameter;
import org.eclipse.smarthome.documentation.data.ParameterList;

public class ConfigDescription implements Model<org.openhab.schemas.config_description.v1_0.ConfigDescription> {
public class ConfigDescription implements Model<org.eclipse.smarthome.documentation.schemas.config_description.v1_0.ConfigDescription> {
/**
* The original instance from the XML parser.
*/
protected org.openhab.schemas.config_description.v1_0.ConfigDescription config;
protected org.eclipse.smarthome.documentation.schemas.config_description.v1_0.ConfigDescription config;

/**
* Default constructor.
Expand All @@ -28,14 +27,14 @@ public ConfigDescription() {
*
* @param config The instance from the XML parser.
*/
public ConfigDescription(org.openhab.schemas.config_description.v1_0.ConfigDescription config) {
public ConfigDescription(org.eclipse.smarthome.documentation.schemas.config_description.v1_0.ConfigDescription config) {
setModel(config);
}

/**
* @return The instance from the XML parser.
*/
public org.openhab.schemas.config_description.v1_0.ConfigDescription getRealImpl() {
public org.eclipse.smarthome.documentation.schemas.config_description.v1_0.ConfigDescription getRealImpl() {
return config;
}

Expand All @@ -44,7 +43,7 @@ public org.openhab.schemas.config_description.v1_0.ConfigDescription getRealImpl
*
* @param config The instance from the XML parser.
*/
public void setModel(org.openhab.schemas.config_description.v1_0.ConfigDescription config) {
public void setModel(org.eclipse.smarthome.documentation.schemas.config_description.v1_0.ConfigDescription config) {
this.config = config;
}

Expand All @@ -60,7 +59,7 @@ public String uri() {
*/
public ParameterList parameter() {
ParameterList parameterList = new ParameterList();
for (Parameter param : config.getParameter()) {
for (org.eclipse.smarthome.documentation.schemas.config_description.v1_0.Parameter param : config.getParameter()) {
parameterList.put(param);
}
return parameterList;
Expand Down
Loading

0 comments on commit 8cc480a

Please sign in to comment.