public class ConfigurationEventTypeLegacy
extends java.lang.Object
implements java.io.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(java.lang.String name,
java.lang.String accessorField)
Adds the named event property backed by the named accessor field.
|
void |
addMethodProperty(java.lang.String name,
java.lang.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.
|
java.lang.String |
getCopyMethod()
Returns the method name of the method to use to copy the underlying event object.
|
java.lang.String |
getEndTimestampPropertyName()
Returns the property name of the property providing the end timestamp value.
|
java.lang.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.
|
java.util.List<ConfigurationEventTypeLegacy.LegacyFieldPropDesc> |
getFieldProperties()
Returns a list of descriptors specifying explicitly configured field names
and their property name.
|
java.util.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.
|
java.lang.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(java.lang.String copyMethod)
Sets the method name of the method to use to copy the underlying event object.
|
void |
setEndTimestampPropertyName(java.lang.String endTimestampPropertyName)
Sets the property name of the property providing the end timestamp value.
|
void |
setFactoryMethod(java.lang.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(java.lang.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 java.util.List<ConfigurationEventTypeLegacy.LegacyMethodPropDesc> getMethodProperties()
public java.util.List<ConfigurationEventTypeLegacy.LegacyFieldPropDesc> getFieldProperties()
public void addMethodProperty(java.lang.String name, java.lang.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(java.lang.String name, java.lang.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 java.lang.String getFactoryMethod()
public void setFactoryMethod(java.lang.String factoryMethod)
factoryMethod
- factory methodspublic java.lang.String getCopyMethod()
public void setCopyMethod(java.lang.String copyMethod)
copyMethod
- method namepublic java.lang.String getStartTimestampPropertyName()
public void setStartTimestampPropertyName(java.lang.String startTimestampPropertyName)
startTimestampPropertyName
- start timestamp property namepublic java.lang.String getEndTimestampPropertyName()
public void setEndTimestampPropertyName(java.lang.String endTimestampPropertyName)
endTimestampPropertyName
- start timestamp property name