public class MappedProperty extends PropertyBase
Constructor and Description |
---|
MappedProperty(java.lang.String propertyName) |
MappedProperty(java.lang.String propertyName,
java.lang.String key)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
EventPropertyGetterAndMapped |
getGetter(BeanEventType eventType,
EventAdapterService eventAdapterService)
Returns value getter for the property of an event of the given event type.
|
EventPropertyGetter |
getGetterDOM()
Returns the getter-method for use with XML DOM event representations.
|
EventPropertyGetter |
getGetterDOM(SchemaElementComplex complexProperty,
EventAdapterService eventAdapterService,
BaseXMLEventType eventType,
java.lang.String propertyExpression)
Returns the getter-method for use with XML DOM event representations.
|
MapEventPropertyGetterAndMapped |
getGetterMap(java.util.Map optionalMapPropTypes,
EventAdapterService eventAdapterService)
Returns the getter-method for use with Map event representations.
|
ObjectArrayEventPropertyGetterAndMapped |
getGetterObjectArray(java.util.Map<java.lang.String,java.lang.Integer> indexPerProperty,
java.util.Map<java.lang.String,java.lang.Object> nestableTypes,
EventAdapterService eventAdapterService) |
java.lang.String |
getKey()
Returns the key value for mapped access.
|
java.lang.Class |
getPropertyType(BeanEventType eventType,
EventAdapterService eventAdapterService)
Returns the property type.
|
GenericPropertyDesc |
getPropertyTypeGeneric(BeanEventType eventType,
EventAdapterService eventAdapterService)
Returns the property type plus its generic type parameter, if any.
|
java.lang.Class |
getPropertyTypeMap(java.util.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.
|
java.lang.String[] |
toPropertyArray()
Return a String-array of atomic property names.
|
void |
toPropertyEPL(java.io.StringWriter writer)
Write the EPL-representation of the property.
|
getPropertyNameAtomic
public MappedProperty(java.lang.String propertyName)
public MappedProperty(java.lang.String propertyName, java.lang.String key)
propertyName
- is the property name of the mapped propertykey
- is the key value to access the mapped propertypublic java.lang.String getKey()
public java.lang.String[] toPropertyArray()
Property
public boolean isDynamic()
Property
isDynamic
in interface Property
isDynamic
in class PropertyBase
public EventPropertyGetterAndMapped getGetter(BeanEventType eventType, EventAdapterService eventAdapterService)
Property
eventType
- is the type of event to make a getter foreventAdapterService
- factory for event beans and event typespublic java.lang.Class getPropertyType(BeanEventType eventType, EventAdapterService eventAdapterService)
Property
eventType
- is the event type representing the JavaBeaneventAdapterService
- for event adapterspublic GenericPropertyDesc getPropertyTypeGeneric(BeanEventType eventType, EventAdapterService eventAdapterService)
Property
eventType
- is the event type representing the JavaBeaneventAdapterService
- for event adapterspublic java.lang.Class getPropertyTypeMap(java.util.Map optionalMapPropTypes, EventAdapterService eventAdapterService)
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 MapEventPropertyGetterAndMapped getGetterMap(java.util.Map optionalMapPropTypes, EventAdapterService eventAdapterService)
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(java.io.StringWriter writer)
Property
writer
- to write topublic EventPropertyGetter getGetterDOM(SchemaElementComplex complexProperty, EventAdapterService eventAdapterService, BaseXMLEventType eventType, java.lang.String propertyExpression)
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 EventPropertyGetter getGetterDOM()
Property
public SchemaItem getPropertyTypeSchema(SchemaElementComplex complexProperty, EventAdapterService eventAdapterService)
Property
complexProperty
- a element-within-element type definitioneventAdapterService
- for resolving further element event types if definedpublic ObjectArrayEventPropertyGetterAndMapped getGetterObjectArray(java.util.Map<java.lang.String,java.lang.Integer> indexPerProperty, java.util.Map<java.lang.String,java.lang.Object> nestableTypes, EventAdapterService eventAdapterService)