org.llrp.ltk.types
Interface LLRPEnumeration

All Known Implementing Classes:
AccessReportTriggerType, AccessSpecState, AccessSpecStopTriggerType, AirProtocols, AirProtocolsArray, AISpecEventType, AISpecStopTriggerType, AntennaEventType, C1G2BlockEraseResultType, C1G2BlockWriteResultType, C1G2DRValue, C1G2ForwardLinkModulation, C1G2KillResultType, C1G2LockDataField, C1G2LockPrivilege, C1G2LockResultType, C1G2MValue, C1G2ReadResultType, C1G2SpectralMaskIndicator, C1G2StateAwareAction, C1G2StateAwareTarget, C1G2StateUnawareAction, C1G2TagInventoryStateAwareI, C1G2TagInventoryStateAwareS, C1G2TruncateAction, C1G2WriteResultType, CommunicationsStandard, ConnectionAttemptStatusType, GetReaderCapabilitiesRequestedData, GetReaderConfigRequestedData, GPIPortState, IdentificationType, KeepaliveTriggerType, NotificationEventType, RFSurveyEventType, RFSurveySpecStopTriggerType, ROReportTriggerType, ROSpecEventType, ROSpecStartTriggerType, ROSpecState, ROSpecStopTriggerType, StatusCode, TagObservationTriggerType

public interface LLRPEnumeration

LLRPEnumeration for parameters that allow only certain values.


Method Summary
 java.lang.String getName(int value)
          get name of a value if no name can be found for given value return empty string.
 int getValue(java.lang.String name)
          get value of a name representing a value if no value can be found, return -1.
 int intValue()
           
 boolean isValidName(java.lang.String name)
          check if the name stands for an allowed value of this enumeration.
 boolean isValidValue(int value)
          check if a value is allowed for an enumeration.
 void set(int value)
          set the current value of this enumeration to the value given.
 void set(java.lang.String name)
          set the current value of this enumeration to the value identified by given string.
 java.lang.String toString()
           
 

Method Detail

isValidValue

boolean isValidValue(int value)
check if a value is allowed for an enumeration.

Parameters:
value - to set
Returns:
boolean

getValue

int getValue(java.lang.String name)
get value of a name representing a value if no value can be found, return -1.

Parameters:
name - for value
Returns:
int

getName

java.lang.String getName(int value)
get name of a value if no name can be found for given value return empty string.

Parameters:
value - of name
Returns:
String

isValidName

boolean isValidName(java.lang.String name)
check if the name stands for an allowed value of this enumeration.

Parameters:
name - to check
Returns:
boolean

set

void set(java.lang.String name)
set the current value of this enumeration to the value identified by given string.

Parameters:
name - set this enumeration to hold one of the allowed values
Throws:
java.lang.IllegalArgumentException - if the value found for given String is not allowed for this enumeration.

set

void set(int value)
set the current value of this enumeration to the value given.

Parameters:
value - to be set
Throws:
java.lang.IllegalArgumentException - if the value is not allowed for this enumeration.

toString

java.lang.String toString()
Overrides:
toString in class java.lang.Object

intValue

int intValue()


Copyright © 2007 ETH Zurich.