org.netbeans.lib.cvsclient.command
Class DefaultFileInfoContainer

java.lang.Object
  extended by org.netbeans.lib.cvsclient.command.FileInfoContainer
      extended by org.netbeans.lib.cvsclient.command.DefaultFileInfoContainer
Direct Known Subclasses:
AddInformation, CommitInformation

public class DefaultFileInfoContainer
extends FileInfoContainer

Describes checkout/tag/update information for a file. The fields in instances of this object are populated by response handlers.


Field Summary
static java.lang.String MERGED_FILE
           
static java.lang.String PERTINENT_STATE
           
 
Constructor Summary
DefaultFileInfoContainer()
           
 
Method Summary
 java.io.File getFile()
          Returns the associated file.
 java.lang.String getType()
          Returns the type.
 boolean isDirectory()
          Returns true if the associated file is a directory.
 void setFile(java.io.File file)
          Sets the associated file.
 void setType(java.lang.String type)
          Sets the type.
 java.lang.String toString()
          Return a string representation of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PERTINENT_STATE

public static final java.lang.String PERTINENT_STATE
See Also:
Constant Field Values

MERGED_FILE

public static final java.lang.String MERGED_FILE
See Also:
Constant Field Values
Constructor Detail

DefaultFileInfoContainer

public DefaultFileInfoContainer()
Method Detail

getFile

public java.io.File getFile()
Returns the associated file.

Specified by:
getFile in class FileInfoContainer

isDirectory

public boolean isDirectory()
Returns true if the associated file is a directory.


setFile

public void setFile(java.io.File file)
Sets the associated file.


getType

public java.lang.String getType()
Returns the type. Mostly the type value equals to the states returned by update and tag command. see description in cvs manual. Some states are added: G - file was merged (when using the cvs update -j command. D - file was deleted - no longer pertinent.


setType

public void setType(java.lang.String type)
Sets the type.


toString

public java.lang.String toString()
Return a string representation of this object. Useful for debugging.

Overrides:
toString in class java.lang.Object

 

Built on October 26 2010.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.