Class ObserveDecorator<E>
- java.lang.Object
-
- org.nuiton.decorator.Decorator<O>
-
- org.nuiton.decorator.JXPathDecorator<O>
-
- org.nuiton.decorator.MultiJXPathDecorator<E>
-
- fr.ird.observe.dto.decoration.decorators.ObserveDecorator<E>
-
- All Implemented Interfaces:
Serializable,Cloneable
- Direct Known Subclasses:
DataReferenceDecorator,ReferentialReferenceDecorator
public class ObserveDecorator<E> extends org.nuiton.decorator.MultiJXPathDecorator<E> implements Cloneable
Abstract decorator for any complex decorator.- Since:
- 2.4
- Author:
- Tony Chemit - dev@tchemit.fr
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_SEPARATORstatic StringDEFAULT_SEPARATOR_REPLACEMENT
-
Constructor Summary
Constructors Constructor Description ObserveDecorator(Class<E> internalClass, String expression)ObserveDecorator(Class<E> internalClass, String expression, String separator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()protected Comparable<?>getDefaultNullValue(String token)protected Comparable<?>getDefaultUndefinedValue(String token)protected Comparable<Comparable<?>>getTokenValue(org.apache.commons.jxpath.JXPathContext jxcontext, String token)protected Comparable<Comparable<?>>getValueFromReference(String[] tokens, DtoReference<?,?> referenceBean, int startIndex)-
Methods inherited from class org.nuiton.decorator.JXPathDecorator
ensureTokenIndex, getExpression, getInitialExpression, getNbToken, getProperty, getTokens, setContext, toString, toString
-
-
-
-
Field Detail
-
DEFAULT_SEPARATOR
public static final String DEFAULT_SEPARATOR
- See Also:
- Constant Field Values
-
DEFAULT_SEPARATOR_REPLACEMENT
public static final String DEFAULT_SEPARATOR_REPLACEMENT
- See Also:
- Constant Field Values
-
-
Method Detail
-
clone
public final Object clone() throws CloneNotSupportedException
- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-
getTokenValue
protected Comparable<Comparable<?>> getTokenValue(org.apache.commons.jxpath.JXPathContext jxcontext, String token)
- Overrides:
getTokenValuein classorg.nuiton.decorator.JXPathDecorator<E>
-
getValueFromReference
protected Comparable<Comparable<?>> getValueFromReference(String[] tokens, DtoReference<?,?> referenceBean, int startIndex)
-
getDefaultUndefinedValue
protected Comparable<?> getDefaultUndefinedValue(String token)
-
getDefaultNullValue
protected Comparable<?> getDefaultNullValue(String token)
-
-