net.datacrow.filerenamer
Class FilePatternPart

java.lang.Object
  extended by net.datacrow.filerenamer.FilePatternPart

public class FilePatternPart
extends java.lang.Object

A file pattern part is part of a file pattern. It represents a field, a suffix and a prefix. Based on this information a part of the filename is formed.

Author:
Robert Jan van der Waals
See Also:
FilePattern

Constructor Summary
protected FilePatternPart(DcField field)
          Creates a new instance.
 
Method Summary
 java.lang.String get(DcObject dco)
          Create this part of the filename.
 DcField getField()
           
 java.lang.String getPrefix()
           
 java.lang.String getSuffix()
           
 void setField(DcField field)
           
 void setPrefix(java.lang.String prefix)
           
 void setSuffix(java.lang.String suffix)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilePatternPart

protected FilePatternPart(DcField field)
Creates a new instance.

Parameters:
field - The field from which the value will be used to create this part of the filename.
Method Detail

get

public java.lang.String get(DcObject dco)
Create this part of the filename.

Parameters:
dco -

setField

public void setField(DcField field)

setPrefix

public void setPrefix(java.lang.String prefix)

setSuffix

public void setSuffix(java.lang.String suffix)

getField

public DcField getField()

getPrefix

public java.lang.String getPrefix()

getSuffix

public java.lang.String getSuffix()