The PropertyException is a subclass of the {@link javax.xml.bind.JAXBException} being thrown if settingor getting a property failed.
PropertyException
163164165166167168169
* providers may have support for properties on Validator, but the RI doesn't */ public void setProperty( String name, Object value ) throws PropertyException { throw new PropertyException(name, value); }
173174175176177178179
* providers may have support for properties on Validator, but the RI doesn't */ public Object getProperty( String name ) throws PropertyException { throw new PropertyException(name); }
153154155156157158159
156157158159160161162
if( name == null ) { throw new IllegalArgumentException( Messages.format( Messages.MUST_NOT_BE_NULL, "name" ) ); } throw new PropertyException(name, value); }
171172173174175176177
if( name == null ) { throw new IllegalArgumentException( Messages.format( Messages.MUST_NOT_BE_NULL, "name" ) ); } throw new PropertyException(name); }
353354355356357358359
checkBoolean(name, value); setFragment((Boolean) value ); return; } throw new PropertyException(name, value); }
382383384385386387388
if( JAXB_SCHEMA_LOCATION.equals(name) ) return getSchemaLocation(); if( JAXB_FRAGMENT.equals(name) ) return isFragment()?Boolean.TRUE:Boolean.FALSE; throw new PropertyException(name); }
412413414415416417418419
/* * assert that the given object is a Boolean */ private void checkBoolean( String name, Object value ) throws PropertyException { if(!(value instanceof Boolean)) throw new PropertyException( Messages.format( Messages.MUST_BE_BOOLEAN, name ) ); }
421422423424425426427428
/* * assert that the given object is a String */ private void checkString( String name, Object value ) throws PropertyException { if(!(value instanceof String)) throw new PropertyException( Messages.format( Messages.MUST_BE_STRING, name ) ); }
347348349350351352353