1 5 6 package javax.xml.bind.util; 7 8 import java.text.MessageFormat ; 9 import java.util.ResourceBundle ; 10 11 14 class Messages 15 { 16 static String format( String property ) { 17 return format( property, null ); 18 } 19 20 static String format( String property, Object arg1 ) { 21 return format( property, new Object []{arg1} ); 22 } 23 24 static String format( String property, Object arg1, Object arg2 ) { 25 return format( property, new Object []{arg1,arg2} ); 26 } 27 28 static String format( String property, Object arg1, Object arg2, Object arg3 ) { 29 return format( property, new Object []{arg1,arg2,arg3} ); 30 } 31 32 34 35 static String format( String property, Object [] args ) { 36 String text = ResourceBundle.getBundle(Messages.class.getName()).getString(property); 37 return MessageFormat.format(text,args); 38 } 39 40 static final String UNRECOGNIZED_SEVERITY = "ValidationEventCollector.UnrecognizedSeverity"; 47 48 static final String RESULT_NULL_CONTEXT = "JAXBResult.NullContext"; 50 51 static final String RESULT_NULL_UNMARSHALLER = "JAXBResult.NullUnmarshaller"; 53 54 static final String SOURCE_NULL_CONTEXT = "JAXBSource.NullContext"; 56 57 static final String SOURCE_NULL_CONTENT = "JAXBSource.NullContent"; 59 60 static final String SOURCE_NULL_MARSHALLER = "JAXBSource.NullMarshaller"; 62 63 } 64 | Popular Tags |