org.alfresco.service.cmr.repository
Class TransformationOptionPair
java.lang.Object
org.alfresco.service.cmr.repository.TransformationOptionPair
public class TransformationOptionPair
- extends java.lang.Object
A pair of transformation options that specify
A) a max value over which the source is not read (throws an Exception) or
B) a limit over which no more of the source is read (returns EOF)
Each pair represents a values such as an elapse time, KBytes read or number of pages read.
It is only meaningful for a either the max or limit value to be set.
There is one pair of values for each transformer and another pair passed in via the
options parameter for each individual transformation. The later is for specific types of
transformation, such as thumbnail generation. When this occurs values are combined, by
using the lowest of the four values.
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
TransformationOptionPair
public TransformationOptionPair()
getMax
public long getMax()
setMax
public void setMax(long max,
java.lang.String exceptionMessage)
getLimit
public long getLimit()
setLimit
public void setLimit(long limit,
java.lang.String exceptionMessage)
getValue
public long getValue()
getAction
public TransformationOptionPair.Action getAction()
toMap
public java.util.Map toMap(java.util.Map optionsMap,
java.lang.String optMaxKey,
java.lang.String optLimitKey)
set
public void set(java.util.Map optionsMap,
java.lang.String optMaxKey,
java.lang.String optLimitKey,
java.lang.String exceptionMessage)
combine
public 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.
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals in class java.lang.Object
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.