public class EventTypeUtility
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
EventTypeUtility.TimestampPropertyDesc |
Constructor and Description |
---|
EventTypeUtility() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
buildType(ColumnDesc column,
EngineImportService engineImportService) |
static java.util.LinkedHashMap<java.lang.String,java.lang.Object> |
buildType(java.util.List<ColumnDesc> columns,
EventAdapterService eventAdapterService,
java.util.Set<java.lang.String> copyFrom,
EngineImportService engineImportService) |
static java.util.Map<java.lang.String,java.lang.Object> |
compileMapTypeProperties(java.util.Map<java.lang.String,java.lang.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,
java.lang.annotation.Annotation[] annotations,
ConfigurationInformation configSnapshot,
EventAdapterService eventAdapterService,
EngineImportService engineImportService) |
static java.lang.String |
disallowedAtTypeMessage() |
static WriteablePropertyDescriptor |
findWritable(java.lang.String propertyName,
java.util.Set<WriteablePropertyDescriptor> writables) |
static EventPropertyGetterSPI |
getNestableGetter(java.lang.String propertyName,
java.util.Map<java.lang.String,PropertySetDescriptorItem> propertyGetters,
java.util.Map<java.lang.String,EventPropertyGetterSPI> propertyGetterCache,
java.util.Map<java.lang.String,java.lang.Object> nestableTypes,
EventAdapterService eventAdapterService,
EventTypeNestableGetterFactory factory,
boolean isObjectArray) |
static PropertySetDescriptor |
getNestableProperties(java.util.Map<java.lang.String,java.lang.Object> propertiesToAdd,
EventAdapterService eventAdapterService,
EventTypeNestableGetterFactory factory,
EventType[] optionalSuperTypes) |
static EventPropertyDescriptor |
getNestablePropertyDescriptor(EventType target,
java.util.Deque<Property> stack) |
static EventPropertyDescriptor |
getNestablePropertyDescriptor(EventType target,
java.lang.String propertyName) |
static java.lang.Class |
getNestablePropertyType(java.lang.String propertyName,
java.util.Map<java.lang.String,PropertySetDescriptorItem> simplePropertyTypes,
java.util.Map<java.lang.String,java.lang.Object> nestableTypes,
EventAdapterService eventAdapterService) |
static java.lang.String |
getPropertyRemoveArray(java.lang.String name)
Returns the property name without the array type extension, if present.
|
static java.util.Map<java.lang.String,java.lang.Object> |
getPropertyTypesNonPrimitive(java.util.Map<java.lang.String,java.lang.Object> propertyTypesMayPrimitive) |
static Pair<EventType[],java.util.Set<EventType>> |
getSuperTypesDepthFirst(ConfigurationEventTypeWithSupertype optionalConfig,
EventUnderlyingType representation,
java.util.Map<java.lang.String,? extends EventType> nameToTypeMap) |
static Pair<EventType[],java.util.Set<EventType>> |
getSuperTypesDepthFirst(java.util.Set<java.lang.String> superTypesSet,
EventUnderlyingType representation,
java.util.Map<java.lang.String,? extends EventType> nameToTypeMap) |
static boolean |
isPropertyArray(java.lang.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(java.lang.String typeName,
EventType sameTypeOrSubtype) |
static EventType |
requireEventType(java.lang.String aspectCamel,
java.lang.String aspectName,
EventAdapterService eventAdapterService,
java.lang.String optionalEventTypeName) |
static EventTypeUtility.TimestampPropertyDesc |
validatedDetermineTimestampProps(EventType type,
java.lang.String startProposed,
java.lang.String endProposed,
EventType[] superTypes) |
static void |
validateEventBeanClassVisibility(java.lang.Class clazz) |
static java.util.LinkedHashMap<java.lang.String,java.lang.Object> |
validateObjectArrayDef(java.lang.String[] propertyNames,
java.lang.Object[] propertyTypes) |
static void |
validateTimestampProperties(EventType eventType,
java.lang.String startTimestampProperty,
java.lang.String endTimestampProperty) |
public static java.util.Map<java.lang.String,java.lang.Object> getPropertyTypesNonPrimitive(java.util.Map<java.lang.String,java.lang.Object> propertyTypesMayPrimitive)
public static EventType requireEventType(java.lang.String aspectCamel, java.lang.String aspectName, EventAdapterService eventAdapterService, java.lang.String optionalEventTypeName) throws ExprValidationException
ExprValidationException
public static Pair<EventType[],java.util.Set<EventType>> getSuperTypesDepthFirst(ConfigurationEventTypeWithSupertype optionalConfig, EventUnderlyingType representation, java.util.Map<java.lang.String,? extends EventType> nameToTypeMap)
public static Pair<EventType[],java.util.Set<EventType>> getSuperTypesDepthFirst(java.util.Set<java.lang.String> superTypesSet, EventUnderlyingType representation, java.util.Map<java.lang.String,? extends EventType> nameToTypeMap) throws EventAdapterException
EventAdapterException
public static EventPropertyDescriptor getNestablePropertyDescriptor(EventType target, java.lang.String propertyName)
public static EventPropertyDescriptor getNestablePropertyDescriptor(EventType target, java.util.Deque<Property> stack)
public static java.util.LinkedHashMap<java.lang.String,java.lang.Object> buildType(java.util.List<ColumnDesc> columns, EventAdapterService eventAdapterService, java.util.Set<java.lang.String> copyFrom, EngineImportService engineImportService) throws ExprValidationException
ExprValidationException
public static java.lang.Object buildType(ColumnDesc column, EngineImportService engineImportService) throws ExprValidationException
ExprValidationException
public static void validateTimestampProperties(EventType eventType, java.lang.String startTimestampProperty, java.lang.String endTimestampProperty) throws ConfigurationException
ConfigurationException
public static java.util.Map<java.lang.String,java.lang.Object> compileMapTypeProperties(java.util.Map<java.lang.String,java.lang.Object> typing, EventAdapterService eventAdapterService)
typing
- properties of map typeeventAdapterService
- event adapter servicepublic static boolean isPropertyArray(java.lang.String name)
name
- the property namepublic static boolean isTypeOrSubTypeOf(java.lang.String typeName, EventType sameTypeOrSubtype)
public static java.lang.String getPropertyRemoveArray(java.lang.String name)
name
- property namepublic static PropertySetDescriptor getNestableProperties(java.util.Map<java.lang.String,java.lang.Object> propertiesToAdd, EventAdapterService eventAdapterService, EventTypeNestableGetterFactory factory, EventType[] optionalSuperTypes) throws EPException
EPException
public static java.lang.Class getNestablePropertyType(java.lang.String propertyName, java.util.Map<java.lang.String,PropertySetDescriptorItem> simplePropertyTypes, java.util.Map<java.lang.String,java.lang.Object> nestableTypes, EventAdapterService eventAdapterService)
public static EventPropertyGetterSPI getNestableGetter(java.lang.String propertyName, java.util.Map<java.lang.String,PropertySetDescriptorItem> propertyGetters, java.util.Map<java.lang.String,EventPropertyGetterSPI> propertyGetterCache, java.util.Map<java.lang.String,java.lang.Object> nestableTypes, EventAdapterService eventAdapterService, EventTypeNestableGetterFactory factory, boolean isObjectArray)
public static java.util.LinkedHashMap<java.lang.String,java.lang.Object> validateObjectArrayDef(java.lang.String[] propertyNames, java.lang.Object[] propertyTypes)
public static EventType createNonVariantType(boolean isAnonymous, CreateSchemaDesc spec, java.lang.annotation.Annotation[] annotations, ConfigurationInformation configSnapshot, EventAdapterService eventAdapterService, EngineImportService engineImportService) throws ExprValidationException
ExprValidationException
public static WriteablePropertyDescriptor findWritable(java.lang.String propertyName, java.util.Set<WriteablePropertyDescriptor> writables)
public static EventTypeUtility.TimestampPropertyDesc validatedDetermineTimestampProps(EventType type, java.lang.String startProposed, java.lang.String endProposed, EventType[] superTypes) throws EPException
EPException
public static java.lang.String disallowedAtTypeMessage()
public static void validateEventBeanClassVisibility(java.lang.Class clazz)