public abstract class AbstractDataParameters extends java.lang.Object implements DataParameters, Validator
CRS_PARAMTER_NAME
Constructor and Description |
---|
AbstractDataParameters() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
clears the parameter container.
|
protected void |
copyValuesTo(DataParameters target) |
void |
delegate(DynObject dynObject) |
boolean |
equals(java.lang.Object obj) |
static DataParameters |
fromByteArray(byte[] data) |
void |
fromJson(JsonObject json) |
java.lang.Throwable |
getCause() |
DataParameters |
getCopy()
Creates and returns a new copy of this DataParameters.
|
java.lang.String |
getDataStoreName() |
protected abstract DelegatedDynObject |
getDelegatedDynObject()
Returns an instance of the
DynObject to delegate to. |
java.lang.String |
getDescription() |
DynClass |
getDynClass() |
java.lang.Object |
getDynValue(java.lang.String name) |
java.lang.String |
getMessage() |
java.lang.String |
getProviderName() |
boolean |
hasDynValue(java.lang.String name) |
int |
hashCode() |
void |
implement(DynClass dynClass) |
java.lang.Object |
invokeDynMethod(int code,
java.lang.Object[] args) |
java.lang.Object |
invokeDynMethod(java.lang.String name,
java.lang.Object[] args) |
boolean |
isValid(java.lang.Object data,
java.lang.Object... args) |
void |
loadFromState(PersistentState state)
Set the state of the object from the state passed as parameter.
|
protected void |
loadPRJ(java.io.File file,
java.lang.String parameterName) |
protected void |
loadWLD(java.io.File file,
java.lang.String parameterName) |
void |
saveToState(PersistentState state)
Saves the internal state of the object on the provided
PersistentState object.
|
void |
setDynValue(java.lang.String name,
java.lang.Object value) |
byte[] |
toByteArray() |
JsonObject |
toJson() |
JsonObjectBuilder |
toJsonBuilder() |
java.lang.String |
toString() |
java.lang.String |
toString(Invocable transform) |
void |
validate()
Checks its valid
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
toJson, toJsonBuilder
public java.lang.Object getDynValue(java.lang.String name)
getDynValue
in interface DynObject
public java.lang.String getProviderName()
public java.lang.String getDataStoreName()
public java.lang.String getDescription()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(Invocable transform)
toString
in interface DataParameters
public void setDynValue(java.lang.String name, java.lang.Object value)
setDynValue
in interface DynObject
public void clear()
DataParameters
clear
in interface DataParameters
clear
in interface DynObject
protected void copyValuesTo(DataParameters target)
public DataParameters getCopy()
DataParameters
getCopy
in interface DataParameters
public void saveToState(PersistentState state) throws PersistenceException
Persistent
saveToState
in interface Persistent
PersistenceException
public void loadFromState(PersistentState state) throws PersistenceException
Persistent
loadFromState
in interface Persistent
PersistenceException
public DynClass getDynClass()
getDynClass
in interface DynObject
public boolean hasDynValue(java.lang.String name)
hasDynValue
in interface DynObject
public java.lang.Object invokeDynMethod(java.lang.String name, java.lang.Object[] args) throws DynMethodException
invokeDynMethod
in interface DynObject
DynMethodException
public java.lang.Object invokeDynMethod(int code, java.lang.Object[] args) throws DynMethodException
invokeDynMethod
in interface DynObject
DynMethodException
public void validate() throws ValidateDataParametersException
DataParameters
validate
in interface DataParameters
ValidateDataParametersException
- if any problem was detectedprotected void loadPRJ(java.io.File file, java.lang.String parameterName)
protected void loadWLD(java.io.File file, java.lang.String parameterName)
public byte[] toByteArray()
toByteArray
in interface DataParameters
public static DataParameters fromByteArray(byte[] data)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public JsonObject toJson()
toJson
in interface SupportToJson
public JsonObjectBuilder toJsonBuilder()
toJsonBuilder
in interface SupportToJson
public void fromJson(JsonObject json)
fromJson
in interface SupportFromJson
protected abstract DelegatedDynObject getDelegatedDynObject()
DynObject
to delegate to.DynObject
public boolean isValid(java.lang.Object data, java.lang.Object... args)
public java.lang.String getMessage()
getMessage
in interface Validator