com.ibm.dse.tools.workbench.base
Interface Types
- public interface Types
Defines the behavior of a parser and formater between String objects and different types of objects.
Method Summary |
java.lang.String |
format(java.lang.Object anObject)
Formats anObject to a String format. |
java.lang.Object |
parse(java.lang.String aString,
java.lang.String aType)
Parses aString String to a aType object. |
format
public java.lang.String format(java.lang.Object anObject)
throws FormatException
- Formats anObject to a String format.
- Parameters:
anObject
- Object The object to be formated- Returns:
- String - The string format of anObject.
- Throws:
- FormatException - The object can not be formated.
parse
public java.lang.Object parse(java.lang.String aString,
java.lang.String aType)
throws ParseException
- Parses aString String to a aType object.
- Parameters:
aString
- String The String object to be parsed.aType
- String The type of the target object.- Returns:
- Object - The aType format of aString.
- Throws:
- ParseException - The object can not be parsed.