|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cocoon.forms.datatype.convertor.ConversionResult
public class ConversionResult
Object returned as result of Convertor.convertFromString(java.lang.String, java.util.Locale, org.apache.cocoon.forms.datatype.convertor.Convertor.FormatCache)
.
Constructor Summary | |
---|---|
ConversionResult(Object result)
Constructs a successful ConversionResult. |
|
ConversionResult(ValidationError validationError)
Constructs an unsuccessful ConversionResult. |
Method Summary | |
---|---|
static ConversionResult |
create(String datatypeName)
Constructs an unsuccessful ConversionResult. |
Object |
getResult()
|
ValidationError |
getValidationError()
|
boolean |
isSuccessful()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConversionResult(Object result)
public ConversionResult(ValidationError validationError)
Method Detail |
---|
public static ConversionResult create(String datatypeName)
Note: this is not done as a constructor because it would conflict with the constructor which takes an Object as argument.
public boolean isSuccessful()
public ValidationError getValidationError()
public Object getResult()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |