com.poscoict.glueframework.message
Class GlueMESMessageImpl

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<String,Object>
          extended by com.poscoict.glueframework.message.GlueMESMessageImpl
All Implemented Interfaces:
GlueMessage, Serializable, Cloneable, Map<String,Object>

public class GlueMESMessageImpl
extends HashMap<String,Object>
implements GlueMessage

Message Layout에 따라 생성된 Message 및 각 Message Attribute별 정보를 Handling하는 Implement Class

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Field Summary
protected  String ifd
          Message 송수신을 위한 Interface ID
protected  String tc
          송수신되는 Message(TC:전문) Data
protected  String tcId
          TC(전문) ID
 
Constructor Summary
GlueMESMessageImpl()
           
 
Method Summary
 Object get(String attributeName)
          returns the value for the attributeName
 Map<String,Object> getAttributes()
          Returns all the attributes
 Date getDate(String attributeName)
          attributeName에 대한 값을 Date으로 반환한다.
 Number getNumber(String attributeName)
          attributeName에 대한 값을 Number으로 반환한다.
 String getString(String attributeName)
          attributeName에 대한 값을 String으로 반환한다.
 String getTC()
          Message(TC:전문)을 가져온다
 String getTCID()
          get Transaction Code ID
 void logDebug(Object key, Object value)
           
 void setObject(String attributeName, Object value)
          특정 attributeName에 대한 값을 set 해준다.
 void setString(String attributeName, String value)
          특정 attributeName에 대한 String값을 저장해준다.
 void setStringToDate(String attributeName, String value)
          특정 attributeName에 대한 Strring값을 Date로 set 해준다.
 void setStringToNumber(String attributeName, String value)
          특정 attributeName에 대한 Strring값을 Number(BigDecimal)로 set 해준다.
 void setTC(String tc)
          Message(TC:전문)을 저장한다
 void setTCID(String tcId)
          set Transaction Code ID
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Field Detail

tcId

protected String tcId
TC(전문) ID


tc

protected String tc
송수신되는 Message(TC:전문) Data


ifd

protected String ifd
Message 송수신을 위한 Interface ID

Constructor Detail

GlueMESMessageImpl

public GlueMESMessageImpl()
Method Detail

get

public Object get(String attributeName)
Description copied from interface: GlueMessage
returns the value for the attributeName

Specified by:
get in interface GlueMessage
Parameters:
attributeName - attribute name
Returns:
해당 attribute의 값(Object Type)

setObject

public void setObject(String attributeName,
                      Object value)
Description copied from interface: GlueMessage
특정 attributeName에 대한 값을 set 해준다.

Specified by:
setObject in interface GlueMessage
Parameters:
attributeName - attribute name
value - set 할 값 (Object Type)

setStringToNumber

public void setStringToNumber(String attributeName,
                              String value)
Description copied from interface: GlueMessage
특정 attributeName에 대한 Strring값을 Number(BigDecimal)로 set 해준다.

Specified by:
setStringToNumber in interface GlueMessage
Parameters:
attributeName - attribute name
value - set 할 값 (String Type)

setStringToDate

public void setStringToDate(String attributeName,
                            String value)
Description copied from interface: GlueMessage
특정 attributeName에 대한 Strring값을 Date로 set 해준다.

Specified by:
setStringToDate in interface GlueMessage
Parameters:
attributeName - attribute name
value - set 할 값 (String Type)

getTCID

public String getTCID()
Description copied from interface: GlueMessage
get Transaction Code ID

Specified by:
getTCID in interface GlueMessage
Returns:
Transaction Code의 ID

setTCID

public void setTCID(String tcId)
Description copied from interface: GlueMessage
set Transaction Code ID

Specified by:
setTCID in interface GlueMessage
Parameters:
tcId - Transaction Code의 ID

getTC

public String getTC()
Description copied from interface: GlueMessage
Message(TC:전문)을 가져온다

Specified by:
getTC in interface GlueMessage
Returns:
String Object

setTC

public void setTC(String tc)
Description copied from interface: GlueMessage
Message(TC:전문)을 저장한다

Specified by:
setTC in interface GlueMessage

getAttributes

public Map<String,Object> getAttributes()
Description copied from interface: GlueMessage
Returns all the attributes

Specified by:
getAttributes in interface GlueMessage
Returns:
모든 attribute에 대한 값(Map Type)

getString

public String getString(String attributeName)
attributeName에 대한 값을 String으로 반환한다.

Parameters:
attributeName - attribute name
Returns:
해당 attribute의 값(String Type)

setString

public void setString(String attributeName,
                      String value)
특정 attributeName에 대한 String값을 저장해준다.

Parameters:
attributeName - attribute name
value - set 할 값 (String Type)

getNumber

public Number getNumber(String attributeName)
attributeName에 대한 값을 Number으로 반환한다.

Parameters:
attributeName - attribute name
Returns:
해당 attribute의 값(Number Type)

getDate

public Date getDate(String attributeName)
attributeName에 대한 값을 Date으로 반환한다.

Parameters:
attributeName - attribute name
Returns:
해당 attribute의 값(Date Type)

logDebug

public void logDebug(Object key,
                     Object value)


Copyright © 2013–2016 POSCO ICT. All rights reserved.