001: /*
002: * Copyright (c) 1998-2006 Caucho Technology -- all rights reserved
003: *
004: * This file is part of Resin(R) Open Source
005: *
006: * Each copy or derived work must preserve the copyright notice and this
007: * notice unmodified.
008: *
009: * Resin Open Source is free software; you can redistribute it and/or modify
010: * it under the terms of the GNU General Public License as published by
011: * the Free Software Foundation; either version 2 of the License, or
012: * (at your option) any later version.
013: *
014: * Resin Open Source is distributed in the hope that it will be useful,
015: * but WITHOUT ANY WARRANTY; without even the implied warranty of
016: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, or any warranty
017: * of NON-INFRINGEMENT. See the GNU General Public License for more
018: * details.
019: *
020: * You should have received a copy of the GNU General Public License
021: * along with Resin Open Source; if not, write to the
022: *
023: * Free Software Foundation, Inc.
024: * 59 Temple Place, Suite 330
025: * Boston, MA 02111-1307 USA
026: *
027: * @author Scott Ferguson
028: */
029:
030: package javax.xml.bind;
031:
032: import javax.xml.namespace.NamespaceContext;
033: import javax.xml.namespace.QName;
034: import java.math.BigDecimal;
035: import java.math.BigInteger;
036: import java.util.Calendar;
037:
038: public interface DatatypeConverterInterface {
039:
040: String parseAnySimpleType(String lexicalXSDAnySimpleType);
041:
042: byte[] parseBase64Binary(String lexicalXSDBase64Binary);
043:
044: boolean parseBoolean(String lexicalXSDBoolean);
045:
046: byte parseByte(String lexicalXSDByte);
047:
048: Calendar parseDate(String lexicalXSDDate);
049:
050: Calendar parseDateTime(String lexicalXSDDateTime);
051:
052: BigDecimal parseDecimal(String lexicalXSDDecimal);
053:
054: double parseDouble(String lexicalXSDDouble);
055:
056: float parseFloat(String lexicalXSDFloat);
057:
058: byte[] parseHexBinary(String lexicalXSDHexBinary);
059:
060: int parseInt(String lexicalXSDInt);
061:
062: BigInteger parseInteger(String lexicalXSDInteger);
063:
064: long parseLong(String lexicalXSDLong);
065:
066: QName parseQName(String lexicalXSDQName, NamespaceContext nsc);
067:
068: short parseShort(String lexicalXSDShort);
069:
070: String parseString(String lexicalXSDString);
071:
072: Calendar parseTime(String lexicalXSDTime);
073:
074: long parseUnsignedInt(String lexicalXSDUnsignedInt);
075:
076: int parseUnsignedShort(String lexicalXSDUnsignedShort);
077:
078: String printAnySimpleType(String val);
079:
080: String printBase64Binary(byte[] val);
081:
082: String printBoolean(boolean val);
083:
084: String printByte(byte val);
085:
086: String printDate(Calendar val);
087:
088: String printDateTime(Calendar val);
089:
090: String printDecimal(BigDecimal val);
091:
092: String printDouble(double val);
093:
094: String printFloat(float val);
095:
096: String printHexBinary(byte[] val);
097:
098: String printInt(int val);
099:
100: String printInteger(BigInteger val);
101:
102: String printLong(long val);
103:
104: String printQName(QName val, NamespaceContext nsc);
105:
106: String printShort(short val);
107:
108: String printString(String val);
109:
110: String printTime(Calendar val);
111:
112: String printUnsignedInt(long val);
113:
114: String printUnsignedShort(int val);
115:
116: }
|