V - public abstract class AbstractJavaProperty<V> extends Object implements Comparable<AbstractJavaProperty>
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractJavaProperty.ValueType |
| Modifier and Type | Field and Description |
|---|---|
protected String[] |
argumentIdentifiers |
protected List<String> |
arguments |
protected String |
identifier |
protected org.slf4j.Logger |
logger |
protected String[] |
propertyIdentifiers |
| Constructor and Description |
|---|
AbstractJavaProperty(String[] propertyIdentifier) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addArgument(String arg) |
protected void |
addErrorReport(Exception exception,
AbstractJavaProperty.ValueType valueType) |
protected void |
checkArgumentCount(int size) |
protected void |
checkArgumentCount(int min,
int max) |
protected void |
checkArgumentCountMax(int max) |
protected void |
checkArgumentCountMin(int min) |
int |
compareTo(AbstractJavaProperty o) |
protected abstract String[] |
generateArgumentIdentifiers() |
protected String[] |
getArgumentIdentifiers() |
String |
getDefaultExample() |
V |
getDefaultValue() |
List<Class<? extends AbstractJavaProperty>> |
getDependencyList()
Method returns a list with properties where this property depends on.
|
abstract String |
getDescription()
Method returns the description of the property.
|
protected Exception |
getErrorReport() |
protected Map<AbstractJavaProperty.ValueType,Exception> |
getErrorReportMap() |
protected String |
getOneArgumentResult() |
protected abstract V |
getPropertyDefaultValue() |
protected String[] |
getPropertyIdentifiers() |
String |
getSyntax() |
V |
getValue() |
AbstractJavaProperty.ValueType |
getValueType() |
protected boolean |
isIdentified() |
protected boolean |
isIdentifiered()
Deprecated.
please use isIdentified() instead
|
boolean |
isParsed() |
protected void |
loadAction()
Can be overwritten for specific load action.
|
protected boolean |
match(String commandIdentifier) |
protected boolean |
neetToBeParsed() |
protected void |
overwriteDefaultValue(V defaultValue) |
protected abstract V |
parse(List<String> arguments) |
protected void |
parseArguments() |
protected void |
registerDependingProperty(Class<? extends AbstractJavaProperty> dependency) |
protected void |
reset() |
protected void |
setValue(V value,
AbstractJavaProperty.ValueType valueType) |
String |
toString() |
void |
update(V value) |
protected void |
updateValue() |
protected void |
validate()
Can be overwritten for value validation.
|
protected final org.slf4j.Logger logger
protected final String[] propertyIdentifiers
protected final String[] argumentIdentifiers
protected String identifier
public AbstractJavaProperty(String[] propertyIdentifier)
protected final boolean match(String commandIdentifier)
protected final boolean neetToBeParsed()
protected final void reset()
protected final void addArgument(String arg)
protected final void parseArguments()
throws JPParsingException
JPParsingExceptionpublic final V getValue()
protected void setValue(V value, AbstractJavaProperty.ValueType valueType)
public final void update(V value)
protected final void updateValue()
throws JPServiceException
JPServiceExceptionprotected final void overwriteDefaultValue(V defaultValue)
@Deprecated protected boolean isIdentifiered()
protected final boolean isIdentified()
public final V getDefaultValue() throws JPNotAvailableException
JPNotAvailableExceptionprotected abstract String[] generateArgumentIdentifiers()
protected final String[] getPropertyIdentifiers()
protected final String[] getArgumentIdentifiers()
public String getDefaultExample()
public String getSyntax()
public final boolean isParsed()
public final int compareTo(AbstractJavaProperty o)
compareTo in interface Comparable<AbstractJavaProperty>protected final String getOneArgumentResult() throws JPBadArgumentException
JPBadArgumentExceptionpublic final AbstractJavaProperty.ValueType getValueType()
protected final void checkArgumentCount(int size)
throws JPBadArgumentException
JPBadArgumentExceptionprotected final void checkArgumentCountMin(int min)
throws JPBadArgumentException
JPBadArgumentExceptionprotected final void checkArgumentCountMax(int max)
throws JPBadArgumentException
JPBadArgumentExceptionprotected final void checkArgumentCount(int min,
int max)
throws JPBadArgumentException
JPBadArgumentExceptionprotected final void addErrorReport(Exception exception, AbstractJavaProperty.ValueType valueType)
protected final Exception getErrorReport()
protected final Map<AbstractJavaProperty.ValueType,Exception> getErrorReportMap()
protected void validate()
throws JPValidationException
JPValidationExceptionprotected void loadAction()
protected abstract V getPropertyDefaultValue() throws JPNotAvailableException
JPNotAvailableExceptionpublic final List<Class<? extends AbstractJavaProperty>> getDependencyList()
protected final void registerDependingProperty(Class<? extends AbstractJavaProperty> dependency)
public abstract String getDescription()
Copyright © 2014–2019 openbase.org. All rights reserved.