Package gnu.kawa.xml

Class XStringType

All Implemented Interfaces:
TypeValue, Type

public class XStringType extends XDataType
  • Field Details

    • normalizedStringType

      public static final XStringType normalizedStringType
    • tokenType

      public static final XStringType tokenType
    • languageType

      public static final XStringType languageType
    • NMTOKENType

      public static final XStringType NMTOKENType
    • NameType

      public static final XStringType NameType
    • NCNameType

      public static final XStringType NCNameType
    • IDType

      public static final XStringType IDType
    • IDREFType

      public static final XStringType IDREFType
    • ENTITYType

      public static final XStringType ENTITYType
  • Constructor Details

  • Method Details

    • isInstance

      public boolean isInstance(Object obj)
      Overrides:
      isInstance in class XDataType
    • matches

      public String matches(String value)
      Check if the String matches the restrictions on this type. Assumes any normalization has been done.
      Returns:
      null on success or an error message otherwise.
    • valueOf

      public Object valueOf(String value)
      Overrides:
      valueOf in class XDataType
    • cast

      public Object cast(Object value)
      Overrides:
      cast in class XDataType
    • makeNCName

      public static XString makeNCName(String value)