Package in.erail.glue
Class DefaultValueProxy
- java.lang.Object
-
- in.erail.glue.DefaultValueProxy
-
- All Implemented Interfaces:
ValueProxy
public class DefaultValueProxy extends Object implements ValueProxy
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.logging.log4j.Loggerlogger
-
Constructor Summary
Constructors Constructor Description DefaultValueProxy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetComponentPath()protected ObjectgetDeferredComponent()StringgetDeferredComponentPath()Deferred component pathprotected StringgetDeferredComponentProperty()protected ValueWithModifiergetLastValueWithModifier()protected Collection<ValueWithModifier>getPropertyValue()ClassgetTargetClass()Resolved object expected classObjectgetValue()Return resolved valueprotected StringgetValueAsString()voidinit()Initialise value proxy instancebooleanisDeferredComponentProcessed()Check if deferred value is already calculated.booleanisDeferredValue()Does value required deferred processing.protected booleanisProcessed()voidprocess()Process String based Property ValuevoidsetComponentPath(String pComponentPath)Path of component to which this property/value belongsvoidsetDeferredComponent(Object pDeferredComponent)Deferred component instanceprotected voidsetDeferredComponentPath(String pDeferredComponentPath)voidsetDeferredComponentProcessed(boolean pDeferredComponentProcessed)Mark deferred processing statusprotected voidsetDeferredComponentProperty(String pDeferredComponentProperty)protected voidsetDeferredValue(boolean pDeferredValue)protected voidsetProcessed(boolean pProcessed)voidsetPropertyValue(Collection<ValueWithModifier> pPropertyValue)Ordered properties value from all layersvoidsetTargetClass(Class pTargetClass)Expected target value classprotected voidsetValue(Object pValue)StringtoString()
-
-
-
Method Detail
-
init
public void init()
Description copied from interface:ValueProxyInitialise value proxy instance- Specified by:
initin interfaceValueProxy
-
process
public void process()
Description copied from interface:ValueProxyProcess String based Property Value- Specified by:
processin interfaceValueProxy
-
getValueAsString
protected String getValueAsString()
-
getLastValueWithModifier
protected ValueWithModifier getLastValueWithModifier()
-
getValue
public Object getValue()
Description copied from interface:ValueProxyReturn resolved value- Specified by:
getValuein interfaceValueProxy- Returns:
- Resolve object
-
setValue
protected void setValue(Object pValue)
-
getTargetClass
public Class getTargetClass()
Description copied from interface:ValueProxyResolved object expected class- Specified by:
getTargetClassin interfaceValueProxy- Returns:
- Resolved object expected class
-
setTargetClass
public void setTargetClass(Class pTargetClass)
Description copied from interface:ValueProxyExpected target value class- Specified by:
setTargetClassin interfaceValueProxy- Parameters:
pTargetClass- Target value class
-
getDeferredComponentPath
public String getDeferredComponentPath()
Description copied from interface:ValueProxyDeferred component path- Specified by:
getDeferredComponentPathin interfaceValueProxy- Returns:
- Path to component
-
getPropertyValue
protected Collection<ValueWithModifier> getPropertyValue()
-
setPropertyValue
public void setPropertyValue(Collection<ValueWithModifier> pPropertyValue)
Description copied from interface:ValueProxyOrdered properties value from all layers- Specified by:
setPropertyValuein interfaceValueProxy- Parameters:
pPropertyValue- Ordered collection
-
setDeferredComponentPath
protected void setDeferredComponentPath(String pDeferredComponentPath)
-
getDeferredComponentProperty
protected String getDeferredComponentProperty()
-
setDeferredComponentProperty
protected void setDeferredComponentProperty(String pDeferredComponentProperty)
-
getDeferredComponent
protected Object getDeferredComponent()
-
setDeferredComponent
public void setDeferredComponent(Object pDeferredComponent)
Description copied from interface:ValueProxyDeferred component instance- Specified by:
setDeferredComponentin interfaceValueProxy- Parameters:
pDeferredComponent- component instance
-
getComponentPath
protected String getComponentPath()
-
setComponentPath
public void setComponentPath(String pComponentPath)
Description copied from interface:ValueProxyPath of component to which this property/value belongs- Specified by:
setComponentPathin interfaceValueProxy- Parameters:
pComponentPath- Path
-
isDeferredValue
public boolean isDeferredValue()
Description copied from interface:ValueProxyDoes value required deferred processing. Deferred processing happens in case of one component property pointing to another component or property.- Specified by:
isDeferredValuein interfaceValueProxy- Returns:
-
setDeferredValue
protected void setDeferredValue(boolean pDeferredValue)
-
isProcessed
protected boolean isProcessed()
-
setProcessed
protected void setProcessed(boolean pProcessed)
-
isDeferredComponentProcessed
public boolean isDeferredComponentProcessed()
Description copied from interface:ValueProxyCheck if deferred value is already calculated.- Specified by:
isDeferredComponentProcessedin interfaceValueProxy- Returns:
-
setDeferredComponentProcessed
public void setDeferredComponentProcessed(boolean pDeferredComponentProcessed)
Description copied from interface:ValueProxyMark deferred processing status- Specified by:
setDeferredComponentProcessedin interfaceValueProxy- Parameters:
pDeferredComponentProcessed- True is processed or else false
-
-