public class DynamicMappedProperty extends PropertyBase implements DynamicProperty, PropertyWithKey
Dynamic properties always exist, have an Object type and are resolved to a method during runtime.
propertyNameAtomic
Constructor and Description |
---|
DynamicMappedProperty(String propertyName,
String key)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
EventPropertyGetterSPI |
getGetter(BeanEventType eventType,
EventAdapterService eventAdapterService)
Returns value getter for the property of an event of the given event type.
|
EventPropertyGetterSPI |
getGetterDOM()
Returns the getter-method for use with XML DOM event representations.
|
EventPropertyGetterSPI |
getGetterDOM(SchemaElementComplex complexProperty,
EventAdapterService eventAdapterService,
BaseXMLEventType eventType,
String propertyExpression)
Returns the getter-method for use with XML DOM event representations.
|
MapEventPropertyGetter |
getGetterMap(Map optionalMapPropTypes,
EventAdapterService eventAdapterService)
Returns the getter-method for use with Map event representations.
|
ObjectArrayEventPropertyGetter |
getGetterObjectArray(Map<String,Integer> indexPerProperty,
Map<String,Object> nestableTypes,
EventAdapterService eventAdapterService) |
String |
getKey() |
Class |
getPropertyType(BeanEventType eventType,
EventAdapterService eventAdapterService)
Returns the property type.
|
GenericPropertyDesc |
getPropertyTypeGeneric(BeanEventType beanEventType,
EventAdapterService eventAdapterService)
Returns the property type plus its generic type parameter, if any.
|
Class |
getPropertyTypeMap(Map optionalMapPropTypes,
EventAdapterService eventAdapterService)
Returns the property type for use with Map event representations.
|
SchemaItem |
getPropertyTypeSchema(SchemaElementComplex complexProperty,
EventAdapterService eventAdapterService)
Returns the property type for use with DOM event representations.
|
boolean |
isDynamic()
Returns true for dynamic properties.
|
String[] |
toPropertyArray()
Return a String-array of atomic property names.
|
void |
toPropertyEPL(StringWriter writer)
Write the EPL-representation of the property.
|
getPropertyNameAtomic
public boolean isDynamic()
Property
isDynamic
in interface Property
isDynamic
in class PropertyBase
public String[] toPropertyArray()
Property
toPropertyArray
in interface Property
public EventPropertyGetterSPI getGetter(BeanEventType eventType, EventAdapterService eventAdapterService)
Property
public Class getPropertyType(BeanEventType eventType, EventAdapterService eventAdapterService)
Property
getPropertyType
in interface Property
eventType
- is the event type representing the JavaBeaneventAdapterService
- for event adapterspublic GenericPropertyDesc getPropertyTypeGeneric(BeanEventType beanEventType, EventAdapterService eventAdapterService)
Property
getPropertyTypeGeneric
in interface Property
beanEventType
- is the event type representing the JavaBeaneventAdapterService
- for event adapterspublic Class getPropertyTypeMap(Map optionalMapPropTypes, EventAdapterService eventAdapterService)
Property
getPropertyTypeMap
in interface Property
optionalMapPropTypes
- a map-within-map type definition, if supplied, or null if not suppliedeventAdapterService
- for resolving further map event types that are property typespublic MapEventPropertyGetter getGetterMap(Map optionalMapPropTypes, EventAdapterService eventAdapterService)
Property
getGetterMap
in interface Property
optionalMapPropTypes
- a map-within-map type definition, if supplied, or null if not suppliedeventAdapterService
- for resolving further map event types that are property typespublic void toPropertyEPL(StringWriter writer)
Property
toPropertyEPL
in interface Property
writer
- to write topublic EventPropertyGetterSPI getGetterDOM(SchemaElementComplex complexProperty, EventAdapterService eventAdapterService, BaseXMLEventType eventType, String propertyExpression)
Property
getGetterDOM
in interface Property
complexProperty
- a element-within-element type definitioneventAdapterService
- for resolving or creating further event types that are property typeseventType
- the event typepropertyExpression
- the full property expressionpublic SchemaItem getPropertyTypeSchema(SchemaElementComplex complexProperty, EventAdapterService eventAdapterService)
Property
getPropertyTypeSchema
in interface Property
complexProperty
- a element-within-element type definitioneventAdapterService
- for resolving further element event types if definedpublic EventPropertyGetterSPI getGetterDOM()
Property
getGetterDOM
in interface Property
public ObjectArrayEventPropertyGetter getGetterObjectArray(Map<String,Integer> indexPerProperty, Map<String,Object> nestableTypes, EventAdapterService eventAdapterService)
getGetterObjectArray
in interface Property
public String getKey()
getKey
in interface PropertyWithKey