File | Line |
---|
org\fosstrak\reader\rp\proxy\msg\CommandFactory.java | 261 |
org\fosstrak\reader\rp\proxy\msg\CommandFactory.java | 854 |
SourceSerializer srcCommand = new org.fosstrak.reader.rp.proxy.msg.stubs.serializers.text.SourceSerializerImpl(getNextId(), target);
if (command.equals("create")) {
return srcCommand.create(params[0].getString());
}
else if (command.equals("getName")) {
return srcCommand.getName();
}
else if (command.equals("isFixed")) {
return srcCommand.isFixed();
}
else if (command.equals("addReadPoints")) {
ReadPoint[] rps = toReadPointArray(params[0].getCollection());
return srcCommand.addReadPoints(rps);
}
else if (command.equals("removeReadPoints")) {
ReadPoint[] rps = toReadPointArray(params[0].getCollection());
return srcCommand.removeReadPoints(rps);
}
else if (command.equals("removeAllReadPoints")) {
return srcCommand.removeAllReadPoints();
}
else if (command.equals("getReadPoint")) {
return srcCommand.getReadPoint(params[0].getString());
}
else if (command.equals("getAllReadPoints")) {
return srcCommand.getAllReadPoints();
}
else if (command.equals("addReadTriggers")) {
Trigger[] rtrg = toTriggerArray(params[0].getCollection());
return srcCommand.addReadTriggers(rtrg);
}
else if (command.equals("removeReadTriggers")) {
Trigger[] rtrgs = toTriggerArray(params[0].getCollection());
return srcCommand.removeReadTriggers(rtrgs);
}
else if (command.equals("removeAllReadTriggers")) {
return srcCommand.removeAllReadTriggers();
}
else if (command.equals("getReadTrigger")) {
return srcCommand.getReadTrigger(params[0].getString());
}
else if (command.equals("getAllReadTriggers")) {
return srcCommand.getAllReadTriggers();
}
else if (command.equals("addTagSelectors")) {
TagSelector[] tss = toTagSelectorArray(params[0].getCollection());
return srcCommand.addTagSelectors(tss);
}
else if (command.equals("removeTagSelectors")) {
TagSelector[] tss = toTagSelectorArray(params[0].getCollection());
return srcCommand.removeTagSelectors(tss);
}
else if (command.equals("removeAllTagSelectors")) {
return srcCommand.removeAllTagSelectors();
}
else if (command.equals("getTagSelector")) {
return srcCommand.getTagSelector(params[0].getString());
}
else if (command.equals("getAllTagSelectors")) {
return srcCommand.getAllTagSelectors();
}
else if (command.equals("getGlimpsedTimeout")) {
return srcCommand.getGlimpsedTimeout();
}
else if (command.equals("setGlimpsedTimeout")) {
return srcCommand.setGlimpsedTimeout(params[0].getInt());
}
else if (command.equals("getObservedThreshold")) {
return srcCommand.getObservedThreshold();
}
else if (command.equals("setObservedThreshold")) {
return srcCommand.setObservedThreshold(params[0].getInt());
}
else if (command.equals("getObservedTimeout")) {
return srcCommand.getObservedTimeout();
}
else if (command.equals("setObservedTimeout")) {
return srcCommand.setObservedTimeout(params[0].getInt());
}
else if (command.equals("getLostTimeout")) {
return srcCommand.getLostTimeout();
}
else if (command.equals("setLostTimeout")) {
return srcCommand.setLostTimeout(params[0].getInt());
}
else if (command.equals("rawReadIDs")) {
SourceCommand.RawReadIDs r = cmdFactory.createSourceCommandRawReadIDs();
if (params.length > 0) { //optional parameter is set
try{
DataSelector ds = DataSelector.create(params[0].getString());
return srcCommand.rawReadIDs(ds);
} catch (Exception e) {}
} else {
return srcCommand.rawReadIDs(null);
}
}
else if (command.equals("readIDs")) {
SourceCommand.ReadIDs r = cmdFactory.createSourceCommandReadIDs();
if (params.length > 0) { //optional parameter is set
try {
DataSelector ds = DataSelector.create(params[0].getString());
return srcCommand.readIDs(ds);
} catch (Exception e) {}
} else {
return srcCommand.readIDs(null);
}
}
else if (command.equals("read")) {
SourceCommand.Read r = cmdFactory.createSourceCommandRead();
if (params.length > 0) { //optional parameter is set
try {
DataSelector ds = DataSelector.create(params[0].getString());
return srcCommand.read(ds, null); //TODO: set Passwords
} catch (Exception e) {}
} else {
return srcCommand.read(null, null);
}
}
else if (command.equals("writeID")) {
TagSelector[] tagSelectors = null;
String[] passwords = null;
if (params.length > 1) {
passwords = params[1].getArray();
}
if (params.length > 2) {
tagSelectors = toTagSelectorArray(params[2].getCollection());
}
return srcCommand.writeID(params[0].getString(), passwords, tagSelectors);
}
else if (command.equals("write")) {
TagFieldValue[] tagFieldValues = null;
TagSelector[] tagSelectors = null;
String[] passwords = null;
tagFieldValues = toTagFieldValueArray(params[0].getCollection());
if (params.length > 1) {
passwords = params[1].getArray();
}
if (params.length > 2) {
tagSelectors = toTagSelectorArray(params[2].getCollection());
}
return srcCommand.write(tagFieldValues, passwords, tagSelectors);
}
else if (command.equals("kill")) {
String[] passwords = null;
TagSelector[] selectors = null;
if (params.length > 0) {
passwords = params[0].getArray();
}
if (params.length > 1) {
selectors = toTagSelectorArray(params[1].getCollection());
}
return srcCommand.kill(passwords, selectors);
}
else if (command.equals("getReadCyclesPerTrigger")) {
return srcCommand.getReadCyclesPerTrigger();
}
else if (command.equals("getMaxReadDutyCycle")) {
return srcCommand.getMaxReadDutyCycles();
}
else if (command.equals("setReadCyclesPerTrigger")) {
return srcCommand.setReadCyclesPerTrigger(params[0].getInt());
}
else if (command.equals("setMaxReadDutyCycle")) {
return srcCommand.setMaxReadDutyCycles(params[0].getInt());
}
else if (command.equals("setReadTimeout")) {
return srcCommand.setReadTimeout(params[0].getInt());
}
else if (command.equals("getReadTimeout")) {
return srcCommand.getReadTimeout();
}
else if (command.equals("getSession")) {
return srcCommand.getSession();
}
else if (command.equals("setSession")) {
return srcCommand.setSession(params[0].getInt());
}
}
else if (object.equals("ReadPoint")) {
ReadPointSerializer rpCommand = new org.fosstrak.reader.rp.proxy.msg.stubs.serializers.text.ReadPointSerializerImpl(getNextId(), target); |
File | Line |
---|
org\fosstrak\reader\rp\proxy\msg\CommandFactory.java | 98 |
org\fosstrak\reader\rp\proxy\msg\CommandFactory.java | 691 |
ReaderDeviceSerializer rdCommand = new org.fosstrak.reader.rp.proxy.msg.stubs.serializers.text.ReaderDeviceSerializerImpl(getNextId(), target);
if (command.equals("getEPC")) {
return rdCommand.getEPC();
}
else if (command.equals("getManufacturer")) {
return rdCommand.getManufacturer();
}
else if (command.equals("getModel")) {
return rdCommand.getModel();
}
else if (command.equals("getHandle")) {
return rdCommand.getHandle();
}
else if (command.equals("setHandle")) {
return rdCommand.setHandle(params[0].getInt());
}
else if (command.equals("getName")) {
return rdCommand.getName();
}
else if (command.equals("setName")) {
return rdCommand.setName(params[0].getString());
}
else if (command.equals("getRole")) {
return rdCommand.getRole();
}
else if (command.equals("setRole")) {
return rdCommand.setRole(params[0].getString());
}
else if (command.equals("getTimeTicks")) {
return rdCommand.getTimeTicks();
}
else if (command.equals("getTimeUTC")) {
return rdCommand.getTimeUTC();
}
else if (command.equals("setTimeUTC")) {
return rdCommand.setTimeUTC(Calendar.getInstance().getTime());
}
else if (command.equals("getManufacturerDescription")) {
return rdCommand.getManufacturerDescription();
}
else if (command.equals("getCurrentSource")) {
return rdCommand.getCurrentSource();
}
else if (command.equals("setCurrentSource")) {
Source src;
try {
src = Source.create(params[0].getString());
return rdCommand.setCurrentSource(src);
} catch (ReaderProtocolException e) {
e.printStackTrace();
return null;
}
}
else if (command.equals("getCurrentDataSelector")) {
return rdCommand.getCurrentDataSelector();
}
else if (command.equals("setCurrentDataSelector")) {
DataSelector ds;
try {
ds = DataSelector.create(params[0].getString());
return rdCommand.setCurrentDataSelector(ds);
} catch (ReaderProtocolException e) {
e.printStackTrace();
return null;
}
}
else if (command.equals("removeSources")) {
Source[] sources = toSourceArray(params[0].getCollection());
return rdCommand.removeSources(sources);
}
else if (command.equals("removeAllSources")) {
return rdCommand.removeAllSources();
}
else if (command.equals("getSource")) {
return rdCommand.getSource(params[0].getString());
}
else if (command.equals("getAllSources")) {
return rdCommand.getAllSources();
}
else if (command.equals("removeDataSelectors")) {
DataSelector[] ds = toDataSelectorArray(params[0].getCollection());
return rdCommand.removeDataSelectors(ds);
}
else if (command.equals("removeAllDataSelectors")) {
return rdCommand.removeAllDataSelectors();
}
else if (command.equals("getDataSelector")) {
return rdCommand.getDataSelector(params[0].getString());
}
else if (command.equals("getAllDataSelectors")) {
return rdCommand.getAllDataSelectors();
}
else if (command.equals("removeNotificationChannels")) {
NotificationChannel[] ncs = toNotificationChannelArray(params[0].getCollection());
return rdCommand.removeNotificationChannels(ncs);
}
else if (command.equals("removeAllNotificationChannels")) {
return rdCommand.removeAllNotificationChannels();
}
else if (command.equals("getNotificationChannel")) {
return rdCommand.getNotificationChannel(params[0].getString());
}
else if (command.equals("getAllNotificationChannels")) {
return rdCommand.getAllNotificationChannels();
}
else if (command.equals("removeTriggers")) {
Trigger[] trgs = toTriggerArray(params[0].getCollection());
return rdCommand.removeTriggers(trgs);
}
else if (command.equals("removeAllTriggers")) {
return rdCommand.removeAllTriggers();
}
else if (command.equals("getTrigger")) {
return rdCommand.getTrigger(params[0].getString());
}
else if (command.equals("getAllTriggers")) {
return rdCommand.getAllTriggers();
}
else if (command.equals("removeTagSelectors")) {
TagSelector[] tss = toTagSelectorArray(params[0].getCollection());
return rdCommand.removeTagSelectors(tss);
}
else if (command.equals("removeAllTagSelectors")) {
return rdCommand.removeAllTagSelectors();
}
else if (command.equals("getTagSelector")) {
return rdCommand.getTagSelector(params[0].getString());
}
else if (command.equals("getAllTagSelectors")) {
return rdCommand.getAllTagSelectors();
}
else if (command.equals("removeTagFields")) {
TagField[] tfs = toTagFieldArray(params[0].getCollection());
return rdCommand.removeTagFields(tfs);
}
else if (command.equals("removeAllTagFields")) {
return rdCommand.removeAllTagFields();
}
else if (command.equals("getTagField")) {
return rdCommand.getTagField(params[0].getString());
}
else if (command.equals("getAllTagFields")) {
return rdCommand.getAllTagFields();
}
else if (command.equals("resetToDefaultSettings")) {
return rdCommand.resetToDefaultSettings();
}
else if (command.equals("reboot")) {
return rdCommand.reboot();
}
else if (command.equals("goodbye")) {
return rdCommand.goodbye();
}
else if (command.equals("getReadPoint")) {
return rdCommand.getReadPoint(params[0].getString());
}
else if (command.equals("getAllReadPoints")) {
return rdCommand.getAllReadPoints();
}
}
else if (object.equals("Source")) {
SourceSerializer srcCommand = new org.fosstrak.reader.rp.proxy.msg.stubs.serializers.text.SourceSerializerImpl(getNextId(), target); |
File | Line |
---|
org\fosstrak\reader\rp\proxy\msg\stubs\serializers\text\CommandSerializerImpl.java | 197 |
org\fosstrak\reader\rp\proxy\msg\stubs\serializers\xml\CommandSerializerImpl.java | 166 |
}
/**
* Converts a String array into a List of Strings
*
* @param strArray
* The String array
* @return the List of Strings
*/
public List toStringList(String[] strArray) {
List list = new ArrayList(strArray.length);
for (int i = 0; i < strArray.length; i++) {
list.add(strArray[i]);
}
return list;
}
/**
* Converts a Source array into a List of Strings
*
* @param srcArray
* The Source array
* @return the List of Strings
*/
public List toStringList(Source[] srcArray) {
List list = new ArrayList(srcArray.length);
for (int i = 0; i < srcArray.length; i++) {
list.add(srcArray[i].getName());
}
return list;
}
/**
* Converts a Trigger array into a List of Strings
*
* @param trgArray
* The Trigger array
* @return the List of Strings
*/
public List toStringList(Trigger[] trgArray) {
List list = new ArrayList(trgArray.length);
for (int i = 0; i < trgArray.length; i++) {
list.add(trgArray[i].getName());
}
return list;
}
/**
* Converts a DataSelector array into a List of Strings
*
* @param dsArray
* The DataSelector array
* @return the List of Strings
*/
public List toStringList(DataSelector[] dsArray) {
List list = new ArrayList(dsArray.length);
for (int i = 0; i < dsArray.length; i++) {
list.add(dsArray[i].getName());
}
return list;
}
/**
* Converts a NotificationChannel array into a List of Strings
*
* @param ncArray
* The NotificationChannel array
* @return the List of Strings
*/
public List toStringList(NotificationChannel[] ncArray) {
List list = new ArrayList(ncArray.length);
for (int i = 0; i < ncArray.length; i++) {
list.add(ncArray[i].getName());
}
return list;
}
/**
* Converts a TagSelector array into a List of Strings
*
* @param tsArray
* The TagSelector array
* @return the List of Strings
*/
public List toStringList(TagSelector[] tsArray) {
List list = new ArrayList(tsArray.length);
for (int i = 0; i < tsArray.length; i++) {
list.add(tsArray[i].getName());
}
return list;
}
/**
* Converts a TagField array into a List of Strings
*
* @param tfArray
* The TagField array
* @return the List of Strings
*/
public List toStringList(TagField[] tfArray) {
List list = new ArrayList(tfArray.length);
for (int i = 0; i < tfArray.length; i++) {
list.add(tfArray[i].getName());
}
return list;
}
/**
* Converts a ReadPoint array into a List of Strings
*
* @param rpArray
* The ReadPoint array
* @return the List of Strings
*/
public List toStringList(ReadPoint[] rpArray) {
List list = new ArrayList(rpArray.length);
for (int i = 0; i < rpArray.length; i++) {
list.add(rpArray[i].getName());
}
return list;
}
/**
* Creates a copy of the internal list of parameters. The list items are
* represented as <code>byte[]</code> used in <source>source.writeID(...)</code>.
*
* @param strArray
* Array of Strings with hex values (passwords, tag ids, ...)
* @return List of <code>byte[]</code>
*/
public List toHexStringList(String[] strArray) {
List hexList = new ArrayList(strArray.length);
for (int i = 0; i < strArray.length; i++) {
byte[] hexArray = HexUtil.hexToByteArray(strArray[i]);
hexList.add(hexArray);
}
return hexList;
}
/**
* Creates a copy of the internal list of parameters. The list items are
* represented as <code>TagFieldValueParamType</code> used in
* <source>source.write(...)</code>.
*
* @param tfArray
* TagFieldValue array
* @return List of <code>TagFieldValueParamType</code>
* @throws JAXBException
* @see org.fosstrak.reader.msg.command.TagFieldValueParamType
*/
public List toTagFieldValueList(TagFieldValue[] tfArray)
throws JAXBException {
List tfvList = new ArrayList(tfArray.length);
for (int i = 0; i < tfArray.length; i++) {
TagFieldValueParamType tfvParam = TextCommandParserHelper.cmdFactory
.createTagFieldValueParamType();
tfvParam.setTagFieldName(tfArray[i].getTagFieldName());
tfvParam.setTagFieldValue(HexUtil.hexToByteArray(tfArray[i]
.getValue()));
tfvList.add(tfvParam);
}
return tfvList;
}
public void setProperty(String name, Object value) { |
File | Line |
---|
org\fosstrak\reader\rp\proxy\msg\CommandFactory.java | 524 |
org\fosstrak\reader\rp\proxy\msg\CommandFactory.java | 1117 |
NotificationChannelSerializer ncCommand = new org.fosstrak.reader.rp.proxy.msg.stubs.serializers.text.NotificationChannelSerializerImpl(getNextId(), target);
if (command.equals("create")) {
return ncCommand.create(params[0].getString(), params[1].getString());
}
else if (command.equals("getName")) {
return ncCommand.getName();
}
else if (command.equals("getAddress")) {
return ncCommand.getAddress();
}
else if (command.equals("getEffectiveAddress")) {
return ncCommand.getEffectiveAddress();
}
else if (command.equals("setAddress")) {
return ncCommand.setAddress(params[0].getString());
}
else if (command.equals("getDataSelector")) {
return ncCommand.getDataSelector();
}
else if (command.equals("setDataSelector")) {
try {
DataSelector ds = DataSelector.create(params[0].getString());
return ncCommand.setDataSelector(ds);
} catch (Exception e) {}
}
else if (command.equals("addSources")) {
Source[] srcs = toSourceArray(params[0].getCollection());
return ncCommand.addSources(srcs);
}
else if (command.equals("removeSources")) {
Source[] srcs = toSourceArray(params[0].getCollection());
return ncCommand.removeSources(srcs);
}
else if (command.equals("getAllSources")) {
return ncCommand.getAllSources();
}
else if (command.equals("addNotificationTriggers")) {
Trigger[] trgs = toTriggerArray(params[0].getCollection());
return ncCommand.addNotificationTriggers(trgs);
}
else if (command.equals("removeNotificationTriggers")) {
Trigger[] trgs = toTriggerArray(params[0].getCollection());
return ncCommand.removeNotificationTriggers(trgs);
}
else if (command.equals("removeAllNotificationTriggers")) {
return ncCommand.removeAllNotificationTriggers();
}
else if (command.equals("getNotificationTrigger")) {
return ncCommand.getNotificationTrigger(params[0].getString());
}
else if (command.equals("getAllNotificationTriggers")) {
return ncCommand.getAllNotificationTriggers();
}
else if (command.equals("readQueuedData")) {
NotificationChannelCommand.ReadQueuedData rq = cmdFactory.createNotificationChannelCommandReadQueuedData();
if (params.length > 0) {
return ncCommand.readQueuedData(params[0].getBoolean());
} else {
return ncCommand.readQueuedData();
}
}
}
else if (object.equals("Trigger")) {
TriggerSerializer trgCommand = new org.fosstrak.reader.rp.proxy.msg.stubs.serializers.text.TriggerSerializerImpl(getNextId(),target); |
File | Line |
---|
org\fosstrak\reader\rp\proxy\msg\CommandFactory.java | 479 |
org\fosstrak\reader\rp\proxy\msg\CommandFactory.java | 1072 |
DataSelectorSerializer dsCommand = new org.fosstrak.reader.rp.proxy.msg.stubs.serializers.text.DataSelectorSerializerImpl(getNextId(), target);
if (command.equals("create")) {
return dsCommand.create(params[0].getString());
}
else if (command.equals("getName")) {
return dsCommand.getName();
}
else if (command.equals("addFieldNames")) {
return dsCommand.addFieldNames(params[0].getArray());
}
else if (command.equals("removeFieldNames")) {
return dsCommand.removeFieldNames(params[0].getArray());
}
else if (command.equals("removeAllFieldNames")) {
return dsCommand.removeAllFieldNames();
}
else if (command.equals("getAllFieldNames")) {
return dsCommand.getAllFieldNames();
}
else if (command.equals("addEventFilters")) {
return dsCommand.addEventFilters(params[0].getArray());
}
else if (command.equals("removeEventFilters")) {
return dsCommand.removeEventFilters(params[0].getArray());
}
else if (command.equals("removeAllEventFilters")) {
return dsCommand.removeAllEventFilters();
}
else if (command.equals("getAllEventFilters")) {
return dsCommand.getAllEventFilters();
}
else if (command.equals("addTagFieldNames")) {
return dsCommand.addTagFieldNames(params[0].getArray());
}
else if (command.equals("removeTagFieldNames")) {
return dsCommand.removeTagFieldNames(params[0].getArray());
}
else if (command.equals("removeAllTagFieldNames")) {
return dsCommand.removeAllTagFieldNames();
}
else if (command.equals("getAllTagFieldNames")) {
return dsCommand.getAllTagFieldNames();
}
}
else if (object.equals("NotificationChannel")) {
NotificationChannelSerializer ncCommand = new org.fosstrak.reader.rp.proxy.msg.stubs.serializers.text.NotificationChannelSerializerImpl(getNextId(), target); |
File | Line |
---|
org\fosstrak\reader\rp\proxy\msg\CommandFactory.java | 630 |
org\fosstrak\reader\rp\proxy\msg\CommandFactory.java | 1223 |
TagFieldSerializer tfCommand = new org.fosstrak.reader.rp.proxy.msg.stubs.serializers.text.TagFieldSerializerImpl(getNextId(), target);
if (command.equals("create")) {
return tfCommand.create(params[0].getString());
}
else if (command.equals("getName")) {
return tfCommand.getName();
}
else if (command.equals("getTagFieldName")) {
return tfCommand.getTagFieldName();
}
else if (command.equals("setTagFieldName")) {
return tfCommand.setTagFieldName(params[0].getString());
}
else if (command.equals("getMemoryBank")) {
return tfCommand.getMemoryBank();
}
else if (command.equals("setMemoryBank")) {
return tfCommand.setMemoryBank(params[0].getInt());
}
else if (command.equals("getOffset")) {
return tfCommand.getOffset();
}
else if (command.equals("setOffset")) {
return tfCommand.setOffset(params[0].getInt());
}
else if (command.equals("getLength")) {
return tfCommand.getLength();
}
else if (command.equals("setLength")) {
return tfCommand.setLength(params[0].getInt());
}
}
else if (object.equals("IOPorts")) {
}
String xmlCommand = serializeCommand(cmd);
return xmlCommand;
} |
File | Line |
---|
org\fosstrak\reader\rp\proxy\msg\CommandFactory.java | 452 |
org\fosstrak\reader\rp\proxy\msg\CommandFactory.java | 1045 |
TagSelectorSerializer tsCommand = new org.fosstrak.reader.rp.proxy.msg.stubs.serializers.text.TagSelectorSerializerImpl(getNextId(), target);
if (command.equals("create")) {
try {
TagField tf = TagField.create(params[1].getString());
return tsCommand.create(params[0].getString(),tf,params[2].getString(), params[3].getString(),params[4].getBoolean());
} catch (Exception e) {}
}
else if (command.equals("getName")) {
return tsCommand.getName();
}
else if (command.equals("getMaxNumberSupported")) {
return tsCommand.getMaxNumberSupported();
}
else if (command.equals("getTagField")) {
return tsCommand.getTagField();
}
else if (command.equals("getValue")) {
return tsCommand.getValue();
}
else if (command.equals("getMask")) {
return tsCommand.getMask();
}
else if (command.equals("getInclusiveFlag")) {
return tsCommand.getInclusiveFlag();
}
}
else if (object.equals("DataSelector")) {
DataSelectorSerializer dsCommand = new org.fosstrak.reader.rp.proxy.msg.stubs.serializers.text.DataSelectorSerializerImpl(getNextId(), target); |
File | Line |
---|
org\fosstrak\reader\rp\proxy\msg\CommandFactory.java | 587 |
org\fosstrak\reader\rp\proxy\msg\CommandFactory.java | 1180 |
TriggerSerializer trgCommand = new org.fosstrak.reader.rp.proxy.msg.stubs.serializers.text.TriggerSerializerImpl(getNextId(),target);
if (command.equals("create")) {
return trgCommand.create(params[0].getString(),params[1].getString(),params[2].getString());
}
else if (command.equals("getMaxNumberSupported")) {
return trgCommand.getMaxNumberSupported();
}
else if (command.equals("getName")) {
return trgCommand.getName();
}
else if (command.equals("getType")) {
return trgCommand.getType();
}
else if (command.equals("getValue")) {
return trgCommand.getValue();
}
else if (command.equals("fire")) {
return trgCommand.fire();
}
}
else if (object.equals("EventType")) {
EventTypeSerializer evCommand = new org.fosstrak.reader.rp.proxy.msg.stubs.serializers.text.EventTypeSerializerImpl(getNextId(), target); |
File | Line |
---|
org\fosstrak\reader\rp\proxy\msg\stubs\serializers\text\ReaderDeviceSerializerImpl.java | 586 |
org\fosstrak\reader\rp\proxy\msg\stubs\serializers\text\SourceSerializerImpl.java | 290 |
return serializeCommand();
}
/*
* (non-Javadoc)
*
* @see org.fosstrak.reader.testclient.command.SourceSerializer#removeTagSelectors(org.fosstrak.reader.TagSelector[])
*/
public String removeTagSelectors(TagSelector[] tagSelectors) {
resetCommand();
if (shortMode) {
setCommandName(TextTokens.CMD_RTS);
} else {
setCommandName(TextTokens.CMD_REMOVE_TAG_SELECTORS);
}
setParameterList(tagSelectors);
return serializeCommand();
}
/*
* (non-Javadoc)
*
* @see org.fosstrak.reader.testclient.command.SourceSerializer#removeAllTagSelectors()
*/
public String removeAllTagSelectors() {
resetCommand();
if (shortMode) {
setCommandName(TextTokens.CMD_RATS);
} else {
setCommandName(TextTokens.CMD_REMOVE_ALL_TAG_SELECTORS);
}
return serializeCommand();
}
/*
* (non-Javadoc)
*
* @see org.fosstrak.reader.testclient.command.SourceSerializer#getTagSelector(java.lang.String)
*/
public String getTagSelector(String name) {
resetCommand();
if (shortMode) {
setCommandName(TextTokens.CMD_GTS);
} else {
setCommandName(TextTokens.CMD_GET_TAG_SELECTOR);
}
setParameter(name);
return serializeCommand();
}
/*
* (non-Javadoc)
*
* @see org.fosstrak.reader.testclient.command.SourceSerializer#getAllTagSelectors()
*/
public String getAllTagSelectors() {
resetCommand();
if (shortMode) {
setCommandName(TextTokens.CMD_GATS);
} else {
setCommandName(TextTokens.CMD_GET_ALL_TAG_SELECTORS);
}
return null; |
File | Line |
---|
org\fosstrak\reader\rp\proxy\msg\stubs\serializers\text\NotificationChannelSerializerImpl.java | 191 |
org\fosstrak\reader\rp\proxy\msg\stubs\serializers\text\ReaderDeviceSerializerImpl.java | 352 |
setParameterList(pSources);
return serializeCommand();
}
/*
* (non-Javadoc)
*
* @see org.fosstrak.reader.testclient.command.ReaderDeviceSerializer#removeAllSources()
*/
public String removeAllSources() {
resetCommand();
if (shortMode) {
setCommandName(TextTokens.CMD_RASRC);
} else {
setCommandName(TextTokens.CMD_REMOVE_ALL_SOURCES);
}
return serializeCommand();
}
/*
* (non-Javadoc)
*
* @see org.fosstrak.reader.testclient.command.ReaderDeviceSerializer#getSource(java.lang.String)
*/
public String getSource(String name) {
resetCommand();
if (shortMode) {
setCommandName(TextTokens.CMD_GSRC);
} else {
setCommandName(TextTokens.CMD_GET_SOURCE);
}
setParameter(name);
return serializeCommand();
}
/*
* (non-Javadoc)
*
* @see org.fosstrak.reader.testclient.command.ReaderDeviceSerializer#getAllSources()
*/
public String getAllSources() {
resetCommand();
if (shortMode) {
setCommandName(TextTokens.CMD_GASRC);
} else {
setCommandName(TextTokens.CMD_GET_ALL_SOURCES);
}
return serializeCommand();
}
/*
* (non-Javadoc)
*
* @see org.fosstrak.reader.testclient.command.ReaderDeviceSerializer#removeDataSelectors(org.fosstrak.reader.testclient.command.DataSelectorSerializer[])
*/
public String removeDataSelectors(DataSelector[] dataSelectors) { |
File | Line |
---|
org\fosstrak\reader\rp\proxy\msg\stubs\serializers\xml\SourceSerializerImpl.java | 540 |
org\fosstrak\reader\rp\proxy\msg\stubs\serializers\xml\SourceSerializerImpl.java | 587 |
w.setData(tfListType);
// Set Selectors if optional parameter is available
if (tagSelectors != null) {
TagSelectorListParamType.List list = cmdFactory
.createTagSelectorListParamTypeList();
TagSelectorListParamType listType = cmdFactory
.createTagSelectorListParamType();
list.getValue().addAll(toStringList(tagSelectors));
listType.setList(list);
w.setSelectors(listType);
}
// Set passwords if optional parameter available
if (passwords != null) {
HexStringListType.List list = cmdFactory
.createHexStringListTypeList();
HexStringListType listType = cmdFactory
.createHexStringListType();
list.getValue().addAll(toHexStringList(passwords));
listType.setList(list);
w.setPasswords(listType);
}
srcCommand.setWrite(w); |