Class TypeDescriptionInfo
- java.lang.Object
-
- com._1c.g5.v8.dt.platform.core.typeinfo.TypeDescriptionInfo
-
- Direct Known Subclasses:
TypeDescriptionInfoWithCategories
,TypeDescriptionInfoWithTypeInfo
public abstract class TypeDescriptionInfo extends Object
Описание правил для значений и список допустимых типов в разных контекстах.
-
-
Constructor Summary
Constructors Constructor Description TypeDescriptionInfo()
Constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract boolean
contains(TypeItem type)
Checks thattype
contains in this descriptionSet<DateFractions>
getDateFractions()
Gets date fractions.int
getMaxBinaryLenFix()
Gets max fix binary data length.int
getMaxBinaryLenVar()
Gets max variable binary data length.int
getMaxPrecisionLen()
Gets max number precision length.int
getMaxScaleLen()
Gets max number scale length.int
getMaxStringLenFix()
Gets max fix string length.int
getMaxStringLenVar()
Gets max variable string length.int
getMinBinaryLen()
Gets min binary data length.int
getMinStringLen()
Gets min string length.boolean
isCompositeTypeEnable()
Is composite type.boolean
isEmptyTypeEnable()
Is empty type enable.boolean
isMixSingleEnable()
Is mix single type enable.boolean
isNumericPositiveOnly()
Is only positive numeric enable.boolean
isQualifiersEnable()
Is qualifiers enable.boolean
isStringFixedOnly()
Is only fixed string enable.void
setCompositeTypeEnable(boolean compositeTypeEnable)
Sets composite type enable.void
setDateFractions(Set<DateFractions> dateFractions)
Sets date fraction.void
setEmptyTypeEnable(boolean emptyTypeEnable)
Sets empty type enable.void
setMaxBinaryLenFix(int maxBinaryLenFix)
Sets max fix binary data length.void
setMaxBinaryLenVar(int maxBinaryLenVar)
Sets max varible binary data length.void
setMaxPrecisionLen(int maxPrecisionLen)
Sets max precision length.void
setMaxScaleLen(int maxScaleLen)
Sets max scale length.void
setMaxStringLenFix(int maxStringLenFix)
Sets max fix string length.void
setMaxStringLenVar(int maxStringLenVar)
Sets max string length variable.void
setMinBinaryLen(int minBinaryLen)
Sets min binary data length.void
setMinStringLen(int minStringLen)
Sets min string length.void
setMixSingleEnable(boolean mixSingleEnable)
Sets mix single enable.void
setNumericPositiveOnly(boolean numericPositiveOnly)
Sets number positive only.void
setQualifiersEnable(boolean qualifiersEnable)
Sets qualifiers enable.void
setStringFixedOnly(boolean stringFixedOnly)
Sets fixed string only.
-
-
-
Method Detail
-
getDateFractions
public Set<DateFractions> getDateFractions()
Gets date fractions.- Returns:
- data fractions
-
getMaxBinaryLenFix
public int getMaxBinaryLenFix()
Gets max fix binary data length.- Returns:
- max fix binary data length
-
getMaxBinaryLenVar
public int getMaxBinaryLenVar()
Gets max variable binary data length.- Returns:
- max variable binary data length
-
getMaxPrecisionLen
public int getMaxPrecisionLen()
Gets max number precision length.- Returns:
- max number precision length
-
getMaxScaleLen
public int getMaxScaleLen()
Gets max number scale length.- Returns:
- max number scale length
-
getMaxStringLenFix
public int getMaxStringLenFix()
Gets max fix string length.- Returns:
- max fix string length
-
getMaxStringLenVar
public int getMaxStringLenVar()
Gets max variable string length.- Returns:
- max variable string length
-
getMinBinaryLen
public int getMinBinaryLen()
Gets min binary data length.- Returns:
- min binary data length
-
getMinStringLen
public int getMinStringLen()
Gets min string length.- Returns:
- min string length
-
isCompositeTypeEnable
public boolean isCompositeTypeEnable()
Is composite type.- Returns:
- true if is
-
isEmptyTypeEnable
public boolean isEmptyTypeEnable()
Is empty type enable.- Returns:
- true if is
-
isMixSingleEnable
public boolean isMixSingleEnable()
Is mix single type enable.- Returns:
- true if is
-
isNumericPositiveOnly
public boolean isNumericPositiveOnly()
Is only positive numeric enable.- Returns:
- true if is
-
isStringFixedOnly
public boolean isStringFixedOnly()
Is only fixed string enable.- Returns:
- true if is
-
isQualifiersEnable
public boolean isQualifiersEnable()
Is qualifiers enable.- Returns:
true
is qualifiers enable,false
otherwise
-
setCompositeTypeEnable
public void setCompositeTypeEnable(boolean compositeTypeEnable)
Sets composite type enable.- Parameters:
the
- composite type enable flag
-
setDateFractions
public void setDateFractions(Set<DateFractions> dateFractions)
Sets date fraction.- Parameters:
date
- fractions
-
setEmptyTypeEnable
public void setEmptyTypeEnable(boolean emptyTypeEnable)
Sets empty type enable.- Parameters:
emptyTypeEnable
- the emptyTypeEnable to set
-
setMaxBinaryLenFix
public void setMaxBinaryLenFix(int maxBinaryLenFix)
Sets max fix binary data length.- Parameters:
max
- binary len fix
-
setMaxBinaryLenVar
public void setMaxBinaryLenVar(int maxBinaryLenVar)
Sets max varible binary data length.- Parameters:
max
- binary len fix
-
setMaxPrecisionLen
public void setMaxPrecisionLen(int maxPrecisionLen)
Sets max precision length.- Parameters:
max
- precision len
-
setMaxScaleLen
public void setMaxScaleLen(int maxScaleLen)
Sets max scale length.- Parameters:
max
- scale len
-
setMaxStringLenFix
public void setMaxStringLenFix(int maxStringLenFix)
Sets max fix string length.- Parameters:
max
- string len fix
-
setMaxStringLenVar
public void setMaxStringLenVar(int maxStringLenVar)
Sets max string length variable.- Parameters:
max
- string length variable
-
setMinBinaryLen
public void setMinBinaryLen(int minBinaryLen)
Sets min binary data length.- Parameters:
min
- binary data length
-
setMinStringLen
public void setMinStringLen(int minStringLen)
Sets min string length.- Parameters:
min
- string length
-
setMixSingleEnable
public void setMixSingleEnable(boolean mixSingleEnable)
Sets mix single enable.- Parameters:
mix
- single enable
-
setNumericPositiveOnly
public void setNumericPositiveOnly(boolean numericPositiveOnly)
Sets number positive only.- Parameters:
number
- positive only
-
setStringFixedOnly
public void setStringFixedOnly(boolean stringFixedOnly)
Sets fixed string only.- Parameters:
fixed
- string only
-
setQualifiersEnable
public void setQualifiersEnable(boolean qualifiersEnable)
Sets qualifiers enable.- Parameters:
qualifiersEnable
-true
is qualifiers enable,false
otherwise
-
contains
public abstract boolean contains(TypeItem type)
Checks thattype
contains in this description- Parameters:
type
- checking type, can't benull
- Returns:
true
iftype
contains in this description,false
otherwise
-
-