public class FieldHelper extends Object
Very hack-ish solution which is required atm. as we don't have access to the actual property types when dealing with document fields in the work visitor. All this code should not be needed ideally.
Modifier and Type | Class and Description |
---|---|
static class |
FieldHelper.ExtendedFieldType |
Modifier and Type | Method and Description |
---|---|
static String |
getEmbeddedFieldPath(String field) |
static String |
getEmbeddedFieldPropertyName(String field) |
static String[] |
getFieldNameParts(String fieldName) |
static FieldHelper.ExtendedFieldType |
getType(BridgeDefinedField field) |
static FieldHelper.ExtendedFieldType |
getType(DocumentFieldMetadata fieldMetadata) |
static boolean |
isEmbeddedField(String field) |
static boolean |
isNumeric(DocumentFieldMetadata field) |
static boolean |
isSortableField(TypeMetadata sourceType,
PropertyMetadata sourceProperty,
String fieldName) |
public static FieldHelper.ExtendedFieldType getType(DocumentFieldMetadata fieldMetadata)
public static FieldHelper.ExtendedFieldType getType(BridgeDefinedField field)
public static boolean isNumeric(DocumentFieldMetadata field)
public static boolean isSortableField(TypeMetadata sourceType, PropertyMetadata sourceProperty, String fieldName)
public static boolean isEmbeddedField(String field)
Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved