@AlfrescoPublicApi 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)
This method overrides rather than defaults values into the supplied pair (as the
name might suggest), but because of the order in which it is called, this results in the
correct defaults being set.
|
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)
A call to this method overrides any values in the supplied pair parameter with those in this Object. The supplied pair parameter is being gradually built up by initially setting the most general values and then more specific values for each level. As a result 'default' values from the more general levels will still exist at the end if more specific ones have not been supplied.
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 © 2005–2017 Alfresco Software. All rights reserved.