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 |
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() |
abstract String |
getDescription()
Method returns the description of the property.
|
protected String |
getOneArgumentResult() |
protected abstract V |
getPropertyDefaultValue() |
protected String[] |
getPropertyIdentifiers() |
String |
getSyntax() |
V |
getValue() |
AbstractJavaProperty.ValueType |
getValueType() |
protected boolean |
isIdentifiered() |
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 |
reset() |
protected void |
setValue(V value,
AbstractJavaProperty.ValueType valueType) |
String |
toString() |
protected void |
updateValue() |
protected void |
validate()
Can be overwritten for value validation.
|
protected final org.slf4j.Logger logger
protected String identifier
protected final String[] propertyIdentifiers
protected final String[] argumentIdentifiers
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)
protected void updateValue()
throws JPServiceException
JPServiceExceptionprotected void overwriteDefaultValue(V defaultValue)
protected boolean isIdentifiered()
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 validate()
throws JPValidationException
JPValidationExceptionprotected void loadAction()
protected abstract V getPropertyDefaultValue() throws JPNotAvailableException
JPNotAvailableExceptionpublic abstract String getDescription()
Copyright © 2014–2016 openbase.org. All rights reserved.