com.izforge.izpack
Class ParsableFile

java.lang.Object
  extended by com.izforge.izpack.ParsableFile
All Implemented Interfaces:
java.io.Serializable

public class ParsableFile
extends java.lang.Object
implements java.io.Serializable

Encloses information about a parsable file. This class abstracts the way the information is stored to package.

Author:
Johannes Lehtinen
See Also:
Serialized Form

Field Summary
private  java.lang.String condition
          condition for this Parsable
 java.lang.String encoding
          The file encoding (or null for default)
 java.util.List<OsConstraint> osConstraints
          The list of OS constraints limiting file installation.
 java.lang.String path
          The file path
(package private) static long serialVersionUID
           
 java.lang.String type
          The file type (or null for default)
 
Constructor Summary
ParsableFile(java.lang.String path, java.lang.String type, java.lang.String encoding, java.util.List<OsConstraint> osConstraints)
          Constructs and initializes a new instance.
 
Method Summary
 java.lang.String getCondition()
           
 boolean hasCondition()
           
 void setCondition(java.lang.String condition)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

path

public java.lang.String path
The file path


type

public java.lang.String type
The file type (or null for default)


encoding

public java.lang.String encoding
The file encoding (or null for default)


osConstraints

public java.util.List<OsConstraint> osConstraints
The list of OS constraints limiting file installation.


condition

private java.lang.String condition
condition for this Parsable

Constructor Detail

ParsableFile

public ParsableFile(java.lang.String path,
                    java.lang.String type,
                    java.lang.String encoding,
                    java.util.List<OsConstraint> osConstraints)
Constructs and initializes a new instance.

Parameters:
path - the file path
type - the file type (or null for default)
encoding - the file encoding (or null for default)
osConstraints - the OS constraint (or null for any OS)
Method Detail

getCondition

public java.lang.String getCondition()
Returns:
the condition

setCondition

public void setCondition(java.lang.String condition)
Parameters:
condition - the condition to set

hasCondition

public boolean hasCondition()