Interface XSSimpleType

All Superinterfaces:
XSObject, XSSimpleTypeDefinition, XSTypeDefinition
All Known Implementing Classes:
XSSimpleTypeDecl

public interface XSSimpleType extends XSSimpleTypeDefinition
This interface XSSimpleType represents the simple type definition of schema component and defines methods to query the information contained. Any simple type (atomic, list or union) will implement this interface. It inherits from XSTypeDecl. @xerces.internal
Version:
$Id: XSSimpleType.java 446751 2006-09-15 21:54:06Z mrglavas $
Author:
Sandy Gao, IBM
  • Field Details

    • WS_PRESERVE

      static final short WS_PRESERVE
      preserve the white spaces
      See Also:
    • WS_REPLACE

      static final short WS_REPLACE
      replace the white spaces
      See Also:
    • WS_COLLAPSE

      static final short WS_COLLAPSE
      collapse the white spaces
      See Also:
    • PRIMITIVE_ANYSIMPLETYPE

      static final short PRIMITIVE_ANYSIMPLETYPE
      "anySimpleType" type
      See Also:
    • PRIMITIVE_STRING

      static final short PRIMITIVE_STRING
      "string" type
      See Also:
    • PRIMITIVE_BOOLEAN

      static final short PRIMITIVE_BOOLEAN
      "boolean" type
      See Also:
    • PRIMITIVE_DECIMAL

      static final short PRIMITIVE_DECIMAL
      "decimal" type
      See Also:
    • PRIMITIVE_FLOAT

      static final short PRIMITIVE_FLOAT
      "float" type
      See Also:
    • PRIMITIVE_DOUBLE

      static final short PRIMITIVE_DOUBLE
      "double" type
      See Also:
    • PRIMITIVE_DURATION

      static final short PRIMITIVE_DURATION
      "duration" type
      See Also:
    • PRIMITIVE_DATETIME

      static final short PRIMITIVE_DATETIME
      "dataTime" type
      See Also:
    • PRIMITIVE_TIME

      static final short PRIMITIVE_TIME
      "time" type
      See Also:
    • PRIMITIVE_DATE

      static final short PRIMITIVE_DATE
      "date" type
      See Also:
    • PRIMITIVE_GYEARMONTH

      static final short PRIMITIVE_GYEARMONTH
      "gYearMonth" type
      See Also:
    • PRIMITIVE_GYEAR

      static final short PRIMITIVE_GYEAR
      "gYear" type
      See Also:
    • PRIMITIVE_GMONTHDAY

      static final short PRIMITIVE_GMONTHDAY
      "gMonthDay" type
      See Also:
    • PRIMITIVE_GDAY

      static final short PRIMITIVE_GDAY
      "gDay" type
      See Also:
    • PRIMITIVE_GMONTH

      static final short PRIMITIVE_GMONTH
      "gMonth" type
      See Also:
    • PRIMITIVE_HEXBINARY

      static final short PRIMITIVE_HEXBINARY
      "hexBinary" type
      See Also:
    • PRIMITIVE_BASE64BINARY

      static final short PRIMITIVE_BASE64BINARY
      "base64Binary" type
      See Also:
    • PRIMITIVE_ANYURI

      static final short PRIMITIVE_ANYURI
      "anyURI" type
      See Also:
    • PRIMITIVE_PRECISIONDECIMAL

      static final short PRIMITIVE_PRECISIONDECIMAL
      "precisionDecimal" type
      See Also:
    • PRIMITIVE_NOTATION

      static final short PRIMITIVE_NOTATION
      "NOTATION" type
      See Also:
  • Method Details

    • validate

      Object validate(String content, ValidatedInfo validatedInfo) throws InvalidDatatypeValueException
      validate a given string against this simple type.
      Parameters:
      content - the string value that needs to be validated
      validatedInfo - used to store validation result
      Returns:
      the actual value (QName, Boolean) of the string value
      Throws:
      InvalidDatatypeValueException
    • validate

      void validate(ValidatedInfo validatedInfo) throws InvalidDatatypeValueException
      Validate an actual value against this simple type.
      Parameters:
      validatedInfo - used to provide the actual value and member types
      Throws:
      InvalidDatatypeValueException - exception for invalid values.
    • isEqual

      boolean isEqual(Object value1, Object value2)
      Check whether two actual values are equal.
      Parameters:
      value1 - the first value
      value2 - the second value
      Returns:
      true if the two value are equal