public class IntegerEntity extends ValuedEntity implements com.exalead.util.Checkable, java.io.Serializable
ValuedEntity.RightContexts, ValuedEntity.Units
SimpleEntity.LeftContexts, SimpleEntity.Triggers
Modifier and Type | Field and Description |
---|---|
boolean |
addExactValue |
double |
coefficient |
static boolean |
DEFAULT_ADD_EXACT_VALUE |
static double |
DEFAULT_COEFFICIENT |
static boolean |
DEFAULT_HANDLE_OUT_OF_BOUND_VALUES |
static int |
DEFAULT_MAX |
static int |
DEFAULT_MIN |
static int |
DEFAULT_PRECISION |
static int |
DEFAULT_STEP |
static boolean |
DEFAULT_TRUNCATE_TRAILING_ZEROS |
boolean |
handleOutOfBoundValues |
int |
max |
int |
min |
int |
precision |
int |
step |
boolean |
truncateTrailingZeros |
rightContext, rightContexts, unit, units
annotation, DEFAULT_MATCH_MODE, display, leftContext, leftContexts, matchMode, trigger, triggers
name
modifiedAt, modifiedBy
Constructor and Description |
---|
IntegerEntity() |
IntegerEntity(IntegerEntity o)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
void |
check(boolean deep,
java.lang.String errorContext)
Checks this IntegerEntity.
|
static IntegerEntity |
fromString(java.lang.String s)
String representation of this IntegerEntity.
|
double |
getCoefficient()
The normalization coefficient used to multiply the matched value
|
int |
getMax()
Maximum value for a match
|
int |
getMin()
Minimum value for a match
|
int |
getPrecision()
The floating-point precision in output
|
int |
getStep()
If defined, normalizes the value to the nearest step
|
boolean |
isAddExactValue()
If true, adds the original value (before normalization) in an extra annotation TAG.exact
|
boolean |
isHandleOutOfBoundValues()
If false, ignores values lower than min or greater than max
|
boolean |
isTruncateTrailingZeros()
If true, removes the trailing zeros after point
|
IntegerEntity |
makeCopy()
Creates and returns a deep copy of this IntegerEntity.
|
static IntegerEntity |
readFrom(java.io.InputStream is)
Read this IntegerEntity from an XML fragment.
|
void |
setAddExactValue(boolean addExactValue)
If true, adds the original value (before normalization) in an extra annotation TAG.exact
|
void |
setCoefficient(double coefficient)
The normalization coefficient used to multiply the matched value
|
void |
setHandleOutOfBoundValues(boolean handleOutOfBoundValues)
If false, ignores values lower than min or greater than max
|
void |
setMax(int max)
Maximum value for a match
|
void |
setMin(int min)
Minimum value for a match
|
void |
setPrecision(int precision)
The floating-point precision in output
|
void |
setStep(int step)
If defined, normalizes the value to the nearest step
|
void |
setTruncateTrailingZeros(boolean truncateTrailingZeros)
If true, removes the trailing zeros after point
|
java.lang.String |
toString()
String representation of this IntegerEntity.
|
IntegerEntity |
withAddExactValue(boolean addExactValue) |
IntegerEntity |
withAddExactValue(java.lang.Boolean addExactValue) |
IntegerEntity |
withAnnotation(java.lang.String annotation) |
IntegerEntity |
withCoefficient(double coefficient) |
IntegerEntity |
withDisplay(java.lang.String display) |
IntegerEntity |
withHandleOutOfBoundValues(boolean handleOutOfBoundValues) |
IntegerEntity |
withHandleOutOfBoundValues(java.lang.Boolean handleOutOfBoundValues) |
IntegerEntity |
withLeftContext(java.lang.String leftContext) |
IntegerEntity |
withLeftContexts(java.util.Collection<exa.bee.StringValue> __values) |
IntegerEntity |
withLeftContexts(exa.bee.StringValue... __values)
Alias for triggers
|
IntegerEntity |
withMatchMode(java.lang.String matchMode) |
IntegerEntity |
withMax(int max) |
IntegerEntity |
withMax(java.lang.Integer max) |
IntegerEntity |
withMin(int min) |
IntegerEntity |
withMin(java.lang.Integer min) |
IntegerEntity |
withModifiedAt(java.lang.Long modifiedAt) |
IntegerEntity |
withModifiedBy(java.lang.String modifiedBy) |
IntegerEntity |
withName(java.lang.String name) |
IntegerEntity |
withPrecision(int precision) |
IntegerEntity |
withPrecision(java.lang.Integer precision) |
IntegerEntity |
withRightContext(java.lang.String rightContext) |
IntegerEntity |
withRightContexts(java.util.Collection<exa.bee.StringValue> __values) |
IntegerEntity |
withRightContexts(exa.bee.StringValue... __values)
Alias for units
|
IntegerEntity |
withStep(int step) |
IntegerEntity |
withStep(java.lang.Integer step) |
IntegerEntity |
withTrigger(java.lang.String trigger) |
IntegerEntity |
withTriggers(java.util.Collection<exa.bee.StringValue> __values) |
IntegerEntity |
withTriggers(exa.bee.StringValue... __values)
An optional list of left contexts triggering the match
|
IntegerEntity |
withTruncateTrailingZeros(boolean truncateTrailingZeros) |
IntegerEntity |
withTruncateTrailingZeros(java.lang.Boolean truncateTrailingZeros) |
IntegerEntity |
withUnit(java.lang.String unit) |
IntegerEntity |
withUnits(java.util.Collection<exa.bee.StringValue> __values) |
IntegerEntity |
withUnits(exa.bee.StringValue... __values)
An optional list of conditions on right context
|
void |
writeTo(java.io.OutputStream os)
Write this IntegerEntity as an XML fragment
|
getRightContext, getRightContexts, getUnit, getUnits, setRightContext, setRightContexts, setUnit, setUnits, withRightContexts, withUnits
getAnnotation, getDisplay, getLeftContext, getLeftContexts, getMatchMode, getTrigger, getTriggers, setAnnotation, setDisplay, setLeftContext, setLeftContexts, setMatchMode, setTrigger, setTriggers, withLeftContexts, withTriggers
getName, setName
getModifiedAt, getModifiedBy, setModifiedAt, setModifiedBy
public int step
public static final int DEFAULT_STEP
public int min
public static final int DEFAULT_MIN
public int max
public static final int DEFAULT_MAX
public double coefficient
public static final double DEFAULT_COEFFICIENT
public int precision
public static final int DEFAULT_PRECISION
public boolean handleOutOfBoundValues
public static final boolean DEFAULT_HANDLE_OUT_OF_BOUND_VALUES
public boolean addExactValue
public static final boolean DEFAULT_ADD_EXACT_VALUE
public boolean truncateTrailingZeros
public static final boolean DEFAULT_TRUNCATE_TRAILING_ZEROS
public IntegerEntity()
public IntegerEntity(IntegerEntity o)
public IntegerEntity withUnit(java.lang.String unit)
withUnit
in class ValuedEntity
public IntegerEntity withUnits(exa.bee.StringValue... __values)
withUnits
in class ValuedEntity
public IntegerEntity withUnits(java.util.Collection<exa.bee.StringValue> __values)
withUnits
in class ValuedEntity
public IntegerEntity withRightContext(java.lang.String rightContext)
withRightContext
in class ValuedEntity
public IntegerEntity withRightContexts(exa.bee.StringValue... __values)
withRightContexts
in class ValuedEntity
public IntegerEntity withRightContexts(java.util.Collection<exa.bee.StringValue> __values)
withRightContexts
in class ValuedEntity
public IntegerEntity withTrigger(java.lang.String trigger)
withTrigger
in class ValuedEntity
public IntegerEntity withTriggers(exa.bee.StringValue... __values)
withTriggers
in class ValuedEntity
public IntegerEntity withTriggers(java.util.Collection<exa.bee.StringValue> __values)
withTriggers
in class ValuedEntity
public IntegerEntity withLeftContext(java.lang.String leftContext)
withLeftContext
in class ValuedEntity
public IntegerEntity withLeftContexts(exa.bee.StringValue... __values)
withLeftContexts
in class ValuedEntity
public IntegerEntity withLeftContexts(java.util.Collection<exa.bee.StringValue> __values)
withLeftContexts
in class ValuedEntity
public IntegerEntity withAnnotation(java.lang.String annotation)
withAnnotation
in class ValuedEntity
public IntegerEntity withDisplay(java.lang.String display)
withDisplay
in class ValuedEntity
public IntegerEntity withMatchMode(java.lang.String matchMode)
withMatchMode
in class ValuedEntity
public IntegerEntity withName(java.lang.String name)
withName
in class ValuedEntity
public IntegerEntity withModifiedBy(java.lang.String modifiedBy)
withModifiedBy
in class ValuedEntity
public IntegerEntity withModifiedAt(java.lang.Long modifiedAt)
withModifiedAt
in class ValuedEntity
public void setStep(int step)
public int getStep()
public IntegerEntity withStep(int step)
public IntegerEntity withStep(java.lang.Integer step)
public void setMin(int min)
public int getMin()
public IntegerEntity withMin(int min)
public IntegerEntity withMin(java.lang.Integer min)
public void setMax(int max)
public int getMax()
public IntegerEntity withMax(int max)
public IntegerEntity withMax(java.lang.Integer max)
public void setCoefficient(double coefficient)
public double getCoefficient()
public IntegerEntity withCoefficient(double coefficient)
public void setPrecision(int precision)
public int getPrecision()
public IntegerEntity withPrecision(int precision)
public IntegerEntity withPrecision(java.lang.Integer precision)
public void setHandleOutOfBoundValues(boolean handleOutOfBoundValues)
public boolean isHandleOutOfBoundValues()
public IntegerEntity withHandleOutOfBoundValues(boolean handleOutOfBoundValues)
public IntegerEntity withHandleOutOfBoundValues(java.lang.Boolean handleOutOfBoundValues)
public void setAddExactValue(boolean addExactValue)
public boolean isAddExactValue()
public IntegerEntity withAddExactValue(boolean addExactValue)
public IntegerEntity withAddExactValue(java.lang.Boolean addExactValue)
public void setTruncateTrailingZeros(boolean truncateTrailingZeros)
public boolean isTruncateTrailingZeros()
public IntegerEntity withTruncateTrailingZeros(boolean truncateTrailingZeros)
public IntegerEntity withTruncateTrailingZeros(java.lang.Boolean truncateTrailingZeros)
public IntegerEntity makeCopy()
makeCopy
in class ValuedEntity
public static IntegerEntity readFrom(java.io.InputStream is) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public void writeTo(java.io.OutputStream os) throws javax.xml.bind.JAXBException, java.io.IOException
writeTo
in class ValuedEntity
javax.xml.bind.JAXBException
java.io.IOException
public static IntegerEntity fromString(java.lang.String s) throws javax.xml.bind.JAXBException, java.io.UnsupportedEncodingException
javax.xml.bind.JAXBException
java.io.UnsupportedEncodingException
public java.lang.String toString()
toString
in class ValuedEntity
public void check(boolean deep, java.lang.String errorContext) throws com.exalead.util.TypedException
check
in interface com.exalead.util.Checkable
check
in class ValuedEntity
com.exalead.util.TypedException
Copyright © 2013 Dassault Systèmes, All Rights Reserved.