public class EventTypeUtility extends Object
Modifier and Type | Class and Description |
---|---|
static class |
EventTypeUtility.TimestampPropertyDesc |
Constructor and Description |
---|
EventTypeUtility() |
Modifier and Type | Method and Description |
---|---|
static Object |
buildType(ColumnDesc column,
EngineImportService engineImportService) |
static LinkedHashMap<String,Object> |
buildType(List<ColumnDesc> columns,
EventAdapterService eventAdapterService,
Set<String> copyFrom,
EngineImportService engineImportService) |
static Map<String,Object> |
compileMapTypeProperties(Map<String,Object> typing,
EventAdapterService eventAdapterService)
Determine among the Map-type properties which properties are Bean-type event type names,
rewrites these as Class-type instead so that they are configured as native property and do not require wrapping,
but may require unwrapping.
|
static EventType |
createNonVariantType(boolean isAnonymous,
CreateSchemaDesc spec,
Annotation[] annotations,
ConfigurationInformation configSnapshot,
EventAdapterService eventAdapterService,
EngineImportService engineImportService) |
static String |
disallowedAtTypeMessage() |
static WriteablePropertyDescriptor |
findWritable(String propertyName,
Set<WriteablePropertyDescriptor> writables) |
static EventPropertyGetterSPI |
getNestableGetter(String propertyName,
Map<String,PropertySetDescriptorItem> propertyGetters,
Map<String,EventPropertyGetterSPI> propertyGetterCache,
Map<String,Object> nestableTypes,
EventAdapterService eventAdapterService,
EventTypeNestableGetterFactory factory,
boolean isObjectArray) |
static PropertySetDescriptor |
getNestableProperties(Map<String,Object> propertiesToAdd,
EventAdapterService eventAdapterService,
EventTypeNestableGetterFactory factory,
EventType[] optionalSuperTypes) |
static EventPropertyDescriptor |
getNestablePropertyDescriptor(EventType target,
Deque<Property> stack) |
static EventPropertyDescriptor |
getNestablePropertyDescriptor(EventType target,
String propertyName) |
static Class |
getNestablePropertyType(String propertyName,
Map<String,PropertySetDescriptorItem> simplePropertyTypes,
Map<String,Object> nestableTypes,
EventAdapterService eventAdapterService) |
static String |
getPropertyRemoveArray(String name)
Returns the property name without the array type extension, if present.
|
static Map<String,Object> |
getPropertyTypesNonPrimitive(Map<String,Object> propertyTypesMayPrimitive) |
static Pair<EventType[],Set<EventType>> |
getSuperTypesDepthFirst(ConfigurationEventTypeWithSupertype optionalConfig,
EventUnderlyingType representation,
Map<String,? extends EventType> nameToTypeMap) |
static Pair<EventType[],Set<EventType>> |
getSuperTypesDepthFirst(Set<String> superTypesSet,
EventUnderlyingType representation,
Map<String,? extends EventType> nameToTypeMap) |
static boolean |
isPropertyArray(String name)
Returns true if the name indicates that the type is an array type.
|
static boolean |
isTypeOrSubTypeOf(EventType candidate,
EventType superType) |
static boolean |
isTypeOrSubTypeOf(String typeName,
EventType sameTypeOrSubtype) |
static EventType |
requireEventType(String aspectCamel,
String aspectName,
EventAdapterService eventAdapterService,
String optionalEventTypeName) |
static EventTypeUtility.TimestampPropertyDesc |
validatedDetermineTimestampProps(EventType type,
String startProposed,
String endProposed,
EventType[] superTypes) |
static void |
validateEventBeanClassVisibility(Class clazz) |
static LinkedHashMap<String,Object> |
validateObjectArrayDef(String[] propertyNames,
Object[] propertyTypes) |
static void |
validateTimestampProperties(EventType eventType,
String startTimestampProperty,
String endTimestampProperty) |
public static Map<String,Object> getPropertyTypesNonPrimitive(Map<String,Object> propertyTypesMayPrimitive)
public static EventType requireEventType(String aspectCamel, String aspectName, EventAdapterService eventAdapterService, String optionalEventTypeName) throws ExprValidationException
ExprValidationException
public static Pair<EventType[],Set<EventType>> getSuperTypesDepthFirst(ConfigurationEventTypeWithSupertype optionalConfig, EventUnderlyingType representation, Map<String,? extends EventType> nameToTypeMap)
public static Pair<EventType[],Set<EventType>> getSuperTypesDepthFirst(Set<String> superTypesSet, EventUnderlyingType representation, Map<String,? extends EventType> nameToTypeMap) throws EventAdapterException
EventAdapterException
public static EventPropertyDescriptor getNestablePropertyDescriptor(EventType target, String propertyName)
public static EventPropertyDescriptor getNestablePropertyDescriptor(EventType target, Deque<Property> stack)
public static LinkedHashMap<String,Object> buildType(List<ColumnDesc> columns, EventAdapterService eventAdapterService, Set<String> copyFrom, EngineImportService engineImportService) throws ExprValidationException
ExprValidationException
public static Object buildType(ColumnDesc column, EngineImportService engineImportService) throws ExprValidationException
ExprValidationException
public static void validateTimestampProperties(EventType eventType, String startTimestampProperty, String endTimestampProperty) throws ConfigurationException
ConfigurationException
public static Map<String,Object> compileMapTypeProperties(Map<String,Object> typing, EventAdapterService eventAdapterService)
typing
- properties of map typeeventAdapterService
- event adapter servicepublic static boolean isPropertyArray(String name)
name
- the property namepublic static boolean isTypeOrSubTypeOf(String typeName, EventType sameTypeOrSubtype)
public static String getPropertyRemoveArray(String name)
name
- property namepublic static PropertySetDescriptor getNestableProperties(Map<String,Object> propertiesToAdd, EventAdapterService eventAdapterService, EventTypeNestableGetterFactory factory, EventType[] optionalSuperTypes) throws EPException
EPException
public static Class getNestablePropertyType(String propertyName, Map<String,PropertySetDescriptorItem> simplePropertyTypes, Map<String,Object> nestableTypes, EventAdapterService eventAdapterService)
public static EventPropertyGetterSPI getNestableGetter(String propertyName, Map<String,PropertySetDescriptorItem> propertyGetters, Map<String,EventPropertyGetterSPI> propertyGetterCache, Map<String,Object> nestableTypes, EventAdapterService eventAdapterService, EventTypeNestableGetterFactory factory, boolean isObjectArray)
public static LinkedHashMap<String,Object> validateObjectArrayDef(String[] propertyNames, Object[] propertyTypes)
public static EventType createNonVariantType(boolean isAnonymous, CreateSchemaDesc spec, Annotation[] annotations, ConfigurationInformation configSnapshot, EventAdapterService eventAdapterService, EngineImportService engineImportService) throws ExprValidationException
ExprValidationException
public static WriteablePropertyDescriptor findWritable(String propertyName, Set<WriteablePropertyDescriptor> writables)
public static EventTypeUtility.TimestampPropertyDesc validatedDetermineTimestampProps(EventType type, String startProposed, String endProposed, EventType[] superTypes) throws EPException
EPException
public static String disallowedAtTypeMessage()
public static void validateEventBeanClassVisibility(Class clazz)