Class AbstractTypeSystem

  • All Implemented Interfaces:
    ITypeSystem
    Direct Known Subclasses:
    EMFTypeSystem

    public abstract class AbstractTypeSystem
    extends java.lang.Object
    implements ITypeSystem
    Since:
    2.0
    • Constructor Detail

    • Method Detail

      • typeString

        public java.lang.String typeString​(IInputKey type)
        Description copied from interface: ITypeSystem
        Converts a type object to a user-visible description string.
        Specified by:
        typeString in interface ITypeSystem
        Parameters:
        type - either a Type, or a model-specific type instance
        Returns:
        the string representation of the selected type
      • getWrapperClassForType

        protected static java.lang.Class<?> getWrapperClassForType​(java.lang.Class<?> typeClass)
        Parameters:
        typeClass -
        Returns:
        The wrapper class if the input is primitive. If it is not, it returns with the input unchanged.
        Since:
        1.3
      • getWrapperClassNameForTypeName

        protected static java.lang.String getWrapperClassNameForTypeName​(java.lang.String className)
        Since:
        2.1
      • isValidType

        public boolean isValidType​(Type type)
        Description copied from interface: ITypeSystem
        Returns whether the type declaration represents a valid, resolvable type for the selected type system. A null type is invalid.
        Specified by:
        isValidType in interface ITypeSystem
        Since:
        1.4
      • isValidType

        protected boolean isValidType​(JavaType type)
        Since:
        1.4