public class TransformationOptionPair
extends java.lang.Object
implements java.io.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(java.lang.StringBuilder sb,
java.lang.String optMaxKey,
java.lang.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(java.lang.Object obj) |
TransformationOptionPair.Action |
getAction() |
long |
getLimit() |
long |
getMax() |
long |
getValue() |
int |
hashCode() |
void |
set(java.util.Map optionsMap,
java.lang.String optMaxKey,
java.lang.String optLimitKey,
java.lang.String exceptionMessage) |
void |
setLimit(long limit,
java.lang.String exceptionMessage) |
void |
setMax(long max,
java.lang.String exceptionMessage) |
boolean |
supported()
Indicates if the limit allows a transformation to take place at all.
|
java.util.Map |
toMap(java.util.Map optionsMap,
java.lang.String optMaxKey,
java.lang.String optLimitKey) |
java.lang.String |
toString(java.lang.String max,
java.lang.String limit) |
public long getMax()
public void setMax(long max,
java.lang.String exceptionMessage)
public long getLimit()
public void setLimit(long limit,
java.lang.String exceptionMessage)
public long getValue()
public boolean supported()
public TransformationOptionPair.Action getAction()
public void defaultTo(TransformationOptionPair pair)
pair - to be setpublic java.lang.String toString(java.lang.String max,
java.lang.String limit)
public java.util.Map toMap(java.util.Map optionsMap,
java.lang.String optMaxKey,
java.lang.String optLimitKey)
public void append(java.lang.StringBuilder sb,
java.lang.String optMaxKey,
java.lang.String optLimitKey)
public void set(java.util.Map optionsMap,
java.lang.String optMaxKey,
java.lang.String optLimitKey,
java.lang.String exceptionMessage)
public TransformationOptionPair combine(TransformationOptionPair that)
public TransformationOptionPair combineUpper(TransformationOptionPair that)
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2005 - 2013 Alfresco Software, Inc. All Rights Reserved.