Eloquence JDLG Plugin API Reference
Version 1.2


com.eloquence.api
Class UnifiedData

java.lang.Object
  extended by com.eloquence.api.UnifiedData

public class UnifiedData
extends java.lang.Object

Data container to hold string or integer values.


Constructor Summary
UnifiedData(int intData)
          Constructs a new UnifiedData object containing an integer value.
UnifiedData(java.lang.String strData)
          Constructs a new UnifiedData object containing a string value.
 
Method Summary
 int getIntData()
          Returns the contained value as int.
 java.lang.String getStringData()
          Returns the contained value as String.
 boolean isStringData()
          Returns the type of the contained value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnifiedData

public UnifiedData(java.lang.String strData)
Constructs a new UnifiedData object containing a string value.


UnifiedData

public UnifiedData(int intData)
Constructs a new UnifiedData object containing an integer value.

Method Detail

getStringData

public java.lang.String getStringData()
Returns the contained value as String.
An integer value is implicitly converted.

Returns:
the contained value as String

getIntData

public int getIntData()
Returns the contained value as int.
A string value is implicitly converted if possible.

Returns:
the contained value as int
Throws:
java.lang.NumberFormatException - on a failed string value conversion

isStringData

public boolean isStringData()
Returns the type of the contained value.

Returns:
true - the value type is String
false - the value type is int


Copyright © 2008-2015 Marxmeier Software AG | Eloquence | JDLG