public class EventTypeMetadata extends Object
Modifier and Type | Class and Description |
---|---|
static class |
EventTypeMetadata.ApplicationType
Application type.
|
static class |
EventTypeMetadata.TypeClass
Metatype.
|
Modifier | Constructor and Description |
---|---|
protected |
EventTypeMetadata(String primaryName,
Set<String> secondaryNames,
EventTypeMetadata.TypeClass typeClass,
boolean isApplicationPreConfiguredStatic,
boolean applicationPreConfigured,
boolean applicationConfigured,
EventTypeMetadata.ApplicationType applicationType,
boolean isPropertyAgnostic)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
static EventTypeMetadata |
createAnonymous(String associationName,
EventTypeMetadata.ApplicationType applicationType)
Factory for an anonymous type.
|
static EventTypeMetadata |
createBeanType(String name,
Class clazz,
boolean isPreConfiguredStatic,
boolean isPreConfigured,
boolean isConfigured,
EventTypeMetadata.TypeClass typeClass)
Factory for a bean type.
|
static EventTypeMetadata |
createNonPojoApplicationType(EventTypeMetadata.ApplicationType providedType,
String name,
boolean preconfiguredStatic,
boolean preconfigured,
boolean configured,
boolean namedWindow,
boolean insertInto)
Factory for a map type.
|
static EventTypeMetadata |
createTable(String tableName)
Factory for an table type.
|
static EventTypeMetadata |
createValueAdd(String name,
EventTypeMetadata.TypeClass typeClass)
Factory for a value-add type.
|
static EventTypeMetadata |
createWrapper(String eventTypeName,
boolean namedWindow,
boolean insertInto,
boolean isPropertyAgnostic)
Factory for a wrapper type.
|
static EventTypeMetadata |
createXMLType(String name,
boolean isPreconfiguredStatic,
boolean isPropertyAgnostic)
Factory for a XML type.
|
EventTypeMetadata.ApplicationType |
getOptionalApplicationType()
The type of the application event type or null if not an application event type.
|
Set<String> |
getOptionalSecondaryNames()
Returns second names or null if none found.
|
String |
getPrimaryName()
Returns the name.
|
String |
getPublicName()
Returns the name provided through #EventType.getName.
|
EventTypeMetadata.TypeClass |
getTypeClass()
Returns the type of the type.
|
boolean |
isApplicationConfigured()
Returns true if the type originates in a configuration.
|
boolean |
isApplicationPreConfigured()
Returns true to indicate the type is pre-configured, i.e.
|
boolean |
isApplicationPreConfiguredStatic()
Returns true to indicate the type is pre-configured, i.e.
|
boolean |
isPropertyAgnostic()
Returns true for types that accept any property name as a valid property (unchecked type).
|
protected EventTypeMetadata(String primaryName, Set<String> secondaryNames, EventTypeMetadata.TypeClass typeClass, boolean isApplicationPreConfiguredStatic, boolean applicationPreConfigured, boolean applicationConfigured, EventTypeMetadata.ApplicationType applicationType, boolean isPropertyAgnostic)
primaryName
- the primary name by which the type became known.secondaryNames
- a list of additional names for the type, such as fully-qualified class nametypeClass
- type of the typeapplicationConfigured
- true if configured by the applicationapplicationType
- type of application class or null if not an application typeisPropertyAgnostic
- true for types that accept any property name as a valid property (unchecked type)applicationPreConfigured
- preconfiguredisApplicationPreConfiguredStatic
- preconfigured via static configpublic static EventTypeMetadata createValueAdd(String name, EventTypeMetadata.TypeClass typeClass)
name
- type nametypeClass
- type of typepublic static EventTypeMetadata createBeanType(String name, Class clazz, boolean isPreConfiguredStatic, boolean isPreConfigured, boolean isConfigured, EventTypeMetadata.TypeClass typeClass)
name
- type nameclazz
- java classisConfigured
- whether the class was made known or is discoveredtypeClass
- type of typeisPreConfigured
- preconfiguredisPreConfiguredStatic
- preconfigured via static configpublic static EventTypeMetadata createXMLType(String name, boolean isPreconfiguredStatic, boolean isPropertyAgnostic)
name
- type nameisPropertyAgnostic
- true for types that accept any property name as a valid property (unchecked type)isPreconfiguredStatic
- preconfigured via static configpublic static EventTypeMetadata createAnonymous(String associationName, EventTypeMetadata.ApplicationType applicationType)
associationName
- what the type is associated withapplicationType
- type infopublic static EventTypeMetadata createTable(String tableName)
tableName
- what the type is associated withpublic static EventTypeMetadata createWrapper(String eventTypeName, boolean namedWindow, boolean insertInto, boolean isPropertyAgnostic)
eventTypeName
- insert-into of create-window namenamedWindow
- true for named windowinsertInto
- true for insert-intoisPropertyAgnostic
- true for types that accept any property name as a valid property (unchecked type)public static EventTypeMetadata createNonPojoApplicationType(EventTypeMetadata.ApplicationType providedType, String name, boolean preconfiguredStatic, boolean preconfigured, boolean configured, boolean namedWindow, boolean insertInto)
name
- insert-into of create-window namenamedWindow
- true for named windowinsertInto
- true for insert-intoconfigured
- whether the made known or is discoveredpreconfigured
- preconfiguredpreconfiguredStatic
- preconfigured via static configprovidedType
- typepublic String getPrimaryName()
public Set<String> getOptionalSecondaryNames()
public EventTypeMetadata.TypeClass getTypeClass()
public boolean isApplicationConfigured()
public EventTypeMetadata.ApplicationType getOptionalApplicationType()
public String getPublicName()
public boolean isPropertyAgnostic()
public boolean isApplicationPreConfigured()
public boolean isApplicationPreConfiguredStatic()