public static String format( String property, Object arg1 ) { return format( property, new Object[]{arg1} ); }
public static String format( String property, Object arg1, Object arg2 ) { return format( property, new Object[]{arg1,arg2} ); }
public static String format( String property, Object arg1, Object arg2, Object arg3 ) { return format( property, new Object[]{arg1,arg2,arg3} ); }
public static String format( String property ) { return format( property, null ); }
Messages.format(Messages.DOM_IMPL_DOESNT_SUPPORT_CREATELEMENTNS, document.getClass().getName(), Which.which(document.getClass())));
public static String format( String property, Object arg1 ) { return format( property, new Object[]{arg1} ); }
public static String format( String property ) { return format( property, null ); }
public static String format( String property, Object arg1, Object arg2 ) { return format( property, new Object[]{arg1,arg2} ); }
public static String format( String property, Object arg1, Object arg2, Object arg3 ) { return format( property, new Object[]{arg1,arg2,arg3} ); }
Messages.format(Messages.DOM_IMPL_DOESNT_SUPPORT_CREATELEMENTNS, document.getClass().getName(), Which.which(document.getClass())));
public static String format( String property ) { return format( property, null ); }
public static String format( String property, Object arg1, Object arg2 ) { return format( property, new Object[]{arg1,arg2} ); }
private static void _assert( boolean b ) { if(!b) throw new InternalError( Messages.format( Messages.ASSERT_FAILED ) ); } }
void reconcileID() throws AbortSerializationException { // find objects that were not a part of the object graph idReferencedObjects.removeAll(objectsWithId); for( Iterator itr=idReferencedObjects.iterator(); itr.hasNext(); ) { IdentifiableObject o = (IdentifiableObject)itr.next(); reportError( new NotIdentifiableEventImpl( ValidationEvent.ERROR, Messages.format(Messages.ERR_DANGLING_IDREF,o.____jaxb____getId()), new ValidationEventLocatorImpl(o) ) ); } // clear the garbage idReferencedObjects.clear(); objectsWithId.clear(); }
private void missingObjectError() throws SAXException { ValidationEvent ev = new ValidationEventImpl( ValidationEvent.ERROR, Messages.format(Messages.ERR_MISSING_OBJECT), null ); reportError(ev); }
public XMLWriter createWriter( OutputStream os, String encoding ) throws JAXBException { try { return createWriter( new OutputStreamWriter(os,getJavaEncoding(encoding)), encoding ); } catch( UnsupportedEncodingException e ) { throw new MarshalException( Messages.format( Messages.UNSUPPORTED_ENCODING, encoding ), e ); } }
public XMLWriter createWriter( OutputStream os, String encoding ) throws JAXBException { try { return createWriter( new OutputStreamWriter(os,getJavaEncoding(encoding)), encoding ); } catch( UnsupportedEncodingException e ) { throw new MarshalException( Messages.format( Messages.UNSUPPORTED_ENCODING, encoding ), e ); } }
public XMLWriter createWriter( OutputStream os, String encoding ) throws JAXBException { try { return createWriter( new OutputStreamWriter(os,getJavaEncoding(encoding)), encoding ); } catch( UnsupportedEncodingException e ) { throw new MarshalException( Messages.format( Messages.UNSUPPORTED_ENCODING, encoding ), e ); } }
public String onIDREF( IdentifiableObject obj ) throws SAXException { idReferencedObjects.add(obj); String id = obj.____jaxb____getId(); if(id==null) { reportError( new NotIdentifiableEventImpl( ValidationEvent.ERROR, Messages.format(Messages.ERR_NOT_IDENTIFIABLE), new ValidationEventLocatorImpl(obj) ) ); } return id; }
public String onIDREF( IdentifiableObject obj ) throws SAXException { idReferencedObjects.add(obj); String id = obj.____jaxb____getId(); if(id==null) { reportError( new NotIdentifiableEventImpl( ValidationEvent.ERROR, Messages.format(Messages.ERR_NOT_IDENTIFIABLE), new ValidationEventLocatorImpl(obj) ) ); } return id; }