public class EventTypeMetadata extends Object
Constructor and Description |
---|
EventTypeMetadata(String name,
String moduleName,
EventTypeTypeClass typeClass,
EventTypeApplicationType applicationType,
NameAccessModifier accessModifier,
EventTypeBusModifier busModifier,
boolean isPropertyAgnostic,
EventTypeIdPair eventTypeIdPair)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
NameAccessModifier |
getAccessModifier()
Returns the access modifier
|
EventTypeApplicationType |
getApplicationType()
Returns the underlying type
|
EventTypeBusModifier |
getBusModifier()
Returns the event bus modifier.
|
EventTypeIdPair |
getEventTypeIdPair()
Returns event type ids
|
String |
getModuleName()
Returns the module name or null when not provided.
|
String |
getName()
Returns the event type name.
|
EventTypeTypeClass |
getTypeClass()
Returns information on the originator or use of the event type
|
boolean |
isPropertyAgnostic()
Returns indicator whether the type is property-agnostic, i.e.
|
CodegenExpression |
toExpression()
Build an expression for the metadata (for internal use).
|
CodegenExpression |
toExpressionWPublicId(CodegenExpression expressionEventTypeIdPublic)
Build an expression for the metadata (for internal use).
|
String |
toString() |
EventTypeMetadata |
withIds(long eventTypeIdPublic,
long eventTypeIdProtected)
Return metadata with the assigned ids
|
public EventTypeMetadata(String name, String moduleName, EventTypeTypeClass typeClass, EventTypeApplicationType applicationType, NameAccessModifier accessModifier, EventTypeBusModifier busModifier, boolean isPropertyAgnostic, EventTypeIdPair eventTypeIdPair)
name
- event type namemoduleName
- module name that originated the event type or null if not provided or if the event type is preconfiguredtypeClass
- information on the originator or use of the event typeapplicationType
- provides the type of the underlyingaccessModifier
- the access modifier defining how the event type is visible to other modulesbusModifier
- the bus modifier defining how the event type is visible to applications calling send-event methodsisPropertyAgnostic
- whether the type is property-agnostic (false for most typed, true for a type that allows any property name)eventTypeIdPair
- the type id pairpublic EventTypeTypeClass getTypeClass()
public EventTypeApplicationType getApplicationType()
public NameAccessModifier getAccessModifier()
public EventTypeBusModifier getBusModifier()
public boolean isPropertyAgnostic()
public EventTypeIdPair getEventTypeIdPair()
public String getName()
public String getModuleName()
public CodegenExpression toExpression()
public CodegenExpression toExpressionWPublicId(CodegenExpression expressionEventTypeIdPublic)
expressionEventTypeIdPublic
- id pairpublic EventTypeMetadata withIds(long eventTypeIdPublic, long eventTypeIdProtected)
eventTypeIdPublic
- public ideventTypeIdProtected
- protected idCopyright © 2005–2020. All rights reserved.