org.progeeks.meta.format
Class ClassPropertyFormat
java.lang.Object
org.progeeks.meta.format.AbstractPropertyFormat
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
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
protected static final Log log
ClassPropertyFormat
public ClassPropertyFormat()
ClassPropertyFormat
public ClassPropertyFormat(boolean simpleName)
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.