public class PropertySource extends CacheArrayProvider implements IPropertySource
Modifier and Type | Class and Description |
---|---|
protected static class |
PropertySource.State
To be overridden if other state elements are to be saved and restored.
|
Constructor and Description |
---|
PropertySource()
Creates a Void Property souce.
|
PropertySource(Class<?> sourceType) |
PropertySource(Class<?> sourceType,
Class<?> argType) |
PropertySource(Class<?> sourceType,
Object arg) |
PropertySource(Object source) |
PropertySource(Object source,
Class<?> argType) |
PropertySource(Object source,
Class<?> defaultSourceType,
Object arg,
Class<?> defaultArgType) |
PropertySource(Object source,
Object arg) |
Modifier and Type | Method and Description |
---|---|
Object |
getBaseSource() |
Class<?> |
getBaseSourceType() |
Object |
getCurArg()
Get current arg's current source.
|
Class<?> |
getCurArgType()
Get current arg's current source, knowing that it will never give null value,
but Void.class instead.
|
Object |
getCurSource() |
Class<?> |
getCurSourceType() |
protected PropertySource.State |
getStateInstance()
To be overridden if
PropertySource.State is overridden. |
boolean |
hasSavedState()
Tells if states have been previously saved.
|
void |
popArgState()
Restores internal argument data saved by
IPropertySource.pushArgState() . |
void |
popState()
Restores previously saved state.
|
protected void |
populateState(PropertySource.State state)
To be overridden if other state elements are to be saved.
|
void |
pushArgState()
Saves internal argument data, to be able to restore them with
IPropertySource.popArgState() . |
void |
pushState()
Saves current state.
|
void |
reset(Object source,
Class<?> defaultSourceType)
Resets internal data and states with the provided source and / or type.
|
protected void |
restoreState(PropertySource.State state)
To be overridden if other state elements are to be restored.
|
void |
setCurArg(Object curArg)
Set current arg's current source.
|
void |
setCurArgType(Class<?> curArgType)
Set current arg's current source type.
|
void |
setCurSource(Object curSource) |
void |
setCurSourceType(Class<?> curSourceType) |
getArray, getArray, getArray
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getArray, getArray, getArray
public PropertySource()
public PropertySource(Object source)
public PropertySource(Class<?> sourceType)
public final void reset(Object source, Class<?> defaultSourceType)
IPropertySource
reset
in interface IPropertySource
public Object getCurSource()
getCurSource
in interface IPropertySource
public void setCurSource(Object curSource)
setCurSource
in interface IPropertySource
public Object getBaseSource()
getBaseSource
in interface IPropertySource
public Class<?> getCurSourceType()
getCurSourceType
in interface IPropertySource
public void setCurSourceType(Class<?> curSourceType)
setCurSourceType
in interface IPropertySource
public Class<?> getBaseSourceType()
getBaseSourceType
in interface IPropertySource
public void setCurArg(Object curArg)
IPropertySource
setCurArg
in interface IPropertySource
public Object getCurArg()
IPropertySource
getCurArg
in interface IPropertySource
public void setCurArgType(Class<?> curArgType)
IPropertySource
setCurArgType
in interface IPropertySource
public Class<?> getCurArgType()
IPropertySource
getCurArgType
in interface IPropertySource
public void pushArgState()
IPropertySource
IPropertySource.popArgState()
.pushArgState
in interface IPropertySource
public void popArgState()
IPropertySource
IPropertySource.pushArgState()
.popArgState
in interface IPropertySource
public void pushState()
pushState
in interface IPropertySource
public void popState()
popState
in interface IPropertySource
public boolean hasSavedState()
hasSavedState
in interface IPropertySource
protected PropertySource.State getStateInstance()
PropertySource.State
is overridden.PropertySource.State
protected void populateState(PropertySource.State state)
PropertySource.State
protected void restoreState(PropertySource.State state)
PropertySource.State