Class MapBackedType

  • All Implemented Interfaces:
    CompositeType, Type

    public class MapBackedType
    extends java.lang.Object
    implements CompositeType
    A map-based type descriptor
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String TYPE_NAME  
    • Constructor Summary

      Constructors 
      Constructor Description
      MapBackedType()  
      MapBackedType​(java.lang.String typeName)  
      MapBackedType​(java.lang.String typeName, java.util.Map<java.lang.String,​Type> fields)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      MapBackedType addField​(java.lang.String name, Type type)  
      java.util.Map<java.lang.String,​Type> getFields()  
      java.lang.String getName()  
      boolean isAssignableValue​(java.lang.Object value)
      Check if the value passed as parameter can be assigned to this type.
      boolean isInstanceOf​(java.lang.Object o)
      Definition of `instance of` accordingly to FEEL specifications Table 49.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MapBackedType

        public MapBackedType()
      • MapBackedType

        public MapBackedType​(java.lang.String typeName)
      • MapBackedType

        public MapBackedType​(java.lang.String typeName,
                             java.util.Map<java.lang.String,​Type> fields)
    • Method Detail

      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface Type
      • isInstanceOf

        public boolean isInstanceOf​(java.lang.Object o)
        Description copied from interface: Type
        Definition of `instance of` accordingly to FEEL specifications Table 49.
        Specified by:
        isInstanceOf in interface Type
        Returns:
        if o is instance of the type represented by this type. If the parameter is null, returns false.
      • isAssignableValue

        public boolean isAssignableValue​(java.lang.Object value)
        Description copied from interface: Type
        Check if the value passed as parameter can be assigned to this type.
        Specified by:
        isAssignableValue in interface Type
        Returns:
        if value can be assigned to the type represented by this type. If the parameter is null, returns true.