Class EClassFieldFormat
java.lang.Object
de.hybris.platform.catalog.jalo.classification.eclass.EClassFieldFormat
EClass field format implemenation. This class parsed eclass field format strings and provides an API to it. Besides
it also performs a mapping to the classification attribute type.
EnumerationValue atrType = EClassFieldFormat.convertToAttributeType("X.12");
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EnumerationValueconvertToAttributeType(String fieldFormat) Parses a eclass field format string and converts it into a calssification attribute type enum.static StringgetClassificationNumberForExport(String classNumber) Return the classification number of this category with an '-' after each layer.intintbooleanbooleanisSigned()protected booleanisText()protected voidparse()
-
Field Details
-
EXP
public static final char EXP- See Also:
-
SIGNED
public static final char SIGNED- See Also:
-
NUMBER_DOUBLE
- See Also:
-
NUMBER_DECIMAL
- See Also:
-
NUMBER_INT
- See Also:
-
BOOLEAN
- See Also:
-
CHAR_ALPHANUMERICAL
- See Also:
-
CHAR_NUMERICAL
- See Also:
-
CHAR_MIXED
- See Also:
-
CHAR_ALPHA
- See Also:
-
-
Constructor Details
-
EClassFieldFormat
-
-
Method Details
-
getClassificationNumberForExport
Return the classification number of this category with an '-' after each layer. For example: 11-22-33-44 for classification number: 11223344.- Returns:
- classification number for export
-
convertToAttributeType
Parses a eclass field format string and converts it into a calssification attribute type enum.- Parameters:
fieldFormat- the field format string
-
parse
protected void parse() -
isText
protected boolean isText() -
getClassificationAttributeType
-
getFieldType
-
isFixedLength
public boolean isFixedLength() -
isSigned
public boolean isSigned() -
getFieldLength
public int getFieldLength() -
getFractionDigits
public int getFractionDigits()
-