|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpops.ale.epc.spec.grouping.string.GroupOperator
public class GroupOperator
This class represents a Group Operator implementation as defined in the ALE
specification.
A group operator object wraps a list of disjoint
grouping patterns
(see addPattern(java.lang.String)
).
The aim of this class is to provide a facility for generating a group name corresponding to
an EPC (see group(Epc)
).
GroupPattern
,
Epc
Constructor Summary | |
---|---|
GroupOperator()
Constructor |
Method Summary | |
---|---|
void |
addPattern(java.lang.String patternUri)
Adds a grouping pattern to the group list. |
void |
cleanUp()
cleanup function that erases all patterns from group. |
java.lang.String |
group(Epc epc)
Gives the group name for a given epc code. |
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GroupOperator()
Method Detail |
---|
public void addPattern(java.lang.String patternUri) throws java.lang.IllegalArgumentException
patternGroup
- The group pattern String to add.
java.lang.IllegalArgumentException
- if the given patternGroup is disjoint with the pattern group listpublic java.lang.String group(Epc epc)
epc
- code to match against a group pattern
public void cleanUp()
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |