Package org.openbase.jps.preset
Class JPSystemDirectory
- java.lang.Object
-
- org.openbase.jps.core.AbstractJavaProperty<File>
-
- org.openbase.jps.preset.AbstractJPFile
-
- org.openbase.jps.preset.AbstractJPDirectory
-
- org.openbase.jps.preset.JPSystemDirectory
-
- All Implemented Interfaces:
Comparable<AbstractJavaProperty>
- Direct Known Subclasses:
JPUsrDirectory
public class JPSystemDirectory extends AbstractJPDirectory
- Author:
- Divine Threepwood
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openbase.jps.core.AbstractJavaProperty
AbstractJavaProperty.ValueType
-
-
Field Summary
Fields Modifier and Type Field Description static String[]COMMAND_IDENTIFIERS-
Fields inherited from class org.openbase.jps.core.AbstractJavaProperty
argumentIdentifiers, arguments, identifier, logger, propertyIdentifiers
-
-
Constructor Summary
Constructors Constructor Description JPSystemDirectory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()Method returns the description of the property.FilegetParentDirectory()protected FilegetPropertyDefaultValue()voidvalidate()Can be overwritten for value validation.-
Methods inherited from class org.openbase.jps.preset.AbstractJPDirectory
generateArgumentIdentifiers
-
Methods inherited from class org.openbase.jps.preset.AbstractJPFile
convertIntoValidFileName, getAutoCreateMode, getExistenceHandling, getType, parse, setAutoCreateMode, setExistenceHandling, setValue, toString
-
Methods inherited from class org.openbase.jps.core.AbstractJavaProperty
addArgument, addErrorReport, checkArgumentCount, checkArgumentCount, checkArgumentCountMax, checkArgumentCountMin, compareTo, getArgumentIdentifiers, getDefaultExample, getDefaultValue, getDependencyList, getErrorReport, getErrorReportMap, getOneArgumentResult, getPropertyIdentifiers, getSyntax, getValue, getValueType, isIdentified, isIdentifiered, isParsed, loadAction, match, neetToBeParsed, overwriteDefaultValue, parseArguments, registerDependingProperty, reset, update, updateValue
-
-
-
-
Field Detail
-
COMMAND_IDENTIFIERS
public static final String[] COMMAND_IDENTIFIERS
-
-
Method Detail
-
getParentDirectory
public File getParentDirectory() throws JPNotAvailableException
- Overrides:
getParentDirectoryin classAbstractJPFile- Returns:
- the parent dir or null if the no parent exist. Method can be overwritten to defining the parent dir.
- Throws:
JPNotAvailableException
-
getPropertyDefaultValue
protected File getPropertyDefaultValue()
- Specified by:
getPropertyDefaultValuein classAbstractJavaProperty<File>
-
validate
public void validate() throws JPValidationExceptionDescription copied from class:AbstractJavaPropertyCan be overwritten for value validation. Method is called after parsing.- Overrides:
validatein classAbstractJPFile- Throws:
JPValidationException
-
getDescription
public String getDescription()
Description copied from class:AbstractJavaPropertyMethod returns the description of the property.- Specified by:
getDescriptionin classAbstractJavaProperty<File>
-
-