public class TransformationOptionPair extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
TransformationOptionPair.Action
Action to take place for a given pair of values.
|
| Constructor and Description |
|---|
TransformationOptionPair() |
| Modifier and Type | Method and Description |
|---|---|
void |
append(StringBuilder sb,
String optMaxKey,
String optLimitKey) |
TransformationOptionPair |
combine(TransformationOptionPair that)
Returns a TransformationOptionPair that has getter methods that combine the
the values from the getter methods of this and the supplied TransformationOptionPair.
|
TransformationOptionPair |
combineUpper(TransformationOptionPair that)
Returns a TransformationOptionPair that has getter methods that combine the
the values from the getter methods of this and the supplied TransformationOptionPair
so that they return the lowest common denominator of the two limits .
|
void |
defaultTo(TransformationOptionPair pair)
Defaults values that are set in this pair into the
supplied pair.
|
boolean |
equals(Object obj) |
TransformationOptionPair.Action |
getAction() |
long |
getLimit() |
long |
getMax() |
long |
getValue() |
int |
hashCode() |
void |
set(Map<String,Object> optionsMap,
String optMaxKey,
String optLimitKey,
String exceptionMessage) |
void |
setLimit(long limit,
String exceptionMessage) |
void |
setMax(long max,
String exceptionMessage) |
boolean |
supported()
Indicates if the limit allows a transformation to take place at all.
|
Map<String,Object> |
toMap(Map<String,Object> optionsMap,
String optMaxKey,
String optLimitKey) |
String |
toString(String max,
String limit) |
public long getMax()
public void setMax(long max,
String exceptionMessage)
public long getLimit()
public void setLimit(long limit,
String exceptionMessage)
public long getValue()
public boolean supported()
public TransformationOptionPair.Action getAction()
public void defaultTo(TransformationOptionPair pair)
pair - to be setpublic Map<String,Object> toMap(Map<String,Object> optionsMap, String optMaxKey, String optLimitKey)
public void append(StringBuilder sb, String optMaxKey, String optLimitKey)
public void set(Map<String,Object> optionsMap, String optMaxKey, String optLimitKey, String exceptionMessage)
public TransformationOptionPair combine(TransformationOptionPair that)
public TransformationOptionPair combineUpper(TransformationOptionPair that)
Copyright © 2017 Alfresco Software. All rights reserved.