Class NullSafeTypeAnnotation
java.lang.Object
org.mule.runtime.extension.api.declaration.type.annotation.NullSafeTypeAnnotation
- All Implemented Interfaces:
org.mule.metadata.api.annotation.TypeAnnotation
public class NullSafeTypeAnnotation
extends Object
implements org.mule.metadata.api.annotation.TypeAnnotation
A
TypeAnnotation meant to be applied on ObjectFieldType instances. It marks such field as NullSafe and
contains the type of the value which should be created if such field is not provided- Since:
- 1.0
-
Constructor Summary
ConstructorsConstructorDescriptionNullSafeTypeAnnotation(Class<?> type, boolean defaultOverride) Creates a new instance -
Method Summary
-
Constructor Details
-
NullSafeTypeAnnotation
Creates a new instance- Parameters:
type- the type of the default value to be createddefaultOverride- whether the default implementing class has been overriden or not
-
-
Method Details
-
getType
-
hasDefaultOverride
public boolean hasDefaultOverride() -
getName
- Specified by:
getNamein interfaceorg.mule.metadata.api.annotation.TypeAnnotation
-
isPublic
public boolean isPublic()- Specified by:
isPublicin interfaceorg.mule.metadata.api.annotation.TypeAnnotation- Returns:
false
-