com.iparelan.util
Class FileUnmarshallingStrategy
java.lang.Object
com.iparelan.util.UtilObject
com.iparelan.util.FileUnmarshallingStrategy
- All Implemented Interfaces:
- UnmarshallingStrategy<File>
@Copyright(value="Copyright © 2008, Iparelan Solutions, LLC. All rights reserved.")
public final class FileUnmarshallingStrategy
- extends UtilObject
- implements UnmarshallingStrategy<File>
A strategy for parsing a File
value that is stored as a
String
.
- Version:
- July 2008
- Author:
- Greg Mattes
FileUnmarshallingStrategy
public FileUnmarshallingStrategy()
unmarshall
@Nullable
public File unmarshall(@Nullable
String path)
throws NumberFormatException
- Description copied from interface:
UnmarshallingStrategy
- Parses the specified
String
as value of type T
and
produces the resultant object.
- Specified by:
unmarshall
in interface UnmarshallingStrategy<File>
- Parameters:
path
- The value to be unmarshalled from a String
to a T
. May be null
, in which case null
is produced.
- Returns:
- The unmarshalled value of
marshalled
. null
is
considered to be the unmarshalled value of null
.
- Throws:
NumberFormatException
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2008 Iparelan Solutions, LLC. All rights reserved.