The PropertyException is a subclass of the {@link javax.xml.bind.JAXBException} being thrown if settingor getting a property failed.
PropertyException
364365366367368369370
if( name == null ) { throw new IllegalArgumentException( Messages.format( Messages.MUST_NOT_BE_NULL, "name" ) ); } throw new PropertyException(name); }
178179180181182183184
if( name == null ) { throw new IllegalArgumentException( Messages.format( Messages.MUST_NOT_BE_NULL, "name" ) ); } throw new PropertyException(name, value); }
193194195196197198199
175176177178179180181
* 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); }
189190191192193194195
if( name.equals( JAXB_RI_BUILD_ID ) ) { return buildVersionId; } throw new PropertyException(name); }
194195196197198199200201
setSchemaLocation((String) value); } else if (JAXB_FRAGMENT.equals(name)) { checkBoolean(name, value); setFragment(((Boolean) value).booleanValue()); } else { throw new PropertyException(name, value); } }
213214215216217218219220
} else if (JAXB_SCHEMA_LOCATION.equals(name)) { return getSchemaLocation(); } else if (JAXB_FRAGMENT.equals(name)) { return isFragment() ? Boolean.TRUE : Boolean.FALSE; } else { throw new PropertyException(name); } }
231232233234235236237238
} } private void checkBoolean(String name, Object value) throws PropertyException { if (!(value instanceof Boolean)) { throw new PropertyException(name + " must be a boolean"); } }
237238239240241242243244
} } private void checkString(String name, Object value) throws PropertyException { if (!(value instanceof String)) { throw new PropertyException(name + " must be a string"); } }
100101102103104105106
public Object getProperty(String name) throws PropertyException { if(name == null) { throw new IllegalArgumentException("name must not be null"); } throw new PropertyException(name); }