|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tivoli.twg.libs.TWGNLSString
Sendable NLS string object, based on DataValue interface. Specifies a pair of strings: an NLS bundle class plus a string ID, and is used to communicate references to translated strings. These are intended for use when data needs to be communicated to and from both Java and non-Java code.
Field Summary |
---|
Fields inherited from interface com.tivoli.twg.libs.DataValue |
---|
BOOLEAN_ARRAY_TYPE, BOOLEAN_TYPE, BYTE_ARRAY_TYPE, BYTE_TYPE, DATE_TYPE, DOUBLE_ARRAY_TYPE, DOUBLE_TYPE, FLOAT_ARRAY_TYPE, FLOAT_TYPE, FORMATTED_STRING_TYPE, INTEGER_ARRAY_TYPE, INTEGER_TYPE, LOCALESPECSTRING_TYPE, LONG_ARRAY_TYPE, LONG_TYPE, NLSSTRING_TYPE, NONE_TYPE, SHORT_ARRAY_TYPE, SHORT_TYPE, STRING_ARRAY_TYPE, STRING_TYPE |
Constructor Summary | |
---|---|
TWGNLSString()
Default constructor : null string |
|
TWGNLSString(java.lang.String v,
java.lang.String nls)
Construct with initial value |
Method Summary | |
---|---|
int |
getDataValueType()
Get DataValue type |
java.lang.String |
getNLSBundle()
Get current NLS bundle ID |
java.lang.String |
getStringID()
Get current string ID |
int |
readDataValue(byte[] buf,
int start)
Read value from byte array into object |
void |
setValue(java.lang.String v,
java.lang.String nls)
Set new value |
java.lang.String |
toNLSString(java.util.Locale loc)
Get value as string for given locale |
java.lang.String |
toString()
Get value as string |
java.lang.String |
toString(java.util.Locale loc)
Get value as string for given locale |
int |
writeDataValue(byte[] buf,
int start)
Write value into byte array : used for sending data value |
int |
writeDataValueLength()
Get length needed to write value into byte array : used for sending data value |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public TWGNLSString()
public TWGNLSString(java.lang.String v, java.lang.String nls)
v
- - value of string IDnls
- - name of NLS ResourceBundle class containing stringMethod Detail |
public java.lang.String toString()
public java.lang.String toString(java.util.Locale loc)
loc
- - locale requestedpublic java.lang.String toNLSString(java.util.Locale loc)
toNLSString
in interface DataValue
loc
- - locale requestedpublic void setValue(java.lang.String v, java.lang.String nls)
v
- - new valuenls
- - new NLS bundle valuepublic java.lang.String getStringID()
public java.lang.String getNLSBundle()
public int writeDataValue(byte[] buf, int start)
writeDataValue
in interface DataValue
buf
- - buffer to write data intostart
- - starting index for data write in 'buf'
public int writeDataValueLength()
writeDataValueLength
in interface DataValue
public int readDataValue(byte[] buf, int start)
readDataValue
in interface DataValue
buf
- - buffer to read fromstart
- - index of start of data to be read
public int getDataValueType()
getDataValueType
in interface DataValue
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |