public interface ParameterHolder
DtoInfoResolver| Modifier and Type | Method and Description |
|---|---|
boolean |
isEmpty()
Indicates whether the holder contains parameters.
|
boolean |
isEmptyForAggregateRoot(int aggregateIndex)
Indicates whether the holder contains parameters for the aggregate root at the
aggregateIndex position in the tuple.
|
Object[] |
parameters()
Gives the ordered list of parameters.
|
Object[] |
parametersOfAggregateRoot(int aggregateIndex)
Gives the ordered list of parameters for specified index.
|
void |
put(String sourceMethod,
int aggregateIndex,
int index,
Object value)
Adds a parameter value for the specified aggregate root at its position in the expected method.
|
void |
put(String source,
int index,
Object value)
Adds a parameter value at its position in the expected method.
|
Object |
uniqueElement()
Gives the first parameter of the first aggregate.
|
Object |
uniqueElementForAggregateRoot(int aggregateIndex)
Gives the first parameter of the specified aggregate.
|
void put(String source, int index, Object value)
source - the source used to get the value. Used for debugging information.index - the position in the methodvalue - the parameter valuevoid put(String sourceMethod, int aggregateIndex, int index, Object value)
sourceMethod - the source method used to get the value. Used for debugging information.aggregateIndex - the index corresponding to the aggregate root position in the tuple of aggregate roots.index - the position in the methodvalue - the parameter valueObject[] parameters()
Object[] parametersOfAggregateRoot(int aggregateIndex)
aggregateIndex - the index corresponding to the aggregate root position in the tuple of aggregate roots.Object uniqueElement()
Object uniqueElementForAggregateRoot(int aggregateIndex)
aggregateIndex - the index corresponding to the aggregate root position in the tuple of aggregate roots.boolean isEmpty()
This is equivalent to isEmptyForAggregateRoot(-1) || isEmptyForAggregateRoot(0).
If there is only one aggregate root, the index is -1, otherwise it starts at 0.
boolean isEmptyForAggregateRoot(int aggregateIndex)
It starts at the index 0, or -1 if there is only one aggregate defined.
It checks if there is at least one aggregate defined and if the first aggregate as at least one parameter.
aggregateIndex - the index corresponding to the aggregate root position in the tuple of aggregate roots.Copyright © 2013-2015–2015. All rights reserved.