Class TypeImpl_stringSubtype

    • Field Detail

      • allowedValues

        private final java.util.Set<java.lang.String> allowedValues
    • Constructor Detail

      • TypeImpl_stringSubtype

        public TypeImpl_stringSubtype​(java.lang.String name,
                                      TypeSystemImpl tsi,
                                      TypeImpl supertype,
                                      java.util.Set<java.lang.String> allowedValues)
    • Method Detail

      • getAllowedValues

        java.util.Set<java.lang.String> getAllowedValues()
      • validateIsInAllowedValues

        void validateIsInAllowedValues​(java.lang.String s)
      • isStringSubtype

        public boolean isStringSubtype()
        Description copied from interface: Type
        Check if the type is a String subtype. Note: returns false if a plain string
        Specified by:
        isStringSubtype in interface Type
        Overrides:
        isStringSubtype in class TypeImpl
        Returns:
        true iff the type is a String subtype type; false for plain string
        See Also:
        Type.isStringSubtype()