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 Details

    • NullSafeTypeAnnotation

      public NullSafeTypeAnnotation(Class<?> type, boolean defaultOverride)
      Creates a new instance
      Parameters:
      type - the type of the default value to be created
      defaultOverride - whether the default implementing class has been overriden or not
  • Method Details

    • getType

      public Class<?> getType()
    • hasDefaultOverride

      public boolean hasDefaultOverride()
    • getName

      public String getName()
      Specified by:
      getName in interface org.mule.metadata.api.annotation.TypeAnnotation
    • isPublic

      public boolean isPublic()
      Specified by:
      isPublic in interface org.mule.metadata.api.annotation.TypeAnnotation
      Returns:
      false