Class ReferentialReferenceDecorator<R extends ReferentialDtoReference>
- 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<R>
-
- fr.ird.observe.dto.decoration.decorators.ReferentialReferenceDecorator<R>
-
- All Implemented Interfaces:
Serializable,Cloneable
public class ReferentialReferenceDecorator<R extends ReferentialDtoReference> extends ObserveDecorator<R> implements Cloneable
- Author:
- Kevin Morin (Code Lutin)
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classReferentialReferenceDecorator.ReferentialReferenceComparatorFromDecorator<R extends ReferentialDtoReference>
-
Field Summary
-
Fields inherited from class org.nuiton.decorator.JXPathDecorator
context, initialExpression, nbToken
-
Fields inherited from class org.nuiton.decorator.MultiJXPathDecorator
contexts, separator, separatorReplacement
-
Fields inherited from class fr.ird.observe.dto.decoration.decorators.ObserveDecorator
DEFAULT_SEPARATOR, DEFAULT_SEPARATOR_REPLACEMENT
-
-
Constructor Summary
Constructors Constructor Description ReferentialReferenceDecorator(Class<R> type, String expression)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Comparable<?>getDefaultNullValue(String token)protected Comparable<Comparable<?>>getTokenValue(org.apache.commons.jxpath.JXPathContext jxcontext, String token)Comparator<? super R>toComparator()-
Methods inherited from class org.nuiton.decorator.JXPathDecorator
ensureTokenIndex, getExpression, getInitialExpression, getNbToken, getProperty, getTokens, setContext, toString, toString
-
Methods inherited from class org.nuiton.decorator.MultiJXPathDecorator
ensureContextIndex, getComparator, getNbContext, getSeparator, getSeparatorReplacement, setContextIndex
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from class fr.ird.observe.dto.decoration.decorators.ObserveDecorator
clone, getDefaultUndefinedValue, getValueFromReference
-
-
-
-
Method Detail
-
toComparator
public Comparator<? super R> toComparator()
-
getTokenValue
protected Comparable<Comparable<?>> getTokenValue(org.apache.commons.jxpath.JXPathContext jxcontext, String token)
- Overrides:
getTokenValuein classObserveDecorator<R extends ReferentialDtoReference>
-
getDefaultNullValue
protected Comparable<?> getDefaultNullValue(String token)
- Overrides:
getDefaultNullValuein classObserveDecorator<R extends ReferentialDtoReference>
-
-