biz.chitec.quarterback.gjsa
Interface ClassParser
- All Known Implementing Classes:
- ClassParsers.ByteArrayCP, ClassParsers.EDateCP, ClassParsers.GenericListCP, ClassParsers.GenericMapCP, ClassParsers.LocaleCP, ClassParsers.LogicExprCP, ClassParsers.NumberedStringCP, ClassParsers.QuickIntArrayCP, ClassParsers.ServerReplyCP, ClassParsers.ServerRequestCP, ClassParsers.SmartCompareExprCP, ClassParsers.TimeZoneCP, ClassParsers.ValueHistoryStorageCP, ClassParsers.VHSValueMarkCP
- public interface ClassParser
Interface for additional class parsers for the object parsing mechanisms of tha GJSA.
- Version:
- $Id: 0d9a45a6661006c11891311cd44d926e67d5d76c $
- Author:
- Dirk Hillbrecht 1997-1999, chitec/Dirk Hillbrecht 2000. Distributed under the terms
of the GNU LGPL.
Method Summary |
java.lang.String |
getID()
Returns a String ID for the object. |
java.lang.String |
obj2Str(java.lang.Object obj)
This method should convert a given object into a string representation. |
java.lang.Object |
str2Obj(Str2ObjParamParser sopp)
Converts a string representation into a Java object. |
obj2Str
public java.lang.String obj2Str(java.lang.Object obj)
- This method should convert a given object into a string representation. It must retrun null if
the object cannot be handled by this parser. Otherwise, it must return only the internal
values of the object.
- Parameters:
obj
- Description of the Parameter
- Returns:
- Description of the Return Value
str2Obj
public java.lang.Object str2Obj(Str2ObjParamParser sopp)
- Converts a string representation into a Java object. This method needs to create an object of
its class and fill it with the values that are given through the Str2ObjParamParser. The
ClassParser may use all of Str2ObjParamParser's internal methods, esp. parseObject() which may
enter a recursive step.
- Parameters:
sopp
- Description of the Parameter
- Returns:
- Description of the Return Value
getID
public java.lang.String getID()
- Returns a String ID for the object. The ID must be unique and should be short.
- Returns:
- The iD value