src/share/jaxws_classes/com/sun/xml/internal/bind/v2/runtime/RuntimeUtil.java
Print this page
*** 27,46 ****
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
- import javax.xml.bind.ValidationEvent;
import javax.xml.bind.annotation.adapters.XmlAdapter;
- import javax.xml.bind.helpers.PrintConversionEventImpl;
- import javax.xml.bind.helpers.ValidationEventImpl;
- import javax.xml.bind.helpers.ValidationEventLocatorImpl;
-
- import com.sun.xml.internal.bind.util.ValidationEventLocatorExImpl;
-
- import org.xml.sax.SAXException;
-
/**
* @author Kohsuke Kawaguchi
*/
public class RuntimeUtil {
--- 27,37 ----
*** 93,102 ****
--- 84,94 ----
}
/**
* Reports a print conversion error while marshalling.
*/
+ /*
public static void handlePrintConversionException(
Object caller, Exception e, XMLSerializer serializer ) throws SAXException {
if( e instanceof SAXException )
// assume this exception is not from application.
*** 107,120 ****
--- 99,114 ----
ValidationEvent ve = new PrintConversionEventImpl(
ValidationEvent.ERROR, e.getMessage(),
new ValidationEventLocatorImpl(caller), e );
serializer.reportError(ve);
}
+ */
/**
* Reports that the type of an object in a property is unexpected.
*/
+ /*
public static void handleTypeMismatchError( XMLSerializer serializer,
Object parentObject, String fieldName, Object childObject ) throws SAXException {
ValidationEvent ve = new ValidationEventImpl(
ValidationEvent.ERROR, // maybe it should be a fatal error.
*** 124,133 ****
--- 118,128 ----
getTypeName(childObject) ),
new ValidationEventLocatorExImpl(parentObject,fieldName) );
serializer.reportError(ve);
}
+ */
private static String getTypeName( Object o ) {
return o.getClass().getName();
}
}