亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? notificationchannelserializerimpl.java

?? 關于 RFID 讀寫器的相關內容
?? JAVA
字號:
/*
 * Copyright (C) 2007 ETH Zurich
 *
 * This file is part of Fosstrak (www.fosstrak.org).
 *
 * Fosstrak is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License version 2.1, as published by the Free Software Foundation.
 *
 * Fosstrak is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with Fosstrak; if not, write to the Free
 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 * Boston, MA  02110-1301  USA
 */

/**
 * 
 */
package org.fosstrak.reader.rp.proxy.msg.stubs.serializers.xml;

import org.fosstrak.reader.rp.proxy.msg.stubs.DataSelector;
import org.fosstrak.reader.rp.proxy.msg.stubs.Source;
import org.fosstrak.reader.rp.proxy.msg.stubs.Trigger;
import org.fosstrak.reader.rp.proxy.msg.stubs.serializers.NotificationChannelSerializer;
import org.fosstrak.reader.rprm.core.msg.command.NotificationChannelCommand;
import org.fosstrak.reader.rprm.core.msg.command.SourceListParamType;
import org.fosstrak.reader.rprm.core.msg.command.TriggerListParamType;

/**
 * @author Andreas
 *
 */
public class NotificationChannelSerializerImpl extends CommandSerializerImpl
		implements NotificationChannelSerializer {

	private NotificationChannelCommand ncCommand = null;
	
	/**
	 * @param targetName
	 */
	public NotificationChannelSerializerImpl(String targetName) {
		super(targetName);
		init();
	}

	/**
	 * @param id
	 */
	public NotificationChannelSerializerImpl(int id) {
		super(id);
		init();
	}

	/**
	 * @param id
	 * @param targetName
	 */
	public NotificationChannelSerializerImpl(int id, String targetName) {
		super(id, targetName);
		init();
	}
	
	private void init() {
		ncCommand = cmdFactory.createNotificationChannelCommand();
	}
	

	/* (non-Javadoc)
	 * @see org.fosstrak.reader.testclient.command.NotificationChannelSerializer#create(java.lang.String, java.lang.String)
	 */
	public String create(String name, String addr) {
		resetCommand();
		NotificationChannelCommand.Create c = cmdFactory.createNotificationChannelCommandCreate();
		c.setName(name);
		c.setAddress(addr);
		ncCommand.setCreate(c);
		return serializeCommand();
	}

	/* (non-Javadoc)
	 * @see org.fosstrak.reader.testclient.command.NotificationChannelSerializer#getName()
	 */
	public String getName() {
		resetCommand();
		ncCommand.setGetName(cmdFactory.createNoParamType());
		return serializeCommand();
	}

	/* (non-Javadoc)
	 * @see org.fosstrak.reader.testclient.command.NotificationChannelSerializer#getAddress()
	 */
	public String getAddress() {
		resetCommand();
		ncCommand.setGetAddress(cmdFactory.createNoParamType());
		return serializeCommand();
	}

	/* (non-Javadoc)
	 * @see org.fosstrak.reader.testclient.command.NotificationChannelSerializer#getEffectiveAddress()
	 */
	public String getEffectiveAddress() {
		resetCommand();
		ncCommand.setGetEffectiveAddress(cmdFactory.createNoParamType());
		return serializeCommand();
	}

	/* (non-Javadoc)
	 * @see org.fosstrak.reader.testclient.command.NotificationChannelSerializer#setAddress(java.lang.String)
	 */
	public String setAddress(String addr) {
		resetCommand();
		NotificationChannelCommand.SetAddress a = cmdFactory.createNotificationChannelCommandSetAddress();
		a.setAddress(addr);
		ncCommand.setSetAddress(a);
		return serializeCommand();
	}

	/* (non-Javadoc)
	 * @see org.fosstrak.reader.testclient.command.NotificationChannelSerializer#getDataSelector()
	 */
	public String getDataSelector() {
		resetCommand();
		ncCommand.setGetDataSelector(cmdFactory.createNoParamType());
		return serializeCommand();
	}

	/* (non-Javadoc)
	 * @see org.fosstrak.reader.testclient.command.NotificationChannelSerializer#setDataSelector(org.fosstrak.reader.testclient.command.DataSelectorSerializer)
	 */
	public String setDataSelector(DataSelector dataSelector) {
		resetCommand();
		NotificationChannelCommand.SetDataSelector ds = cmdFactory.createNotificationChannelCommandSetDataSelector();
		ds.setDataSelector(dataSelector.getName());
		ncCommand.setSetDataSelector(ds);
		return serializeCommand();
	}

	/* (non-Javadoc)
	 * @see org.fosstrak.reader.testclient.command.NotificationChannelSerializer#addSources(org.fosstrak.reader.Source[])
	 */
	public String addSources(Source[] sourceList) {
		resetCommand();
		NotificationChannelCommand.AddSources srcs = cmdFactory.createNotificationChannelCommandAddSources();
		SourceListParamType.List list = cmdFactory.createSourceListParamTypeList();
		SourceListParamType listType = cmdFactory.createSourceListParamType();
		list.getValue().addAll(toStringList(sourceList));
		listType.setList(list);
		srcs.setSources(listType);
		ncCommand.setAddSources(srcs);
		return serializeCommand();
	}

	/* (non-Javadoc)
	 * @see org.fosstrak.reader.testclient.command.NotificationChannelSerializer#removeSources(org.fosstrak.reader.Source[])
	 */
	public String removeSources(Source[] sourceList) {
		resetCommand();
		NotificationChannelCommand.RemoveSources srcs = cmdFactory.createNotificationChannelCommandRemoveSources();
		SourceListParamType.List list = cmdFactory.createSourceListParamTypeList();
		SourceListParamType listType = cmdFactory.createSourceListParamType();
		list.getValue().addAll(toStringList(sourceList));
		listType.setList(list);
		srcs.setSources(listType);
		ncCommand.setRemoveSources(srcs);
		return serializeCommand();
	}

	/* (non-Javadoc)
	 * @see org.fosstrak.reader.testclient.command.NotificationChannelSerializer#removeAllSources()
	 */
	public String removeAllSources() {
		resetCommand();
		ncCommand.setRemoveAllSources(cmdFactory.createNoParamType());
		return serializeCommand();
	}

	/* (non-Javadoc)
	 * @see org.fosstrak.reader.testclient.command.NotificationChannelSerializer#getSource(java.lang.String)
	 */
	public String getSource(String name) {
		resetCommand();
		NotificationChannelCommand.GetSource src = cmdFactory.createNotificationChannelCommandGetSource();
		src.setName(name);
		ncCommand.setGetSource(src);
		return serializeCommand();
	}

	/* (non-Javadoc)
	 * @see org.fosstrak.reader.testclient.command.NotificationChannelSerializer#getAllSources()
	 */
	public String getAllSources() {
		resetCommand();
		ncCommand.setGetAllSources(cmdFactory.createNoParamType());
		return serializeCommand();
	}

	/* (non-Javadoc)
	 * @see org.fosstrak.reader.testclient.command.NotificationChannelSerializer#addNotificationTriggers(org.fosstrak.reader.Trigger[])
	 */
	public String addNotificationTriggers(Trigger[] triggers) {
		resetCommand();
		NotificationChannelCommand.AddNotificationTriggers trgs = cmdFactory.createNotificationChannelCommandAddNotificationTriggers();
		TriggerListParamType.List list = cmdFactory.createTriggerListParamTypeList();
		TriggerListParamType listType = cmdFactory.createTriggerListParamType();
		list.getValue().addAll(toStringList(triggers));
		listType.setList(list);
		trgs.setTriggers(listType);
		ncCommand.setAddNotificationTriggers(trgs);
		return serializeCommand();
	}

	/* (non-Javadoc)
	 * @see org.fosstrak.reader.testclient.command.NotificationChannelSerializer#removeNotificationTriggers(org.fosstrak.reader.Trigger[])
	 */
	public String removeNotificationTriggers(Trigger[] triggers) {
		resetCommand();
		NotificationChannelCommand.RemoveNotificationTriggers trgs = cmdFactory.createNotificationChannelCommandRemoveNotificationTriggers();
		TriggerListParamType.List list = cmdFactory.createTriggerListParamTypeList();
		TriggerListParamType listType = cmdFactory.createTriggerListParamType();
		list.getValue().addAll(toStringList(triggers));
		listType.setList(list);
		trgs.setTriggers(listType);
		ncCommand.setRemoveNotificationTriggers(trgs);
		return serializeCommand();
	}

	/* (non-Javadoc)
	 * @see org.fosstrak.reader.testclient.command.NotificationChannelSerializer#removeAllNotificationTriggers()
	 */
	public String removeAllNotificationTriggers() {
		resetCommand();
		ncCommand.setRemoveAllNotificationTriggers(cmdFactory.createNoParamType());
		return serializeCommand();
	}

	/* (non-Javadoc)
	 * @see org.fosstrak.reader.testclient.command.NotificationChannelSerializer#getNotificationTrigger(java.lang.String)
	 */
	public String getNotificationTrigger(String name) {
		resetCommand();
		NotificationChannelCommand.GetNotificationTrigger trg = cmdFactory.createNotificationChannelCommandGetNotificationTrigger();
		trg.setName(name);				
		ncCommand.setGetNotificationTrigger(trg);
		return serializeCommand();
	}

	/* (non-Javadoc)
	 * @see org.fosstrak.reader.testclient.command.NotificationChannelSerializer#getAllNotificationTriggers()
	 */
	public String getAllNotificationTriggers() {
		resetCommand();
		ncCommand.setGetAllNotificationTriggers(cmdFactory.createNoParamType());
		return serializeCommand();
	}

	/* (non-Javadoc)
	 * @see org.fosstrak.reader.testclient.command.NotificationChannelSerializer#readQueuedData(boolean)
	 */
	public String readQueuedData(boolean clearBuffer) {
		resetCommand();
		NotificationChannelCommand.ReadQueuedData rq = cmdFactory.createNotificationChannelCommandReadQueuedData();
		rq.setClearBuffer(clearBuffer);
		ncCommand.setReadQueuedData(rq);
		return serializeCommand();
	}
	
	/* (non-Javadoc)
	 * @see org.fosstrak.reader.testclient.command.NotificationChannelSerializer#readQueuedData(boolean)
	 */
	public String readQueuedData() {
		resetCommand();
		NotificationChannelCommand.ReadQueuedData rq = cmdFactory.createNotificationChannelCommandReadQueuedData();
		rq.setClearBuffer(true);
		ncCommand.setReadQueuedData(rq);
		return serializeCommand();
	}

	/**
	 * Serializes an NotificationChannel command.
	 */
	public String serializeCommand() {
		command.setNotificationChannel(ncCommand);
		return super.serializeCommand();
	}

}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
免费一级欧美片在线观看| 欧美高清一级片在线观看| 亚洲国产日韩综合久久精品| 欧美专区日韩专区| 视频一区二区三区入口| 日韩欧美国产一区二区在线播放| 免播放器亚洲一区| 久久久久国产精品人| 99久久婷婷国产综合精品电影| 一区二区免费看| 4438x亚洲最大成人网| 狠狠色狠狠色综合日日91app| 国产精品色在线| 色婷婷综合久久久中文一区二区| 亚洲一区二区三区影院| 日韩视频123| k8久久久一区二区三区 | 92精品国产成人观看免费| 一区二区三区国产| 精品欧美乱码久久久久久 | 国产乱子轮精品视频| 国产精品色在线| 91精品国产91久久久久久最新毛片| 久久99热这里只有精品| 中文字幕视频一区二区三区久| 欧美自拍丝袜亚洲| 国产美女精品在线| 亚洲国产人成综合网站| 久久久蜜桃精品| 欧美精选一区二区| 国产成人精品免费视频网站| 亚洲午夜精品网| 久久人人超碰精品| 欧美专区日韩专区| 成人综合婷婷国产精品久久| 午夜电影久久久| 亚洲视频综合在线| 久久久亚洲国产美女国产盗摄 | 国产精品一区专区| 亚洲成人精品在线观看| 久久久久久久久久久久久久久99| 欧洲一区在线电影| 成人av中文字幕| 激情国产一区二区| 亚洲妇女屁股眼交7| 中文一区一区三区高中清不卡| 91精品蜜臀在线一区尤物| 成人app网站| 国产电影一区在线| 久久成人免费网| 亚洲成年人影院| 亚洲日本乱码在线观看| 国产视频亚洲色图| 精品日韩在线观看| 欧美日韩一区在线观看| eeuss鲁片一区二区三区在线观看| 麻豆成人在线观看| 天天综合日日夜夜精品| 亚洲精品一二三| 亚洲三级在线观看| 国产精品初高中害羞小美女文| 久久色视频免费观看| 日韩一本二本av| 日韩一区二区在线看| 欧美三电影在线| 欧美亚州韩日在线看免费版国语版| 成人的网站免费观看| 成人黄色av电影| 成人小视频免费观看| 国产精品1区二区.| 国产乱妇无码大片在线观看| 韩国视频一区二区| 久久国内精品自在自线400部| 蜜臀av性久久久久av蜜臀妖精| 日精品一区二区| 美女mm1313爽爽久久久蜜臀| 麻豆国产欧美日韩综合精品二区| 日本va欧美va瓶| 老司机精品视频在线| 久久99国产精品免费| 国产一区亚洲一区| 国产成人免费在线观看不卡| 成人av先锋影音| 色综合一个色综合| 欧美日韩精品是欧美日韩精品| 精品视频999| 欧美一区二区三区色| 亚洲精品一区在线观看| 国产亚洲精品久| 亚洲日本乱码在线观看| 亚洲成人综合视频| 狠狠色综合播放一区二区| 国产成人免费视| 97久久精品人人做人人爽50路 | 日本欧美一区二区在线观看| 蜜臀av性久久久久蜜臀av麻豆| 韩日欧美一区二区三区| 成人午夜av电影| 91成人免费在线| 日韩三级视频在线看| 久久久久久久免费视频了| 国产精品每日更新| 亚洲一区欧美一区| 久久99久久99精品免视看婷婷 | 亚洲精品国产品国语在线app| 亚洲国产精品欧美一二99| 日韩制服丝袜先锋影音| 国产成人免费视频网站| 欧美亚洲一区三区| 精品剧情v国产在线观看在线| 国产精品乱人伦| 丝瓜av网站精品一区二区| 国产精品 欧美精品| 欧美三级韩国三级日本三斤| 2020国产精品| 亚洲午夜视频在线观看| 国产一区二区三区四| 在线观看一区二区精品视频| 久久综合国产精品| 亚洲综合激情另类小说区| 国内久久精品视频| 欧美日韩在线电影| 欧美国产乱子伦| 日韩av中文字幕一区二区| 粉嫩嫩av羞羞动漫久久久| 4438x亚洲最大成人网| 一区精品在线播放| 久久精品国产精品亚洲红杏| 91啪在线观看| 久久久夜色精品亚洲| 日本美女一区二区三区视频| 99精品欧美一区二区三区小说| 日韩一区二区精品在线观看| 亚洲视频一区在线| 国产盗摄视频一区二区三区| 欧美一区二区视频免费观看| 亚洲精品高清在线观看| 成人午夜av在线| 久久日韩精品一区二区五区| 日韩高清一级片| 欧美三级资源在线| 亚洲精品日韩专区silk| 国产福利一区二区三区视频| 欧美一级淫片007| 亚洲va欧美va国产va天堂影院| 99精品欧美一区| 日本一区二区视频在线| 国产一区二区三区四区在线观看| 欧美一区二区高清| 亚洲国产乱码最新视频| 色av综合在线| 亚洲人成人一区二区在线观看| 成人精品高清在线| 国产日韩欧美综合在线| 国产精品99久久久久久有的能看| 日韩午夜精品电影| 日韩电影免费在线看| 欧美巨大另类极品videosbest| 亚洲激情五月婷婷| 日本黄色一区二区| 亚洲欧美日韩国产另类专区| 91污在线观看| 亚洲欧美激情一区二区| 91亚洲精品久久久蜜桃网站 | 一二三四区精品视频| 91在线视频播放地址| 国产精品久久久久一区| 91美女片黄在线观看| 一区二区三区加勒比av| 欧美怡红院视频| 天天综合网 天天综合色| 欧美精品日日鲁夜夜添| 青青草原综合久久大伊人精品优势| 欧美理论在线播放| 久久99九九99精品| 国产欧美日韩在线视频| 成人av动漫网站| 亚洲影院免费观看| 在线电影院国产精品| 精品在线观看免费| 国产日韩欧美一区二区三区乱码 | 激情六月婷婷久久| 国产欧美精品在线观看| 99国产欧美另类久久久精品| 亚洲国产日日夜夜| 欧美一级理论片| 懂色中文一区二区在线播放| 17c精品麻豆一区二区免费| 日本道精品一区二区三区| 五月开心婷婷久久| 精品国产乱码久久久久久蜜臀| 粉嫩蜜臀av国产精品网站| 亚洲男女毛片无遮挡| 7777精品伊人久久久大香线蕉最新版 | 欧美日本免费一区二区三区| 美国毛片一区二区| 欧美国产视频在线| 欧美性猛交xxxxxx富婆| 国产乱码精品一区二区三区av | 精品国产乱码久久久久久久久 |