com.iparelan.util
Class FileUnmarshallingStrategy

java.lang.Object
  extended by com.iparelan.util.UtilObject
      extended by 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

Field Summary
 
Fields inherited from class com.iparelan.util.UtilObject
LOGGER, MSGS, UTILITIES_LOGGER_NAME
 
Fields inherited from interface com.iparelan.util.UnmarshallingStrategy
FILE, INTEGER
 
Constructor Summary
FileUnmarshallingStrategy()
           
 
Method Summary
 String toString()
           
 File unmarshall(String path)
          Parses the specified String as value of type T and produces the resultant object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileUnmarshallingStrategy

public FileUnmarshallingStrategy()
Method Detail

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.