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 boolean match(String commandIdentifier)
protected boolean neetToBeParsed()
protected final void reset()
protected void addArgument(String arg)
protected void parseArguments()
throws JPParsingException
JPParsingExceptionpublic V getValue()
protected void setValue(V value, AbstractJavaProperty.ValueType valueType)
public void update(V value)
protected void updateValue()
throws JPServiceException
JPServiceExceptionprotected void overwriteDefaultValue(V defaultValue)
@Deprecated protected boolean isIdentifiered()
protected boolean isIdentified()
public V getDefaultValue() throws JPNotAvailableException
JPNotAvailableExceptionprotected abstract String[] generateArgumentIdentifiers()
protected String[] getPropertyIdentifiers()
protected String[] getArgumentIdentifiers()
public String getDefaultExample()
public String getSyntax()
public boolean isParsed()
public int compareTo(AbstractJavaProperty o)
compareTo in interface Comparable<AbstractJavaProperty>protected String getOneArgumentResult() throws JPBadArgumentException
JPBadArgumentExceptionpublic AbstractJavaProperty.ValueType getValueType()
protected void checkArgumentCount(int size)
throws JPBadArgumentException
JPBadArgumentExceptionprotected void checkArgumentCountMin(int min)
throws JPBadArgumentException
JPBadArgumentExceptionprotected void checkArgumentCountMax(int max)
throws JPBadArgumentException
JPBadArgumentExceptionprotected void checkArgumentCount(int min,
int max)
throws JPBadArgumentException
JPBadArgumentExceptionprotected void addErrorReport(Exception exception, AbstractJavaProperty.ValueType valueType)
protected Exception getErrorReport()
protected Map<AbstractJavaProperty.ValueType,Exception> getErrorReportMap()
protected void validate()
throws JPValidationException
JPValidationExceptionprotected void loadAction()
protected abstract V getPropertyDefaultValue() throws JPNotAvailableException
JPNotAvailableExceptionpublic List<Class<? extends AbstractJavaProperty>> getDependencyList()
protected void registerDependingProperty(Class<? extends AbstractJavaProperty> dependency)
public abstract String getDescription()
Copyright © 2014–2018 openbase.org. All rights reserved.