Package org.apache.xmlbeans.impl.util
Class XsTypeConverter
java.lang.Object
org.apache.xmlbeans.impl.util.XsTypeConverter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GDateSpecificationgetGDateValue(CharSequence v, int builtin_type_code) static GDateSpecificationgetGDateValue(Calendar c, int builtin_type_code) static GDateSpecificationgetGDateValue(Date d, int builtin_type_code) static StringgetQNameString(String uri, String localpart, String prefix) static CharSequencelexAnyURI(CharSequence lexical_value) Checkes the regular expression of URI, defined by RFC2369 http://www.ietf.org/rfc/rfc2396.txt Appendix B.static booleanstatic booleanlexBoolean(CharSequence value, Collection<XmlError> errors) static bytelexByte(CharSequence cs) static bytelexByte(CharSequence cs, Collection<XmlError> errors) static XmlCalendarstatic BigDecimalstatic doublestatic doublelexDouble(CharSequence cs, Collection<XmlError> errors) static floatlexFloat(CharSequence cs) static floatlexFloat(CharSequence cs, Collection<XmlError> errors) static GDatelexGDate(CharSequence charSeq) static GDatelexGDate(String xsd_gdate, Collection<XmlError> errors) static intlexInt(CharSequence cs) static intlexInt(CharSequence cs, Collection<XmlError> errors) static BigIntegerstatic BigIntegerlexInteger(CharSequence cs, Collection<XmlError> errors) static longlexLong(CharSequence cs) static longlexLong(CharSequence cs, Collection<XmlError> errors) static QNamelexQName(CharSequence charSeq, NamespaceContext nscontext) static QNamelexQName(String xsd_qname, Collection<XmlError> errors, NamespaceContext nscontext) static shortlexShort(CharSequence cs) static shortlexShort(CharSequence cs, Collection<XmlError> errors) static StringprintBoolean(boolean value) static StringprintByte(byte value) static Stringstatic Stringstatic Stringstatic StringprintDateTime(Calendar c, int type_code) static Stringstatic StringprintDecimal(BigDecimal value) static StringprintDouble(double value) static StringprintFloat(float value) static StringprintGDate(GDate gdate, Collection<XmlError> errors) static CharSequenceprintHexBinary(byte[] val) static StringprintInt(int value) static StringprintInteger(BigInteger value) static StringprintLong(long value) static StringprintQName(QName qname, NamespaceContext nsContext, Collection<XmlError> errors) static StringprintShort(short value) static StringprintString(String value) static String
-
Constructor Details
-
XsTypeConverter
public XsTypeConverter()
-
-
Method Details
-
lexFloat
- Throws:
NumberFormatException
-
lexFloat
-
printFloat
-
lexDouble
- Throws:
NumberFormatException
-
lexDouble
-
printDouble
-
lexDecimal
- Throws:
NumberFormatException
-
printDecimal
-
lexInteger
- Throws:
NumberFormatException
-
lexInteger
-
printInteger
-
lexLong
- Throws:
NumberFormatException
-
lexLong
-
printLong
-
lexShort
- Throws:
NumberFormatException
-
lexShort
-
printShort
-
lexInt
- Throws:
NumberFormatException
-
lexInt
-
printInt
-
lexByte
- Throws:
NumberFormatException
-
lexByte
-
printByte
-
lexBoolean
-
lexBoolean
-
printBoolean
-
printString
-
lexQName
-
lexQName
public static QName lexQName(String xsd_qname, Collection<XmlError> errors, NamespaceContext nscontext) -
printQName
public static String printQName(QName qname, NamespaceContext nsContext, Collection<XmlError> errors) -
getQNameString
-
lexGDate
-
lexGDate
-
printGDate
-
lexDateTime
-
printDateTime
-
printTime
-
printDate
-
printDate
-
printDateTime
-
printDateTime
-
printHexBinary
-
getGDateValue
-
getGDateValue
-
getGDateValue
-
lexAnyURI
Checkes the regular expression of URI, defined by RFC2369 http://www.ietf.org/rfc/rfc2396.txt Appendix B. Note: The whitespace normalization rule collapse must be applied priot to calling this method.- Parameters:
lexical_value- the lexical value- Returns:
- same input value if input value is in the lexical space
-