public class ConfigurationEventTypeLegacy extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
ConfigurationEventTypeLegacy.AccessorStyle
Accessor style defines the methods of a class that are automatically exposed via event property.
|
static class |
ConfigurationEventTypeLegacy.CodeGeneration
Enum to control code generation.
|
static class |
ConfigurationEventTypeLegacy.LegacyFieldPropDesc
Encapsulates information about an accessor field backing a named event property.
|
static class |
ConfigurationEventTypeLegacy.LegacyMethodPropDesc
Encapsulates information about an accessor method backing a named event property.
|
Constructor and Description |
---|
ConfigurationEventTypeLegacy()
Ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
addFieldProperty(String name,
String accessorField)
Adds the named event property backed by the named accessor field.
|
void |
addMethodProperty(String name,
String accessorMethod)
Adds the named event property backed by the named accessor method.
|
ConfigurationEventTypeLegacy.AccessorStyle |
getAccessorStyle()
Returns the accessor style.
|
ConfigurationEventTypeLegacy.CodeGeneration |
getCodeGeneration()
Returns the code generation flag.
|
String |
getCopyMethod()
Returns the method name of the method to use to copy the underlying event object.
|
String |
getEndTimestampPropertyName()
Returns the property name of the property providing the end timestamp value.
|
String |
getFactoryMethod()
Returns the name of the factory method, either fully-qualified or just a method name if the
method is on the same class as the configured class, to use when instantiating
objects of the type.
|
List<ConfigurationEventTypeLegacy.LegacyFieldPropDesc> |
getFieldProperties()
Returns a list of descriptors specifying explicitly configured field names
and their property name.
|
List<ConfigurationEventTypeLegacy.LegacyMethodPropDesc> |
getMethodProperties()
Returns a list of descriptors specifying explicitly configured method names
and their property name.
|
Configuration.PropertyResolutionStyle |
getPropertyResolutionStyle()
Returns the type's property resolution style to use.
|
String |
getStartTimestampPropertyName()
Returns the property name of the property providing the start timestamp value.
|
void |
setAccessorStyle(ConfigurationEventTypeLegacy.AccessorStyle accessorStyle)
Sets the accessor style.
|
void |
setCodeGeneration(ConfigurationEventTypeLegacy.CodeGeneration codeGeneration)
Sets the code generation flags.
|
void |
setCopyMethod(String copyMethod)
Sets the method name of the method to use to copy the underlying event object.
|
void |
setEndTimestampPropertyName(String endTimestampPropertyName)
Sets the property name of the property providing the end timestamp value.
|
void |
setFactoryMethod(String factoryMethod)
Returns the name of the factory method, either fully-qualified or just a method name if the
method is on the same class as the configured class, to use when instantiating
objects of the type.
|
void |
setPropertyResolutionStyle(Configuration.PropertyResolutionStyle propertyResolutionStyle)
Sets the type's property resolution style to use.
|
void |
setStartTimestampPropertyName(String startTimestampPropertyName)
Sets the property name of the property providing the start timestamp value.
|
public void setAccessorStyle(ConfigurationEventTypeLegacy.AccessorStyle accessorStyle)
accessorStyle
- is the style enumpublic void setCodeGeneration(ConfigurationEventTypeLegacy.CodeGeneration codeGeneration)
codeGeneration
- is the code generation enumpublic ConfigurationEventTypeLegacy.AccessorStyle getAccessorStyle()
public ConfigurationEventTypeLegacy.CodeGeneration getCodeGeneration()
public List<ConfigurationEventTypeLegacy.LegacyMethodPropDesc> getMethodProperties()
public List<ConfigurationEventTypeLegacy.LegacyFieldPropDesc> getFieldProperties()
public void addMethodProperty(String name, String accessorMethod)
The accessor method is expected to be a public method with no parameters for simple event properties, or with a single integer parameter for indexed event properties, or with a single String parameter for mapped event properties.
name
- is the event property nameaccessorMethod
- is the accessor method name.public void addFieldProperty(String name, String accessorField)
name
- is the event property nameaccessorField
- is the accessor field underlying the namepublic Configuration.PropertyResolutionStyle getPropertyResolutionStyle()
public void setPropertyResolutionStyle(Configuration.PropertyResolutionStyle propertyResolutionStyle)
propertyResolutionStyle
- is the property resolution style to use for the typepublic String getFactoryMethod()
public void setFactoryMethod(String factoryMethod)
factoryMethod
- factory methodspublic String getCopyMethod()
public void setCopyMethod(String copyMethod)
copyMethod
- method namepublic String getStartTimestampPropertyName()
public void setStartTimestampPropertyName(String startTimestampPropertyName)
startTimestampPropertyName
- start timestamp property namepublic String getEndTimestampPropertyName()
public void setEndTimestampPropertyName(String endTimestampPropertyName)
endTimestampPropertyName
- start timestamp property name