Lines Matching refs:name
285 * Gets the corresponding Java encoding name from an IANA name.
291 * If this implementation couldn't find the Java encoding name.
323 public void setProperty( String name, Object value )
326 if( name == null ) {
328 Messages.format( Messages.MUST_NOT_BE_NULL, "name" ) );
332 if( JAXB_ENCODING.equals(name) ) {
333 checkString( name, value );
337 if( JAXB_FORMATTED_OUTPUT.equals(name) ) {
338 checkBoolean( name, value );
342 if( JAXB_NO_NAMESPACE_SCHEMA_LOCATION.equals(name) ) {
343 checkString( name, value );
347 if( JAXB_SCHEMA_LOCATION.equals(name) ) {
348 checkString( name, value );
352 if( JAXB_FRAGMENT.equals(name) ) {
353 checkBoolean(name, value);
358 throw new PropertyException(name, value);
367 public Object getProperty( String name )
370 if( name == null ) {
372 Messages.format( Messages.MUST_NOT_BE_NULL, "name" ) );
376 if( JAXB_ENCODING.equals(name) )
378 if( JAXB_FORMATTED_OUTPUT.equals(name) )
380 if( JAXB_NO_NAMESPACE_SCHEMA_LOCATION.equals(name) )
382 if( JAXB_SCHEMA_LOCATION.equals(name) )
384 if( JAXB_FRAGMENT.equals(name) )
387 throw new PropertyException(name);
415 private void checkBoolean( String name, Object value ) throws PropertyException {
418 Messages.format( Messages.MUST_BE_BOOLEAN, name ) );
424 private void checkString( String name, Object value ) throws PropertyException {
427 Messages.format( Messages.MUST_BE_STRING, name ) );