|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.fosstrak.ale.server.PatternDataField
public class PatternDataField
This clas represents a data field of a tag, filter or group pattern.
Constructor Summary | |
---|---|
PatternDataField(java.lang.String stringRepresentation,
PatternUsage usage)
Constructor parses and validates the string representation of the data field. |
Method Summary | |
---|---|
int |
getHigh()
This method returns the higher limit of the range of this data field if this data field contains a range and throws an exception otherwise. |
int |
getLow()
This method returns the lower limit of the range of this data field if this data field contains a range and throws an exception otherwise. |
int |
getValue()
This method returns the value of this data field if this data field contains an int and throws an exception otherwise. |
boolean |
isAsterisk()
This method indicates if this data field contains an asterisk. |
boolean |
isDisjoint(PatternDataField field)
This method indicates if this data field is disjoint to the specified data field. |
boolean |
isInt()
This method indicates if this data field contains an int. |
boolean |
isMember(int fieldValue)
This method indicates if the specified field value is a member of this data field. |
boolean |
isRange()
This method indicates if this data field contains a range. |
boolean |
isX()
This method indicates if this data field contains an X. |
java.lang.String |
toString()
This method returns a string representation of this data field. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PatternDataField(java.lang.String stringRepresentation, PatternUsage usage) throws org.fosstrak.ale.wsdl.ale.epcglobal.ECSpecValidationExceptionResponse
stringRepresentation
- of the data fieldusage
- of the pattern this data field belongs to
org.fosstrak.ale.wsdl.ale.epcglobal.ECSpecValidationException
- if the data field is invalid
org.fosstrak.ale.wsdl.ale.epcglobal.ECSpecValidationExceptionResponse
Method Detail |
---|
public boolean isAsterisk()
public boolean isX()
public boolean isInt()
public boolean isRange()
public int getValue() throws org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationException
- if the data field contains not an int
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse
public int getLow() throws org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationException
- if the data field contains not a range
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse
public int getHigh() throws org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationException
- if the data field contains not a range
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse
public boolean isDisjoint(PatternDataField field) throws org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse
field
- to check disjointness
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationException
- if an implementation exception occurs
org.fosstrak.ale.wsdl.ale.epcglobal.ImplementationExceptionResponse
public boolean isMember(int fieldValue)
fieldValue
- to check for member.
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |