public class FileInfo
extends java.lang.Object
Constructor | Description |
---|---|
FileInfo() |
Sole constructor
|
Modifier and Type | Method | Description |
---|---|---|
java.lang.Object |
clone() |
Clones this object
|
void |
deleteParameter(java.lang.String parameterName) |
Deletes from this file information parameter with given name.
|
java.lang.String |
getParameterValue(java.lang.String parameterName) |
Gets value of the parameter with given name or
null if value of given parameter is not stored in this file information |
boolean |
hasParameterValue(java.lang.String parameterName) |
Checks if this file information contains value of parameter with given name
|
void |
putParameterValue(java.lang.String parameterName,
java.lang.String parameterValue) |
Adds (parameter's name; parameter's value) pair to *.rules file information.
|
java.lang.String |
toJAMMString() |
Gets textual, multiline form of this information about the *.rules file, in JAMM application format
|
java.lang.String |
toString() |
Gets textual, multiline form of this information about the *.rules file
|
java.lang.String |
toString(java.util.HashSet<java.lang.String> skippedParametersNames) |
Gets textual, multiline form of this information about the *.rules file.
|
public void putParameterValue(java.lang.String parameterName, java.lang.String parameterValue)
null
, then parameter with given name is deleted from this file information.parameterName
- name of the parameterparameterValue
- value of the parameterjava.lang.NullPointerException
- if name of the parameter is null
public java.lang.String getParameterValue(java.lang.String parameterName)
null
if value of given parameter is not stored in this file informationparameterName
- name of the parameternull
if value of given parameter
is not stored in this file informationjava.lang.NullPointerException
- if name of the parameter is null
public void deleteParameter(java.lang.String parameterName)
parameterName
- name of the parameter that should be deletedjava.lang.NullPointerException
- if name of the parameter is null
public boolean hasParameterValue(java.lang.String parameterName)
parameterName
- name of the parametertrue
if this file information contains value of parameter with given name,
false
otherwisejava.lang.NullPointerException
- if name of the parameter is null
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(java.util.HashSet<java.lang.String> skippedParametersNames)
skippedParametersNames
- hash set with String
names of parameters from this *.rules file information
which should be skipped in textual formjava.lang.NullPointerException
- when names of parameters which should be skipped are null
public java.lang.String toJAMMString()
public java.lang.Object clone()
clone
in class java.lang.Object