Package org.openxava.calculators
Class ConcatOidCalculator
- java.lang.Object
-
- org.openxava.calculators.ConcatCalculator
-
- org.openxava.calculators.ConcatOidCalculator
-
- All Implemented Interfaces:
java.io.Serializable
,IAggregateOidCalculator
,ICalculator
public class ConcatOidCalculator extends ConcatCalculator implements IAggregateOidCalculator
It create a strint that concat string1:string2[:string3]:counter.Default separator is :
- Author:
- Javier Paniza
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConcatOidCalculator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
calculate()
void
setContainer(java.lang.Object contenedorKey)
The container object of aggregate.void
setCounter(int contador)
A number that can be used to create the oid.-
Methods inherited from class org.openxava.calculators.ConcatCalculator
getInt1, getInt2, getInt3, getInt4, getInt5, getSeparator, getString1, getString2, getString3, getString4, getString5, setInt1, setInt2, setInt3, setInt4, setInt5, setSeparator, setString1, setString2, setString3, setString4, setString5
-
-
-
-
Method Detail
-
setContainer
public void setContainer(java.lang.Object contenedorKey)
Description copied from interface:IAggregateOidCalculator
The container object of aggregate.- Specified by:
setContainer
in interfaceIAggregateOidCalculator
-
setCounter
public void setCounter(int contador)
Description copied from interface:IAggregateOidCalculator
A number that can be used to create the oid.Usually this is a sequential number
- Specified by:
setCounter
in interfaceIAggregateOidCalculator
-
calculate
public java.lang.Object calculate() throws java.lang.Exception
- Specified by:
calculate
in interfaceICalculator
- Overrides:
calculate
in classConcatCalculator
- Throws:
java.lang.Exception
-
-