|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.fosstrak.capturingapp.util.Util
public class Util
helper class to perform transformations on ECReports.
Nested Class Summary | |
---|---|
static interface |
Util.EPCSelector
Simple interface that allows you to select an EPC programmatically (eg. raw-hex, tag, |
Field Summary | |
---|---|
static Util.EPCSelector |
DEFAULT_SELECTOR
the default selector. |
static Util.EPCSelector |
selectEPC
selector that returns the epc . |
static Util.EPCSelector |
selectRawDecimal
selector that returns the raw decimal. |
static Util.EPCSelector |
selectRawHex
selector that returns the raw hex. |
static Util.EPCSelector |
selectTag
selector that returns the tag. |
Constructor Summary | |
---|---|
Util()
|
Method Summary | |
---|---|
static java.util.List<org.fosstrak.ale.xsd.epcglobal.EPC> |
extractEPC(Util.EPCSelector selector,
org.fosstrak.ale.xsd.ale.epcglobal.ECReport report)
extracts EPC values from the report. when the selector is set to null , then the default selector will be chosen. |
static java.util.List<org.fosstrak.ale.xsd.epcglobal.EPC> |
extractEPC(Util.EPCSelector selector,
org.fosstrak.ale.xsd.ale.epcglobal.ECReports reports)
extracts EPC values from the reports. when the selector is set to null , then the default selector will be chosen. |
static java.util.List<org.fosstrak.ale.xsd.ale.epcglobal.ECReportGroupListMember> |
extractReportMembers(org.fosstrak.ale.xsd.ale.epcglobal.ECReport report)
extracts all the members containing the EPCs from the report. |
static java.util.List<org.fosstrak.ale.xsd.ale.epcglobal.ECReportGroupListMember> |
extractReportMembers(org.fosstrak.ale.xsd.ale.epcglobal.ECReports reports)
extracts all the members containing the EPCs from the reports. |
static boolean |
fromReader(java.lang.String readerName,
org.fosstrak.ale.xsd.ale.epcglobal.ECReportGroupListMember member)
checks if a member was retrieved by a given reader. |
static java.lang.String |
printGroupMember(org.fosstrak.ale.xsd.ale.epcglobal.ECReportGroupListMember member)
helper to prepare a nice pretty print of a group member of a ECReport. |
static java.lang.String |
printReport(org.fosstrak.ale.xsd.ale.epcglobal.ECReport report)
helper to prepare a nice pretty print of a whole ECReport. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Util.EPCSelector selectRawHex
public static final Util.EPCSelector selectRawDecimal
public static final Util.EPCSelector selectTag
public static final Util.EPCSelector selectEPC
public static final Util.EPCSelector DEFAULT_SELECTOR
Constructor Detail |
---|
public Util()
Method Detail |
---|
public static boolean fromReader(java.lang.String readerName, org.fosstrak.ale.xsd.ale.epcglobal.ECReportGroupListMember member)
readerName
- the name of the reader to check.member
- the member to inspect.
public static java.util.List<org.fosstrak.ale.xsd.ale.epcglobal.ECReportGroupListMember> extractReportMembers(org.fosstrak.ale.xsd.ale.epcglobal.ECReports reports)
reports
- the report to "digest".
public static java.util.List<org.fosstrak.ale.xsd.ale.epcglobal.ECReportGroupListMember> extractReportMembers(org.fosstrak.ale.xsd.ale.epcglobal.ECReport report)
report
- the report to "digest".
public static java.util.List<org.fosstrak.ale.xsd.epcglobal.EPC> extractEPC(Util.EPCSelector selector, org.fosstrak.ale.xsd.ale.epcglobal.ECReports reports)
null
, then the default selector will be chosen.
selector
- the selector selecting the matching EPCs.reports
- the reports from where to select the EPCs.
public static java.util.List<org.fosstrak.ale.xsd.epcglobal.EPC> extractEPC(Util.EPCSelector selector, org.fosstrak.ale.xsd.ale.epcglobal.ECReport report)
null
, then the default selector will be chosen.
selector
- the selector selecting the matching EPCs.report
- the report from where to select the EPCs.
public static java.lang.String printReport(org.fosstrak.ale.xsd.ale.epcglobal.ECReport report)
report
- the ECReport to print.
public static java.lang.String printGroupMember(org.fosstrak.ale.xsd.ale.epcglobal.ECReportGroupListMember member)
member
- the member to print.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |