< prev index next >
src/java.xml.bind/share/classes/javax/xml/bind/DatatypeConverterInterface.java
Print this page
*** 192,212 ****
/**
* Converts the string argument into a QName value.
*
* <p>
! * String parameter <tt>lexicalXSDQname</tt> must conform to lexical value space specifed at
* <a href="http://www.w3.org/TR/xmlschema-2/#QName">XML Schema Part 2:Datatypes specification:QNames</a>
*
* @param lexicalXSDQName
* A string containing lexical representation of xsd:QName.
* @param nsc
* A namespace context for interpreting a prefix within a QName.
* @return
* A QName value represented by the string argument.
* @throws IllegalArgumentException if string parameter does not conform to XML Schema Part 2 specification or
! * if namespace prefix of <tt>lexicalXSDQname</tt> is not bound to a URI in NamespaceContext <tt>nsc</tt>.
*/
public javax.xml.namespace.QName parseQName( String lexicalXSDQName,
javax.xml.namespace.NamespaceContext nsc);
/**
--- 192,212 ----
/**
* Converts the string argument into a QName value.
*
* <p>
! * String parameter {@code lexicalXSDQname} must conform to lexical value space specifed at
* <a href="http://www.w3.org/TR/xmlschema-2/#QName">XML Schema Part 2:Datatypes specification:QNames</a>
*
* @param lexicalXSDQName
* A string containing lexical representation of xsd:QName.
* @param nsc
* A namespace context for interpreting a prefix within a QName.
* @return
* A QName value represented by the string argument.
* @throws IllegalArgumentException if string parameter does not conform to XML Schema Part 2 specification or
! * if namespace prefix of {@code lexicalXSDQname} is not bound to a URI in NamespaceContext {@code nsc}.
*/
public javax.xml.namespace.QName parseQName( String lexicalXSDQName,
javax.xml.namespace.NamespaceContext nsc);
/**
*** 247,268 ****
* @param lexicalXSDUnsignedInt
* A string containing lexical representation
* of xsd:unsignedInt.
* @return
* A long value represented by the string argument.
! * @throws NumberFormatException if string parameter can not be parsed into a <tt>long</tt> value.
*/
public long parseUnsignedInt( String lexicalXSDUnsignedInt );
/**
* Converts the string argument into an int value.
* @param lexicalXSDUnsignedShort
* A string containing lexical
* representation of xsd:unsignedShort.
* @return
* An int value represented by the string argument.
! * @throws NumberFormatException if string parameter can not be parsed into an <tt>int</tt> value.
*/
public int parseUnsignedShort( String lexicalXSDUnsignedShort );
/**
* Converts the string argument into a Calendar value.
--- 247,268 ----
* @param lexicalXSDUnsignedInt
* A string containing lexical representation
* of xsd:unsignedInt.
* @return
* A long value represented by the string argument.
! * @throws NumberFormatException if string parameter can not be parsed into a {@code long} value.
*/
public long parseUnsignedInt( String lexicalXSDUnsignedInt );
/**
* Converts the string argument into an int value.
* @param lexicalXSDUnsignedShort
* A string containing lexical
* representation of xsd:unsignedShort.
* @return
* An int value represented by the string argument.
! * @throws NumberFormatException if string parameter can not be parsed into an {@code int} value.
*/
public int parseUnsignedShort( String lexicalXSDUnsignedShort );
/**
* Converts the string argument into a Calendar value.
*** 311,321 ****
* Converts a BigInteger value into a string.
* @param val
* A BigInteger value
* @return
* A string containing a lexical representation of xsd:integer
! * @throws IllegalArgumentException <tt>val</tt> is null.
*/
public String printInteger( java.math.BigInteger val );
/**
* Converts an int value into a string.
--- 311,321 ----
* Converts a BigInteger value into a string.
* @param val
* A BigInteger value
* @return
* A string containing a lexical representation of xsd:integer
! * @throws IllegalArgumentException {@code val} is null.
*/
public String printInteger( java.math.BigInteger val );
/**
* Converts an int value into a string.
*** 349,359 ****
* Converts a BigDecimal value into a string.
* @param val
* A BigDecimal value
* @return
* A string containing a lexical representation of xsd:decimal
! * @throws IllegalArgumentException <tt>val</tt> is null.
*/
public String printDecimal( java.math.BigDecimal val );
/**
* Converts a float value into a string.
--- 349,359 ----
* Converts a BigDecimal value into a string.
* @param val
* A BigDecimal value
* @return
* A string containing a lexical representation of xsd:decimal
! * @throws IllegalArgumentException {@code val} is null.
*/
public String printDecimal( java.math.BigDecimal val );
/**
* Converts a float value into a string.
*** 397,439 ****
* A QName value
* @param nsc
* A namespace context for interpreting a prefix within a QName.
* @return
* A string containing a lexical representation of QName
! * @throws IllegalArgumentException if <tt>val</tt> is null or
! * if <tt>nsc</tt> is non-null or <tt>nsc.getPrefix(nsprefixFromVal)</tt> is null.
*/
public String printQName( javax.xml.namespace.QName val,
javax.xml.namespace.NamespaceContext nsc );
/**
* Converts a Calendar value into a string.
* @param val
* A Calendar value
* @return
* A string containing a lexical representation of xsd:dateTime
! * @throws IllegalArgumentException if <tt>val</tt> is null.
*/
public String printDateTime( java.util.Calendar val );
/**
* Converts an array of bytes into a string.
* @param val
* an array of bytes
* @return
* A string containing a lexical representation of xsd:base64Binary
! * @throws IllegalArgumentException if <tt>val</tt> is null.
*/
public String printBase64Binary( byte[] val );
/**
* Converts an array of bytes into a string.
* @param val
* an array of bytes
* @return
* A string containing a lexical representation of xsd:hexBinary
! * @throws IllegalArgumentException if <tt>val</tt> is null.
*/
public String printHexBinary( byte[] val );
/**
* Converts a long value into a string.
--- 397,439 ----
* A QName value
* @param nsc
* A namespace context for interpreting a prefix within a QName.
* @return
* A string containing a lexical representation of QName
! * @throws IllegalArgumentException if {@code val} is null or
! * if {@code nsc} is non-null or {@code nsc.getPrefix(nsprefixFromVal)} is null.
*/
public String printQName( javax.xml.namespace.QName val,
javax.xml.namespace.NamespaceContext nsc );
/**
* Converts a Calendar value into a string.
* @param val
* A Calendar value
* @return
* A string containing a lexical representation of xsd:dateTime
! * @throws IllegalArgumentException if {@code val} is null.
*/
public String printDateTime( java.util.Calendar val );
/**
* Converts an array of bytes into a string.
* @param val
* an array of bytes
* @return
* A string containing a lexical representation of xsd:base64Binary
! * @throws IllegalArgumentException if {@code val} is null.
*/
public String printBase64Binary( byte[] val );
/**
* Converts an array of bytes into a string.
* @param val
* an array of bytes
* @return
* A string containing a lexical representation of xsd:hexBinary
! * @throws IllegalArgumentException if {@code val} is null.
*/
public String printHexBinary( byte[] val );
/**
* Converts a long value into a string.
*** 457,477 ****
* Converts a Calendar value into a string.
* @param val
* A Calendar value
* @return
* A string containing a lexical representation of xsd:time
! * @throws IllegalArgumentException if <tt>val</tt> is null.
*/
public String printTime( java.util.Calendar val );
/**
* Converts a Calendar value into a string.
* @param val
* A Calendar value
* @return
* A string containing a lexical representation of xsd:date
! * @throws IllegalArgumentException if <tt>val</tt> is null.
*/
public String printDate( java.util.Calendar val );
/**
* Converts a string value into a string.
--- 457,477 ----
* Converts a Calendar value into a string.
* @param val
* A Calendar value
* @return
* A string containing a lexical representation of xsd:time
! * @throws IllegalArgumentException if {@code val} is null.
*/
public String printTime( java.util.Calendar val );
/**
* Converts a Calendar value into a string.
* @param val
* A Calendar value
* @return
* A string containing a lexical representation of xsd:date
! * @throws IllegalArgumentException if {@code val} is null.
*/
public String printDate( java.util.Calendar val );
/**
* Converts a string value into a string.
< prev index next >