net.sourceforge.jparam.output
Class OutputMethodSerializer
java.lang.Object
|
+--net.sourceforge.jparam.output.OutputMethodSerializer
- All Implemented Interfaces:
- ISerializer
- public class OutputMethodSerializer
- extends java.lang.Object
- implements ISerializer
Field Summary |
(package private) java.lang.reflect.Method |
m
|
(package private) java.lang.Class |
supportedClass
|
Method Summary |
static java.lang.String |
getMethodValidError(java.lang.reflect.Method m)
|
java.util.List |
getSubObjects(java.lang.Object obj)
|
java.lang.Class |
getSupportedClass()
Return the Class that is supported by this seriazlier |
static boolean |
isMethodValid(java.lang.reflect.Method m)
|
void |
serialize(java.lang.Object obj,
java.io.PrintStream out)
Write the string representation of the given object into the given
PrintStream |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
m
java.lang.reflect.Method m
supportedClass
java.lang.Class supportedClass
OutputMethodSerializer
public OutputMethodSerializer(java.lang.reflect.Method m)
getSupportedClass
public java.lang.Class getSupportedClass()
- Description copied from interface:
ISerializer
- Return the
Class
that is supported by this seriazlier
- Specified by:
getSupportedClass
in interface ISerializer
- Following copied from interface:
net.sourceforge.jparam.output.ISerializer
- Returns:
-
serialize
public void serialize(java.lang.Object obj,
java.io.PrintStream out)
throws JParamException
- Description copied from interface:
ISerializer
- Write the string representation of the given object into the given
PrintStream
- Specified by:
serialize
in interface ISerializer
- Following copied from interface:
net.sourceforge.jparam.output.ISerializer
- Parameters:
obj
- the object to write (must be instanceof
getSupportedClass
out
- the PrintStream
to write to- Throws:
JParamException
- if there was any problem with the serialization
process, or if the object is not instanceof
getSupportedClass
getSubObjects
public java.util.List getSubObjects(java.lang.Object obj)
throws java.lang.Exception
getMethodValidError
public static java.lang.String getMethodValidError(java.lang.reflect.Method m)
isMethodValid
public static boolean isMethodValid(java.lang.reflect.Method m)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2004 SourceForge. All Rights Reserved.