org.progeeks.meta.format
Class ClassPropertyFormat

java.lang.Object
  extended by org.progeeks.meta.format.AbstractPropertyFormat
      extended by org.progeeks.meta.format.ClassPropertyFormat
All Implemented Interfaces:
PropertyFormat

public class ClassPropertyFormat
extends AbstractPropertyFormat

Formatter for Class objects

Version:
$Revision: 1.3 $
Author:
esword

Field Summary
protected static Log log
           
 
Constructor Summary
ClassPropertyFormat()
           
ClassPropertyFormat(boolean simpleName)
           
 
Method Summary
 java.lang.String format(java.lang.Object obj)
          Returns the formatted String for the specified Object.
 boolean isSimpleName()
           
 java.lang.Object parseObject(java.lang.String source, int index)
          Calls Inspector.newInstance on a substring of the given source starting at index.
 void setSimpleName(boolean simpleName)
           
 
Methods inherited from class org.progeeks.meta.format.AbstractPropertyFormat
format, parseObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final Log log
Constructor Detail

ClassPropertyFormat

public ClassPropertyFormat()

ClassPropertyFormat

public ClassPropertyFormat(boolean simpleName)
Method Detail

format

public java.lang.String format(java.lang.Object obj)
Description copied from class: AbstractPropertyFormat
Returns the formatted String for the specified Object.

Specified by:
format in interface PropertyFormat
Specified by:
format in class AbstractPropertyFormat

parseObject

public java.lang.Object parseObject(java.lang.String source,
                                    int index)
Calls Inspector.newInstance on a substring of the given source starting at index. If the call fails, will return null.

Specified by:
parseObject in interface PropertyFormat
Specified by:
parseObject in class AbstractPropertyFormat

isSimpleName

public boolean isSimpleName()

setSimpleName

public void setSimpleName(boolean simpleName)


Copyright © 2002-2003 Paul Speed. All Rights Reserved.