com.sun.msv.datatype.xsd

Class ErrorType

public class ErrorType extends BuiltinAtomicType

A dummy datatype that can be used to recover from errors. This datatype accepts any values and any facets. The TypeIncubator class also recognizes this class and any operation on ErrorType will never cause any error and silently return another ErrorType.

Author: Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com)

Field Summary
static ErrorTypetheInstance
Method Summary
StringconvertToLexicalValue(Object valueObject, SerializationContext context)
XSDatatypegetBaseType()
ClassgetJavaObjectType()
intisFacetApplicable(String facetName)

Field Detail

theInstance

public static final ErrorType theInstance

Method Detail

convertToLexicalValue

public String convertToLexicalValue(Object valueObject, SerializationContext context)

getBaseType

public XSDatatype getBaseType()

getJavaObjectType

public Class getJavaObjectType()

isFacetApplicable

public int isFacetApplicable(String facetName)