org.fosstrak.llrp.client
Class LLRPMessageItem

java.lang.Object
  extended by org.fosstrak.llrp.client.LLRPMessageItem

public class LLRPMessageItem
extends java.lang.Object

This wrapper class for LLRP Message. Some extended attributes added for Repository use.

Version:
1.0
Author:
Haoning Zhang, sawielan

Field Summary
static int MARK_INCOMING
          Static DB field value for Imcoming Message.
static int MARK_OUTGOING
          Static DB field value for Outgoing Message
 
Constructor Summary
LLRPMessageItem()
          Default Constructor
 
Method Summary
 java.lang.String getAdapter()
          Get Adapter Logic Name
 java.lang.String getComment()
          Get the Message comments
 java.lang.String getContent()
          Get the Message Content as String
 java.lang.String getId()
          Get the Message Id
 int getMark()
          Get the mark of the Message Static value MARK_INCOMING for incoming messages Static value MARK_OUTGOING for outgoing messages
 java.lang.String getMessageType()
          Get the Message Type.
 java.lang.String getReader()
          Get the Reader Logical Name, without Adapter Logical Name.
 java.lang.String getStatusCode()
          Get the Status Code.
 java.sql.Timestamp getTime()
          Get the Message issue time
 java.lang.String getUniqueName()
          Get the unique reader name (Adapter Name + Reader Name).
 java.lang.String prettyPrint()
          creates a pretty print of the llrp message item.
 void setAdapter(java.lang.String aAdapterId)
          Set Adapter Logic Name
 void setComment(java.lang.String comment)
          Set the Message comments
 void setContent(java.lang.String content)
          Set the Message Content
 void setId(java.lang.String aId)
          Set the Message Id
 void setMark(int aMark)
          Set the mark of the Message Static value MARK_INCOMING for incoming messages Static value MARK_OUTGOING for outgoing messages
 void setMessageType(java.lang.String messageType)
          Set the Message Type.
 void setReader(java.lang.String aReader)
          Set the Reader Logical Name, without Adapter Logical Name.
 void setStatusCode(java.lang.String statusCode)
          Set the Status Code.
 void setTime(java.sql.Timestamp ts)
          Set the Message issue time
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MARK_INCOMING

public static final int MARK_INCOMING
Static DB field value for Imcoming Message.

See Also:
Constant Field Values

MARK_OUTGOING

public static final int MARK_OUTGOING
Static DB field value for Outgoing Message

See Also:
Constant Field Values
Constructor Detail

LLRPMessageItem

public LLRPMessageItem()
Default Constructor

Method Detail

getUniqueName

public java.lang.String getUniqueName()
Get the unique reader name (Adapter Name + Reader Name).

Returns:
Unique Reader Name

getId

public java.lang.String getId()
Get the Message Id

Returns:
Message Id

setId

public void setId(java.lang.String aId)
Set the Message Id

Parameters:
aId - Message Id

getContent

public java.lang.String getContent()
Get the Message Content as String

Returns:
Message Content

setContent

public void setContent(java.lang.String content)
Set the Message Content

Parameters:
content - Message Content

getReader

public java.lang.String getReader()
Get the Reader Logical Name, without Adapter Logical Name.

Returns:
Reader Logical Name

setReader

public void setReader(java.lang.String aReader)
Set the Reader Logical Name, without Adapter Logical Name.

Parameters:
aReader - Reader Logical Name

getMessageType

public java.lang.String getMessageType()
Get the Message Type.

Returns:
Message Type

setMessageType

public void setMessageType(java.lang.String messageType)
Set the Message Type.

Parameters:
messageType - Message Type

getStatusCode

public java.lang.String getStatusCode()
Get the Status Code.

Returns:
Status Code

setStatusCode

public void setStatusCode(java.lang.String statusCode)
Set the Status Code.

Parameters:
statusCode - Status Code

getComment

public java.lang.String getComment()
Get the Message comments

Returns:
Message comments

setComment

public void setComment(java.lang.String comment)
Set the Message comments

Parameters:
comment - Message comments

getTime

public java.sql.Timestamp getTime()
Get the Message issue time

Returns:
Issue Time

setTime

public void setTime(java.sql.Timestamp ts)
Set the Message issue time

Parameters:
ts - Issue Time

getMark

public int getMark()
Get the mark of the Message Static value MARK_INCOMING for incoming messages Static value MARK_OUTGOING for outgoing messages

Returns:
Message Mark

setMark

public void setMark(int aMark)
Set the mark of the Message Static value MARK_INCOMING for incoming messages Static value MARK_OUTGOING for outgoing messages

Parameters:
aMark - Message Mark

getAdapter

public java.lang.String getAdapter()
Get Adapter Logic Name

Returns:
Adapter Logic Name

setAdapter

public void setAdapter(java.lang.String aAdapterId)
Set Adapter Logic Name

Parameters:
aAdapterId - Adapter Logic Name

prettyPrint

public java.lang.String prettyPrint()
creates a pretty print of the llrp message item.

Returns:
a string holding the pretty print.


Copyright © 2009. All Rights Reserved.